# -*- 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-mir_eval
version             0.8.2
revision            0

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

description         Common metrics for common audio/music processing tasks.
long_description    Python library for computing common heuristic\
                    accuracy scores for various music/audio\
                    information retrieval/signal processing tasks.

homepage            https://mir-eval.readthedocs.io

checksums           rmd160  0e9cb25e1e13173279f0e65c8371891895f57630 \
                    sha256  141a3e1193276889fc32e911547e73dcb3e829ee8cfea60f7bbcd633c0792569 \
                    size    117649

python.versions     314

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

    test.run        yes

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