recommended "dependencies?"

Kevin Ballard eridius at macports.org
Thu Feb 15 20:26:24 PST 2007


This seems extremely verbose to me. Is there any benefit to be gained  
from doing this?

On Feb 15, 2007, at 4:40 AM, Randall Wood wrote:

> Here is a quick example of how a port may work:
>
>> configure.args --enable-foo --prefix=${prefix}   # --prefix in  
>> here only for the example
>>
>> variant no_foo {
>> 	configure.args-delete --enable-foo
>> 	configure.args-append --disable-foo	# this line is often missing
>> }
>
> And how I would like to see the above port written:
>
>> configure.args --prefix=${prefix}
>>
>> default-variants +enable_foo
>>
>> variant enable_foo conflicts disable_foo {
>> 	configure.args-append --enable-foo
>> }
>>
>> variant disable_foo conflicts enable_foo {
>> 	configure.args-append --disable-foo
>> }
>
> The second version of the same file does the same thing, but I find  
> that it is easier to work with. Note also that if the line that is  
> commented "this line is often missing" is missing, then the port  
> may install in a non-deterministic way, installing with foo enabled  
> because the package's configure script auto-selects that.

-- 
Kevin Ballard
http://kevin.sb.org
eridius at macports.org
http://www.tildesoft.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070215/6dd5b767/attachment.html


More information about the macports-users mailing list