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

github.setup        bmcfee resampy 0.2.2
revision            0
name                py-${github.project}

categories-append   audio
platforms           darwin
supported_archs     noarch
license             ISC
maintainers         nomaintainer

description         Efficient sample rate conversion in python
long_description    {*}${description}

checksums           rmd160  1bfe3c1fdc94ca627008be836e0eee05d54593d5 \
                    sha256  1500fa0ceb4e832f9d61d0d52d0e14f86919915c6a0d607fd30c1400bea0e905 \
                    size    333571

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-numba \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy \
                    port:py${python.version}-six

    depends_test-append \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        pytest-${python.branch}
    test.args       -o addopts=''
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
            ${destroot}${docdir}
    }

    livecheck.type  none
}
