Ticket #26790: Portfile-py27-scientific

File Portfile-py27-scientific, 1.9 KB (added by kurtjaeke@…, 14 years ago)
Line 
1PortSystem      1.0
2PortGroup       python27 1.0
3
4name            py27-scientific
5version         2.8
6revision        2
7categories      python science
8platforms       darwin
9maintainers     adfernandes openmaintainer
10description     Scientific Python
11
12long_description \
13    ScientificPython is a collection of Python modules that \
14    are useful for scientific computing.
15
16homepage        http://dirac.cnrs-orleans.fr/ScientificPython/
17master_sites    http://sourcesup.cru.fr/frs/download.php/2309/
18distname        ScientificPython-${version}
19
20checksums       md5 82d8592635d6ae8608b3073dacf9e694 \
21                sha1 c0847eac6359d70b0e4687c5c65af49b3986e55b \
22                rmd160 0501829586253fe3986458529c436b6d93e6667f
23
24depends_lib     port:netcdf \
25                port:py27-numpy
26
27build.env       CPPFLAGS="-I${python.include} \
28                    -I${worksrcpath}/Include" \
29                NETCDF_PREFIX=${prefix}
30
31platform macosx {
32    post-extract {
33        copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
34    }
35}
36
37platform puredarwin {
38    post-extract {
39        copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
40    }
41}
42
43variant mpi description {Enable lammpi support} {
44    depends_lib-append  port:lammpi
45    patchfiles-append patch-Src-MPI-compile.py.diff
46    post-build {
47        reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Src/MPI/compile.py
48        reinplace "s|@worksrcpath@|${worksrcpath}|g" ${worksrcpath}/Src/MPI/compile.py
49        system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py"
50    }
51    post-destroot {
52        xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${python.prefix}/bin
53        ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython-${python.branch}
54    }
55}
56
57livecheck.type  regex
58livecheck.url   http://sourcesup.cru.fr/projects/scientific-py/
59livecheck.regex {<strong>Stable Releases</strong></td><td>(\d+(?:\.\d+)*)}