# -*- 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-samplerate
version             0.2.1
revision            0

license             MIT
maintainers         nomaintainer

description         Monolithic python wrapper for libsamplerate based on pybind11 and NumPy
long_description    {*}${description}

homepage            https://github.com/tuxu/python-samplerate

checksums           rmd160  0ba39be75252daa9cbbcfb2927d3e856a8396ef6 \
                    sha256  464d3574412024184fb7428ecbaa1b2e207bddf5fbc10a5d9ddc3fc1c7b7ab1e \
                    size    21494

python.versions     39 310 311 312 313

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

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

    test.run        yes
}
