# -*- 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
revision            0
name                py-${github.project}
categories-append   audio

platforms           darwin
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     37 38

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

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

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

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env-append \
                    PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type      none
}
