1 | PortSystem 1.0 |
---|
2 | PortGroup python27 1.0 |
---|
3 | |
---|
4 | name py27-scientific |
---|
5 | version 2.8 |
---|
6 | revision 2 |
---|
7 | categories python science |
---|
8 | platforms darwin |
---|
9 | maintainers adfernandes openmaintainer |
---|
10 | description Scientific Python |
---|
11 | |
---|
12 | long_description \ |
---|
13 | ScientificPython is a collection of Python modules that \ |
---|
14 | are useful for scientific computing. |
---|
15 | |
---|
16 | homepage http://dirac.cnrs-orleans.fr/ScientificPython/ |
---|
17 | master_sites http://sourcesup.cru.fr/frs/download.php/2309/ |
---|
18 | distname ScientificPython-${version} |
---|
19 | |
---|
20 | checksums md5 82d8592635d6ae8608b3073dacf9e694 \ |
---|
21 | sha1 c0847eac6359d70b0e4687c5c65af49b3986e55b \ |
---|
22 | rmd160 0501829586253fe3986458529c436b6d93e6667f |
---|
23 | |
---|
24 | depends_lib port:netcdf \ |
---|
25 | port:py27-numpy |
---|
26 | |
---|
27 | build.env CPPFLAGS="-I${python.include} \ |
---|
28 | -I${worksrcpath}/Include" \ |
---|
29 | NETCDF_PREFIX=${prefix} |
---|
30 | |
---|
31 | platform macosx { |
---|
32 | post-extract { |
---|
33 | copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py |
---|
34 | } |
---|
35 | } |
---|
36 | |
---|
37 | platform puredarwin { |
---|
38 | post-extract { |
---|
39 | copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | variant 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 | |
---|
57 | livecheck.type regex |
---|
58 | livecheck.url http://sourcesup.cru.fr/projects/scientific-py/ |
---|
59 | livecheck.regex {<strong>Stable Releases</strong></td><td>(\d+(?:\.\d+)*)} |
---|