[115507] trunk/dports/math/ufc/Portfile

sean at macports.org sean at macports.org
Fri Jan 3 12:29:02 PST 2014


Revision: 115507
          https://trac.macports.org/changeset/115507
Author:   sean at 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:
--------------
    trunk/dports/math/ufc/Portfile

Modified: trunk/dports/math/ufc/Portfile
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140103/6fa9149f/attachment.html>


More information about the macports-changes mailing list