[22274] trunk/dports/sysutils/file/Portfile

Elias Pipping pipping at macports.org
Sun Feb 25 11:17:43 PST 2007


To be frank, that line is awful. whay not use "cd", "foreach",  
"glob", "file link (link in 1.4.0)", "reinplace"?!

Regards,

Elias Pipping


On Feb 25, 2007, at 8:10 PM, Daniel J. Luke wrote:

> On Feb 25, 2007, at 2:02 PM, Blair Zajac wrote:
>> post-destroot {
>>         if {[variant_isset normal_install_names]} {
>>                 system "cd ${destroot}${prefix}/bin && for f in  
>> g*; do ln -s \$f `echo \$f | sed -e 's/^g//'`; done"
>>         }
>> }
>>
>> variant normal_install_names {
>> }
>>
>> A number of other packages use this name naming convention.
>
> IIRC this could be done without the variaint_isset conditional by  
> just adding a post-destroot inside of the normal_install_names  
> variant.
>
> ... but it's been a while since I played with it or looked at the  
> code that would implement this.
>
> --
> Daniel J. Luke
> +========================================================+
> | *---------------- dluke at geeklair.net ----------------* |
> | *-------------- http://www.geeklair.net -------------* |
> +========================================================+
> |   Opinions expressed are mine and do not necessarily   |
> |          reflect the opinions of my employer.          |
> +========================================================+
>
>




More information about the macports-dev mailing list