[37697] trunk/dports/science/glue/Portfile

Rainer Müller raimue at macports.org
Fri Jun 20 14:46:24 PDT 2008


Ryan Schmidt wrote:
>> But you are right, if you change it from a non-standard location to  
>> another non-standard location (e.g. if you have the definition from  
>> above and increment the Portfile revision), it will leave orphaned  
>> files.
>>
>> Is there something we could do against it?
> 
> Upgrading any port to a new version leaves distfiles behind. However,  
> "sudo port clean --dist foo" will remove them. You just need to make  
> sure that dist_subdir is ${name} (the default) or begins with $ 
> {name}/. I just verified this for the dcraw port which I maintain and  
> which uses "dist_subdir ${name}/${version}_${revision}". IMHO this is  
> the preferred alternate form of dist_subdir which is currently in use  
> by dcraw, sicp, and libuninum. (Funny, I thought there were a lot  
> more ports using this.) A slightly different form is currently in use  
> by the sword-* ports.

Right. I somehow missed the fact that there is actually a slash after 
${name} in the dist_subdir you recommended. So it is a sub-directory of 
the hardcoded path and everything is fine :-)

Rainer


More information about the macports-dev mailing list