# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           compilers 1.0
PortGroup           python 1.0

name                py-spacepy
version             0.7.0
revision            0

license             PSF
maintainers         nomaintainer

description         SpacePy: Tools for Space Science Applications
long_description    {*}${description}

homepage            https://spacepy.github.io

checksums           rmd160  5536555b80359fab50845842f65722cee24fbcb7 \
                    sha256  d970de02b1b8ec8451bc2f8077b8c9cc2597e897f52d6ab160a4e05fe5b4d192 \
                    size    7667619

python.versions     314

if {${name} ne ${subport}} {
    compilers.setup     require_fortran

    patchfiles      patch-FC-setup.py.diff
    post-patch {
        reinplace "s|@@MP_FC@@|${configure.fc}|g" ${worksrcpath}/setup.py
    }

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