variant handling ...

Joshua Root jmr at macports.org
Thu Oct 3 11:40:52 PDT 2013


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


More information about the macports-dev mailing list