# -*- 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 # $Id: Portfile 63036 2010-01-24 10:43:40Z jmr@macports.org $ PortSystem 1.0 PortGroup python26 1.0 name py26-scientific version 2.8 revision 2 categories python science platforms darwin maintainers adfernandes openmaintainer description Scientific Python long_description \ ScientificPython is a collection of Python modules that \ are useful for scientific computing. homepage http://dirac.cnrs-orleans.fr/ScientificPython/ master_sites http://sourcesup.cru.fr/frs/download.php/2309/ distname ScientificPython-${version} checksums md5 82d8592635d6ae8608b3073dacf9e694 \ sha1 c0847eac6359d70b0e4687c5c65af49b3986e55b \ rmd160 0501829586253fe3986458529c436b6d93e6667f depends_lib port:netcdf \ port:py26-numpy build.env CPPFLAGS="-I${python.include} \ -I${worksrcpath}/Include" \ NETCDF_PREFIX=${prefix} platform macosx { post-extract { copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py } } platform puredarwin { post-extract { copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py } } variant mpi description {Enable lammpi support} { depends_lib-append port:lammpi patchfiles-append patch-Src-MPI-compile.py.diff post-build { reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/Src/MPI/compile.py reinplace "s|@worksrcpath@|${worksrcpath}|g" ${worksrcpath}/Src/MPI/compile.py system "cd ${worksrcpath}/Src/MPI && ${prefix}/bin/python${python.branch} compile.py" } post-destroot { xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${python.prefix}/bin ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython-${python.branch} } } livecheck.type regex livecheck.url http://sourcesup.cru.fr/projects/scientific-py/ livecheck.regex {(\d+(?:\.\d+)*)}