Changeset 98769


Ignore:
Timestamp:
Oct 15, 2012, 12:39:24 PM (12 years ago)
Author:
ryandesign@…
Message:

shogun: remove unnecessary check for swig python capability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/shogun/Portfile

    r95161 r98769  
    164164                        --cxx=${prefix}/bin/g++-mp-${gccversion}
    165165
    166 
    167 pre-extract {
    168   # Before doing anything, verify the correct swig bindings are present for
    169   # our variants
    170   if {[file exists ${prefix}/bin/swig]} {
    171       ui_debug "Attempting to find swig version"
    172       set swig_version [exec ${prefix}/bin/swig -version]
    173       regexp {(\d.?)+} $swig_version sversion
    174       set sversion [string trimright $sversion \n]
    175 
    176   } else {
    177       set sversion 0.0.0
    178   }
    179   ui_debug "Found swig version ${sversion}"
    180   if {[variant_isset python]} {
    181 
    182   }
    183   if {[variant_isset python] || [variant_isset python26]} {
    184       ui_debug "Looking for swig python interface at ${prefix}/share/swig/${sversion}/python/python.swg"
    185     if {![file exists ${prefix}/share/swig/${sversion}/python/python.swg]} {
    186       ui_error "To install shogun with the python variant, swig must be installed with the python variant as well."
    187       return -code error "incompatible swig installation"
    188     }
    189   }
    190 }
    191 
    192166pre-configure {
    193167  reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/configure
Note: See TracChangeset for help on using the changeset viewer.