[69423] trunk/dports/tex/rubber/Portfile
Jeremy Lavergne
jeremy at lavergne.gotdns.org
Tue Jul 6 07:20:46 PDT 2010
>> Yes, marking variants as conflicting with one another will prevent the user from choosing more than one of them at the same time. So you want to write:
>>
>> variant python24 conflicts python25 python26 python27 description {Use python 2.4} {
>> depends_lib-append port:python24
>> configure.args-append --python=${prefix}/bin/python2.4
>> }
>>
>> ...
>>
>> As for default variants, you want to write:
>>
>> if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
>> default_variants +python26
>> }
>
> or, instead of that giant ever-growing if statement that needs to be updated whenever you add a new python version variant - just have the main part of the port depend on (and configure with) python26, then each variant can just remove the python26 dependency/configure arg and substitute their own.
Sadly, you might find yourself needing to do reinplace on several files that use "/usr/bin/env python" or have "/usr/bin/python".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2435 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100706/70309a56/attachment.bin>
More information about the macports-dev
mailing list