[100027] trunk/dports/science/ompl/Portfile
mmoll at macports.org
mmoll at macports.org
Sat Nov 24 11:56:28 PST 2012
Revision: 100027
https://trac.macports.org/changeset/100027
Author: mmoll at macports.org
Date: 2012-11-24 11:56:27 -0800 (Sat, 24 Nov 2012)
Log Message:
-----------
science/ompl: less fragile way to set default python variant
Modified Paths:
--------------
trunk/dports/science/ompl/Portfile
Modified: trunk/dports/science/ompl/Portfile
===================================================================
--- trunk/dports/science/ompl/Portfile 2012-11-24 19:04:57 UTC (rev 100026)
+++ trunk/dports/science/ompl/Portfile 2012-11-24 19:56:27 UTC (rev 100027)
@@ -111,11 +111,13 @@
}
# enable one python variant so that the python bindings can be compiled
-if { ![variant_isset python26] && ![variant_isset python27] &&
- ![variant_isset python31] && ![variant_isset python32] &&
- ![variant_isset python33]} {
- default_variants +python27
+set selected_python python27
+foreach s ${pythons_suffixes} {
+ if {[variant_isset python${s}]} {
+ set selected_python python${s}
+ }
}
+default_variants +${selected_python}
livecheck.type regex
livecheck.url http://ompl.kavrakilab.org/download.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121124/4c31712e/attachment.html>
More information about the macports-changes
mailing list