source: trunk/dports/python/py26-scientific/Portfile @ 63036

Last change on this file since 63036 was 63036, checked in by jmr@…, 10 years ago

add python.link_binaries option to python26 portgroup, adapt ports accordingly

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
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 63036 2010-01-24 10:43:40Z jmr@macports.org $
3
4PortSystem      1.0
5PortGroup       python26 1.0
6
7name            py26-scientific
8version         2.8
9revision        2
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/2309/
21distname        ScientificPython-${version}
22
23checksums       md5 82d8592635d6ae8608b3073dacf9e694 \
24                sha1 c0847eac6359d70b0e4687c5c65af49b3986e55b \
25                rmd160 0501829586253fe3986458529c436b6d93e6667f
26
27depends_lib     port:netcdf \
28                port:py26-numpy
29
30build.env       CPPFLAGS="-I${python.include} \
31                    -I${worksrcpath}/Include" \
32                NETCDF_PREFIX=${prefix}
33
34platform macosx {
35    post-extract {
36        copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
37    }
38}
39
40platform puredarwin {
41    post-extract {
42        copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
43    }
44}
45
46variant mpi description {Enable lammpi support} {
47    depends_lib-append  port:lammpi
48    patchfiles-append patch-Src-MPI-compile.py.diff
49    post-build {
50        reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Src/MPI/compile.py
51        reinplace "s|@worksrcpath@|${worksrcpath}|g" ${worksrcpath}/Src/MPI/compile.py
52        system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py"
53    }
54    post-destroot {
55        xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${python.prefix}/bin
56        ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython-${python.branch}
57    }
58}
59
60livecheck.type  regex
61livecheck.url   http://sourcesup.cru.fr/projects/scientific-py/
62livecheck.regex {<td>(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.