source: trunk/dports/python/py-scientific/Portfile

Last change on this file was 147088, checked in by takeshi@…, 20 months ago

rev bump ports that depend on netcdf. See #50911

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 147088 2016-03-26 09:44:32Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           bitbucket 1.0
6PortGroup           python 1.0
7PortGroup           mpi 1.0
8
9bitbucket.setup     khinsen scientificpython 2.9.4 rel
10revision            1
11name                py-scientific
12categories-append   science
13license             CeCILL-C
14platforms           darwin
15maintainers         sean openmaintainer
16description         Scientific Python
17
18python.versions     26 27
19
20long_description    ScientificPython is a collection of Python modules that \
21                    are useful for scientific computing.
22
23checksums           rmd160  11d3cb9077cc17ea4dadac2f7887a9f76be300f3 \
24                    sha256  ed5c2048a64a83cd56374d6a048c793066d0060e8589f0ec70d95caadbaaa5ed
25
26compilers.choose    cc cxx
27mpi.setup
28
29if {${name} ne ${subport}} {
30    depends_lib     port:netcdf \
31                    port:py${python.version}-numpy
32    build.env       CPPFLAGS="-I${python.include} \
33                    -I${worksrcpath}/Include" \
34                    NETCDF_PREFIX=${prefix}
35
36    platform macosx {
37        post-extract {
38            copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
39        }
40    }
41
42    platform puredarwin {
43        post-extract {
44            copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
45        }
46    }
47
48    if {[mpi_variant_isset]} {
49        patchfiles-append patch-Src-MPI-compile.py.diff
50        post-patch {
51            reinplace "s|mpicompiler = 'mpicc'|mpicompiler = '${mpi.cc}'|g" \
52                ${worksrcpath}/Src/MPI/compile.py
53            reinplace "s|\\(-I%s\\)|\\1 -I${worksrcpath}/Include|g" \
54                ${worksrcpath}/Src/MPI/compile.py
55            reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Src/MPI/compile.py
56            reinplace "s|@worksrcpath@|${worksrcpath}|g" ${worksrcpath}/Src/MPI/compile.py
57
58            system -W ${worksrcpath}/Src/MPI "${python.bin} compile.py"
59        }
60
61        post-destroot {
62            xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${prefix}/bin
63        }
64    }
65
66    livecheck.type  none
67}
Note: See TracBrowser for help on using the repository browser.