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

ryandesign at macports.org ryandesign at macports.org
Mon Oct 15 05:39:24 PDT 2012


Revision: 98769
          http://trac.macports.org//changeset/98769
Author:   ryandesign at macports.org
Date:     2012-10-15 05:39:24 -0700 (Mon, 15 Oct 2012)
Log Message:
-----------
shogun: remove unnecessary check for swig python capability

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

Modified: trunk/dports/math/shogun/Portfile
===================================================================
--- trunk/dports/math/shogun/Portfile	2012-10-15 12:27:40 UTC (rev 98768)
+++ trunk/dports/math/shogun/Portfile	2012-10-15 12:39:24 UTC (rev 98769)
@@ -163,32 +163,6 @@
 configure.args-append   --cc=${prefix}/bin/gcc-mp-${gccversion} \
                         --cxx=${prefix}/bin/g++-mp-${gccversion}
 
-
-pre-extract {
-  # Before doing anything, verify the correct swig bindings are present for
-  # our variants
-  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]} {
-
-  }
-  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"
-    }
-  }
-}
-
 pre-configure {
   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/configure
   reinplace "s|= $\{_libdir\}/$\{_pydir\}|= $\{_pydir\}|g" ${worksrcpath}/configure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121015/0c21ee8a/attachment.html>


More information about the macports-changes mailing list