# -*- 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        craffel pretty-midi 0.2.9
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-${github.project}
categories-append   audio

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Functions and classes for handling MIDI data conveniently.
long_description    pretty_midi contains utility function/classes for\
                    handling MIDI data, so that it's in a format which\
                    is easy to modify and extract information from.

homepage            https://github.com/craffel/pretty-midi

checksums           rmd160  c73aedc87c7d157a92e3632c182407e006dbbffb \
                    sha256  0d2955ce3636eee9d0cff831fa9a703d2afeb46aeec5cd9d1aeb4cb7b49ef591 \
                    size    5847871

python.versions     39 310 311

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-mido \
                    port:py${python.version}-numpy \
                    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.txt README.md \
            ${destroot}${docdir}
    }
}
