On Dec 28, 2012, at 13:53, Vincent Habchi wrote:

>>> How exactly do you use require_active_variants (I can’t seem to find any 
>>> help)? You just append the ports and the procedure pulls in any variant 
>>> present in the parameters but missing in the Portfile being built?
>> 
>> I haven't used it myself yet. If the portgroup file itself doesn't contain 
>> adequate documentation, I would `grep` the Portfiles to find a port using it 
>> and try to figure it out.
> 
> The portgroup is crystal clear, but require_active_variants does not match 
> was I am looking for. It just checks if a port has been installed with 
> required variants (or without banned variants) [snip]

Right, so I was thinking you could do something like:

variant qt4 {
    require_active_variants gmsh {qt4} {}
    ...
}
if {![variant_isset qt4]} {
    require_active_variants gmsh {} {qt4}
}
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to