# -*- 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-resampy
version             0.4.3
revision            0

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

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

homepage            https://github.com/bmcfee/resampy

checksums           rmd160  e974f12d47e85626429946bff2ae4fc0dfe8cd86 \
                    sha256  a0d1c28398f0e55994b739650afef4e3974115edbe96cd4bb81968425e916e47 \
                    size    3080604

python.versions     310 311 312 313

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

    test.run        yes

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