1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 64754 2010-03-15 13:17:09Z nox@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name py26-scientific-devel |
---|
8 | version 2.9 |
---|
9 | revision 0 |
---|
10 | categories python science |
---|
11 | platforms darwin |
---|
12 | maintainers adfernandes openmaintainer |
---|
13 | description Scientific Python |
---|
14 | |
---|
15 | long_description \ |
---|
16 | ScientificPython is a collection of Python modules that \ |
---|
17 | are useful for scientific computing. |
---|
18 | |
---|
19 | homepage http://dirac.cnrs-orleans.fr/ScientificPython/ |
---|
20 | master_sites http://sourcesup.cru.fr/frs/download.php/2372/ |
---|
21 | distname ScientificPython-${version}.${revision} |
---|
22 | |
---|
23 | checksums md5 babbbb708d235094d75478bdeb8d4c7f \ |
---|
24 | sha1 60fb1ec7c31c86b7e7a068ccda780197e1e95ad8 \ |
---|
25 | rmd160 2533879b64fcb17027b11784fc0cff4351284c98 |
---|
26 | |
---|
27 | depends_lib port:netcdf \ |
---|
28 | port:py26-numpy |
---|
29 | |
---|
30 | conflicts py26-scientific |
---|
31 | |
---|
32 | build.cmd ${python.bin} setup.py --numpy --no-user-cfg |
---|
33 | |
---|
34 | build.env CPPFLAGS="-I${python.include} \ |
---|
35 | -I${worksrcpath}/Include" \ |
---|
36 | NETCDF_PREFIX=${prefix} |
---|
37 | |
---|
38 | platform macosx { |
---|
39 | post-extract { |
---|
40 | copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | platform puredarwin { |
---|
45 | post-extract { |
---|
46 | copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py |
---|
47 | } |
---|
48 | } |
---|
49 | |
---|
50 | variant mpi description {Enable lammpi support} { |
---|
51 | depends_lib-append port:lammpi |
---|
52 | patchfiles-append patch-Src-MPI-compile.py.diff |
---|
53 | post-build { |
---|
54 | reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Src/MPI/compile.py |
---|
55 | reinplace "s|@worksrcpath@|${worksrcpath}|g" ${worksrcpath}/Src/MPI/compile.py |
---|
56 | system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py" |
---|
57 | } |
---|
58 | post-destroot { |
---|
59 | xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${python.prefix}/bin |
---|
60 | ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython-${python.branch} |
---|
61 | } |
---|
62 | } |
---|
63 | |
---|
64 | |
---|
65 | livecheck.type regex |
---|
66 | livecheck.url http://sourcesup.cru.fr/projects/scientific-py/ |
---|
67 | livecheck.regex {<strong>Development Releases</strong></td><td>(\d+(?:\.\d+)*)} |
---|