[56264] trunk/dports/math/shogun/Portfile
jameskyle at macports.org
jameskyle at macports.org
Tue Aug 25 14:49:20 PDT 2009
Revision: 56264
http://trac.macports.org/changeset/56264
Author: jameskyle at macports.org
Date: 2009-08-25 14:49:20 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
Corrected typo.
Modified Paths:
--------------
trunk/dports/math/shogun/Portfile
Modified: trunk/dports/math/shogun/Portfile
===================================================================
--- trunk/dports/math/shogun/Portfile 2009-08-25 21:44:19 UTC (rev 56263)
+++ trunk/dports/math/shogun/Portfile 2009-08-25 21:49:20 UTC (rev 56264)
@@ -92,7 +92,7 @@
port:py25-numpy
- }
+ }
}
variant python26 description {Build Python 2.6 API} {
@@ -132,14 +132,18 @@
pre-extract {
# Before doing anything, verify the correct swig bindings are present for
# our variants
- if {![file exists ${prefix}/bin/swig]} {
+ if {[file exists ${prefix}/bin/swig]} {
+ ui_debug "Attempting to find swig version"
set swig_version [exec ${prefix}/bin/swig -version]
regexp {(\d.?)+} $swig_version sversion
+ set sversion [string trimright $sversion \n]
} else {
set sversion 0.0.0
}
+ ui_debug "Found swig version ${sversion}"
if {[variant_isset python] || [variant_isset python26]} {
+ ui_debug "Looking for swig python interface at ${prefix}/share/swig/${sversion}/python/python.swg"
if {![file exists ${prefix}/share/swig/${sversion}/python/python.swg]} {
ui_error "To install shogun with the python variant, swig must be installed with the python variant as well."
return -code error "incompatible swig installation"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090825/c43da4c2/attachment.html>
More information about the macports-changes
mailing list