How can variant B imply variant A?
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Tue Aug 21 06:23:42 PDT 2012
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
More information about the macports-dev
mailing list