[38050] trunk/dports/python/py25-scipy/Portfile
ram at macports.org
ram at macports.org
Fri Jul 4 09:56:20 PDT 2008
Revision: 38050
http://trac.macosforge.org/projects/macports/changeset/38050
Author: ram at macports.org
Date: 2008-07-04 09:56:20 -0700 (Fri, 04 Jul 2008)
Log Message:
-----------
python/py25-scipy: fail is python variant of swig is not installed
Modified Paths:
--------------
trunk/dports/python/py25-scipy/Portfile
Modified: trunk/dports/python/py25-scipy/Portfile
===================================================================
--- trunk/dports/python/py25-scipy/Portfile 2008-07-04 16:21:51 UTC (rev 38049)
+++ trunk/dports/python/py25-scipy/Portfile 2008-07-04 16:56:20 UTC (rev 38050)
@@ -31,6 +31,16 @@
build.env CCFLAGS="-I${prefix}/include -L${prefix}/lib"
+pre-fetch {
+ if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} {
+ ui_error "The python variant of swig is not installed. Please run"
+ ui_error "the following commands:"
+ ui_error "$ sudo port uninstall swig"
+ ui_error "$ sudo port install swig +python"
+ error "python variant of swig required"
+ }
+}
+
post-patch {
reinplace "s|include <\\(umfpack\.*.h\\)>|include <${prefix}/include/ufsparse/\\1>|g" ${worksrcpath}/scipy/linsolve/umfpack/umfpack.i
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080704/3eda08ed/attachment.html
More information about the macports-changes
mailing list