1 | # $Id: Portfile 21251 2007-01-16 17:01:05Z ben@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python24 1.0 |
---|
5 | name py-scientific |
---|
6 | version 2.6 |
---|
7 | categories python science |
---|
8 | maintainers nomaintainer@macports.org |
---|
9 | description Scientific Python |
---|
10 | long_description ScientificPython is a collection of Python modules that \ |
---|
11 | are useful for scientific computing. |
---|
12 | homepage http://dirac.cnrs-orleans.fr/plone/software/scientificpython/ |
---|
13 | master_sites http://sourcesup.cru.fr/frs/download.php/1034 |
---|
14 | distname ScientificPython-${version} |
---|
15 | checksums md5 6ebd96fc8a4e015adab2c57826d52e9f |
---|
16 | |
---|
17 | depends_lib port:netcdf \ |
---|
18 | port:py-numeric |
---|
19 | |
---|
20 | build.env CPPFLAGS="-I${prefix}/include/python2.4 \ |
---|
21 | -I${worksrcpath}/Include" \ |
---|
22 | NETCDF_PREFIX=${prefix} |
---|
23 | |
---|
24 | variant mpi { |
---|
25 | depends_lib-append port:lammpi |
---|
26 | |
---|
27 | post-build { |
---|
28 | reinplace "s|%s %s -o mpipython|${prefix}/bin/%s -o mpipython -I${prefix}/include/python2.4 -I${worksrcpath}/Include|g" \ |
---|
29 | ${worksrcpath}/Src/MPI/compile.py |
---|
30 | reinplace "s|-L%s -lpython%s|-L/Library/Frameworks/Python.framework/Versions/2.4/lib -L%s -lpython.%s|g" \ |
---|
31 | ${worksrcpath}/Src/MPI/compile.py |
---|
32 | reinplace "s|cfgDict\\\[\'LINK|#cfgDict\\\[\'LINK|g" \ |
---|
33 | ${worksrcpath}/Src/MPI/compile.py |
---|
34 | system "cd ${worksrcpath}/Src/MPI && python2.4 compile.py" |
---|
35 | } |
---|
36 | |
---|
37 | post-destroot { |
---|
38 | cd ${worksrcpath}/Src/MPI |
---|
39 | xinstall -m 0755 mpipython ${destroot}${prefix}/bin |
---|
40 | } |
---|
41 | } |
---|