Revision
115507
Author
sean@macports.org
Date
2014-01-03 12:29:02 -0800 (Fri, 03 Jan 2014)

Log Message

ufc: only set default variant if no python variants are selected

Modified Paths

Diff

Modified: trunk/dports/math/ufc/Portfile (115506 => 115507)


--- trunk/dports/math/ufc/Portfile	2014-01-03 20:25:07 UTC (rev 115506)
+++ trunk/dports/math/ufc/Portfile	2014-01-03 20:29:02 UTC (rev 115507)
@@ -27,8 +27,12 @@
 set pythons_suffixes {25 26 27 31 32}
 
 set pythons_ports {}
+set python_isset  0
 foreach s ${pythons_suffixes} {
     lappend pythons_ports python${s}
+    if {[variant_isset python${s}]} {
+        set python_isset 1
+    }
 }
 
 proc python_dir {} {
@@ -61,7 +65,9 @@
     }]
 }
 
-default_variants    +python27
+if {!$python_isset} {
+    default_variants    +python27
+}
 
 # project doesn't use tag or branches for releases
 livecheck.type      none