Changeset 98769
- Timestamp:
- Oct 15, 2012, 12:39:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/math/shogun/Portfile
r95161 r98769 164 164 --cxx=${prefix}/bin/g++-mp-${gccversion} 165 165 166 167 pre-extract {168 # Before doing anything, verify the correct swig bindings are present for169 # our variants170 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 sversion174 set sversion [string trimright $sversion \n]175 176 } else {177 set sversion 0.0.0178 }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 192 166 pre-configure { 193 167 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/configure
Note: See TracChangeset
for help on using the changeset viewer.