[56332] trunk/dports/math/shogun/Portfile
jameskyle at macports.org
jameskyle at macports.org
Tue Aug 25 23:35:02 PDT 2009
Revision: 56332
http://trac.macports.org/changeset/56332
Author: jameskyle at macports.org
Date: 2009-08-25 23:35:02 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
Port now properly removes python and python_modular interface for no_python26 variant.
Modified Paths:
--------------
trunk/dports/math/shogun/Portfile
Modified: trunk/dports/math/shogun/Portfile
===================================================================
--- trunk/dports/math/shogun/Portfile 2009-08-26 06:34:59 UTC (rev 56331)
+++ trunk/dports/math/shogun/Portfile 2009-08-26 06:35:02 UTC (rev 56332)
@@ -57,12 +57,15 @@
configure.compiler macports-gcc-4.3
+proc lremove {list elem} {
+ set index [lsearch -exact $list $elem]
+ return [lreplace $list $index $index]
+}
+
# Interfaces are added by a comma delimited argument list to --interfaces.
# We check for variants and then build this list accordingly
-set interfaces "libshogun libshogunui cmdline"
-if {[variant_isset python25] || [variant_isset python26]} {
- lappend interfaces "python,python_modular"
-}
+set interfaces "libshogun libshogunui cmdline python python_modular"
+
if {[variant_isset r]} {lappend interfaces "r"}
if {[variant_isset octave]} {lappend interfaces "octave,octave_modular"}
if {[variant_isset elwms] && !([variant_isset python] &&
@@ -72,6 +75,12 @@
lappend interfaces "elwms"
}
+# remove python interface if necessary before appending to args
+if {[variant_isset no_python26] && ![variant_isset python25]} {
+ set interfaces [lremove ${interfaces} "python"]
+ set interfaces [lremove ${interfaces} "python_modular"]
+}
+
#if {[variant_isset matlab]} {lappend interfaces "matlab"}
set interfaces [join $interfaces ","]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090825/5752746d/attachment.html>
More information about the macports-changes
mailing list