1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python24 1.0 |
---|
5 | name py-scientific |
---|
6 | version 2.4.9 |
---|
7 | categories python |
---|
8 | maintainers benwill at socrates.berkeley.edu |
---|
9 | description Scientific Python |
---|
10 | long_description ScientificPython is a collection of Python modules that \ |
---|
11 | are useful for scientific computing. |
---|
12 | homepage http://starship.python.net/~hinsen/ScientificPython/ |
---|
13 | master_sites ${homepage} |
---|
14 | distname ScientificPython-${version} |
---|
15 | checksums md5 a88602846bdb8a1e2c9f21dc3cf81341 |
---|
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 | } |
---|