# -*- 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

PortSystem              1.0
PortGroup               python 1.0
PortGroup               github 1.0

github.setup            hplgit scitools 0.9.0 scitools-
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from     tarball
name                    py-${name}
categories              python science
license                 bsd
platforms               {darwin any}
supported_archs         noarch
maintainers             {aronnax @lpsinger} openmaintainer
description             Scientific computing tools for Python
long_description \
    Scientific computing tools for Python, built on other widely used packages \
    such as Numpy and Scipy.

python.versions         27

checksums           rmd160  c0c57bc2f248ca1721e66210c00df4241a7dd4ac \
                    sha256  312492e143317fca49045534407e0fc1a9edbaf1b6e290b9c95c11120787e555

if {${name} ne ${subport}} {

    # The SciTools setup.py script attempts to import matplotlib
    # and matplotlib always attempts to create $MPLCONFIGDIR/.matplotlib,
    # where $MPLCONFIGDIR defaults to $HOME. Set $MPLCONFIGDIR to ${worksrcpath}
    # so that write access is guaranteed.
    build.env-append    MPLCONFIGDIR=${worksrcpath}
    destroot.env-append MPLCONFIGDIR=${worksrcpath}

    depends_lib-append  port:py${python.version}-matplotlib
    depends_run-append  port:py${python.version}-numpy \
                        port:py${python.version}-scipy

    livecheck.type      none

}
