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

name                py-cdflib
version             1.3.2
revision            0

categories-append   science
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         A python CDF reader toolkit
long_description    {*}${description}

homepage            https://github.com/MAVENSDC/cdflib

checksums           rmd160  ca0429d3fd0e84cc048db2edf56d51097813e4a7 \
                    sha256  97f27ac629e4c0ac1367eb8f4edd7a1d184190272ab98a6401e999f3a2e05687 \
                    size    240218

python.versions     312

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

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

    post-destroot {
        # do not install "tests" and "benchmark" directories into ".../site-packages"
        move ${destroot}${python.pkgd}/tests ${destroot}${python.pkgd}/${python.rootname}
        move ${destroot}${python.pkgd}/benchmarks ${destroot}${python.pkgd}/${python.rootname}
    }
}
