Hello,

How can I make variant B automatically turn the variant A on? I have tried

variant A description "funny variant" {
        ...
}
variant B description "even more funny, depends on A" {
        ...
        default_variants +A
}

But when I use +B, this will end up with +B only, it won't try to use
+A. Is there any easy solution to this or should the user turn both on
with the port doing something like

variant B description "even more funny, depends on A" {
        if {![variant_isset A]} {
                ui_error "Please use +A if you want B."
                return -code error "A is not switched on"
        }
}

Thank you,
    Mojca
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to