variant handling ...

Peter Danecek Peter.Danecek at bo.ingv.it
Thu Oct 3 11:52:00 PDT 2013


On Oct 3, 2013, at 20:40 , Joshua Root <jmr at macports.org> wrote:

> On 2013-10-4 04:07 , Peter Danecek wrote:
>> 
>> Hi all,
>> 
>> one more question (at least) related to subports. 
>> 
>> In my Portfile w/ subports I use variants, which allow to switch features. These would apply to basically to all subports so I put them global. But there would be one exception, these variants make no sense for documentations, so ideally I would cancel the for the document subport. However, I see no obvious way to do so. 
> 
> if {$subport ne "document"} {
> 	variant foo ...
> }
> 
> - Josh


I thought actually along this line, but did not realise it would not change the structure of the Portfile that much.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20131003/93b8ffc0/attachment.p7s>


More information about the macports-dev mailing list