Ticket #27397: Portfile

File Portfile, 2.2 KB (added by danmichaelo+macports@…, 14 years ago)
Line 
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
4PortSystem      1.0
5PortGroup       python26 1.0
6
7name            py26-scientific-devel
8version         2.9
9revision        0
10categories      python science
11platforms       darwin
12maintainers     adfernandes openmaintainer
13description     Scientific Python
14
15long_description \
16    ScientificPython is a collection of Python modules that \
17    are useful for scientific computing.
18
19homepage        http://dirac.cnrs-orleans.fr/ScientificPython/
20master_sites    http://sourcesup.cru.fr/frs/download.php/2372/
21distname        ScientificPython-${version}.${revision}
22
23checksums       md5 babbbb708d235094d75478bdeb8d4c7f \
24                sha1 60fb1ec7c31c86b7e7a068ccda780197e1e95ad8 \
25                rmd160 2533879b64fcb17027b11784fc0cff4351284c98
26
27depends_lib     port:netcdf \
28                port:py26-numpy
29
30conflicts       py26-scientific
31
32build.cmd               ${python.bin} setup.py --numpy --no-user-cfg
33
34build.env       CPPFLAGS="-I${python.include} \
35                    -I${worksrcpath}/Include" \
36                NETCDF_PREFIX=${prefix}
37
38platform macosx {
39    post-extract {
40        copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
41    }
42}
43
44platform puredarwin {
45    post-extract {
46        copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
47    }
48}
49
50variant 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
65livecheck.type  regex
66livecheck.url   http://sourcesup.cru.fr/projects/scientific-py/
67livecheck.regex {<strong>Development Releases</strong></td><td>(\d+(?:\.\d+)*)}