[56243] trunk/dports/math/shogun/Portfile

jameskyle at macports.org jameskyle at macports.org
Tue Aug 25 09:56:10 PDT 2009


Revision: 56243
          http://trac.macports.org/changeset/56243
Author:   jameskyle at macports.org
Date:     2009-08-25 09:56:09 -0700 (Tue, 25 Aug 2009)
Log Message:
-----------
Changed version to sversion

Modified Paths:
--------------
    trunk/dports/math/shogun/Portfile

Modified: trunk/dports/math/shogun/Portfile
===================================================================
--- trunk/dports/math/shogun/Portfile	2009-08-25 16:51:09 UTC (rev 56242)
+++ trunk/dports/math/shogun/Portfile	2009-08-25 16:56:09 UTC (rev 56243)
@@ -134,27 +134,27 @@
   # our variants
   if {![file exists ${prefix}/bin/swig]} {
       set swig_version [exec ${prefix}/bin/swig -version]
-      regexp {(\d.?)+} $swig_version version
+      regexp {(\d.?)+} $swig_version sversion
       
   } else {
-      set version 0.0.0
+      set sversion 0.0.0
   }
   if {[variant_isset python] || [variant_isset python26]} {
-    if {![file exists ${prefix}/share/swig/${version}/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"
     }
   }
     
   if {[variant_isset r]} {
-    if {![file exists ${prefix}/share/swig/${version}/r/r.swg]} {
+    if {![file exists ${prefix}/share/swig/${sversion}/r/r.swg]} {
       ui_error "To install shogun with the r variant, swig must be installed with the r variant as well."
       return -code error "incompatible swig installation"
     }
   }
   
   if {[variant_isset octave]} {
-    if {![file exists ${prefix}/share/swig/${version}/octave/octave.swg]} {
+    if {![file exists ${prefix}/share/swig/${sversion}/octave/octave.swg]} {
       ui_error "To install shogun with the octave variant, swig must be installed with the octave 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/798618da/attachment-0001.html>


More information about the macports-changes mailing list