[31234] trunk/dports/python/py-gsl/Portfile
jochen at macports.org
jochen at macports.org
Sun Nov 18 11:24:51 PST 2007
Revision: 31234
http://trac.macosforge.org/projects/macports/changeset/31234
Author: jochen at macports.org
Date: 2007-11-18 11:24:50 -0800 (Sun, 18 Nov 2007)
Log Message:
-----------
Resolve GSL version issue (1.9 vs 1.10) by deleting
swig_src/gslwrap_wrap.c
and (automatically) re-creating this file using swig.
Modified Paths:
--------------
trunk/dports/python/py-gsl/Portfile
Modified: trunk/dports/python/py-gsl/Portfile
===================================================================
--- trunk/dports/python/py-gsl/Portfile 2007-11-18 19:15:05 UTC (rev 31233)
+++ trunk/dports/python/py-gsl/Portfile 2007-11-18 19:24:50 UTC (rev 31234)
@@ -6,6 +6,7 @@
name py-gsl
version 0.9.1
+revision 1
categories python science
platforms darwin
maintainers openmaintainer jochen
@@ -22,26 +23,34 @@
build.env CFLAGS="-I${prefix}/include/gsl -I${prefix}/include/python2.4 -I${prefix}/include" \
LDFLAGS=-L${prefix}/lib
+depends_build port:swig
+
+pre-build {
+ # Resolve GSL version issue (1.9 vs 1.10) by re-creating this file using swig
+ eval file delete [glob ${worksrcpath}/swig_src/gslwrap_wrap.c]
+}
+
+
variant numarray conflicts numpy Numeric description "Use numarray as array-object" {
- depends_lib-append port:gsl \
- port:py-numarray
- build.args --array-object=numarray
+ depends_lib-append port:gsl \
+ port:py-numarray
+ build.args --array-object=numarray
}
variant Numeric conflicts numarray numpy description "Use Numeric as array-object" {
- depends_lib-append port:gsl \
- port:py-numeric
- build.args --array-object=Numeric
+ depends_lib-append port:gsl \
+ port:py-numeric
+ build.args --array-object=Numeric
}
variant numpy conflicts numarray Numeric description "Use numpy as array-object" {
- depends_lib-append port:gsl \
- port:py-numpy
- build.args --array-object=numpy
+ depends_lib-append port:gsl \
+ port:py-numpy
+ build.args --array-object=numpy
}
if { ![variant_isset numarray] && ![variant_isset Numeric] && ![variant_isset numpy] } {
- default_variants +numpy
+ default_variants +numpy
}
post-destroot {
- xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071118/8cce5336/attachment.html
More information about the macports-changes
mailing list