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

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         MIDI Objects for Python
long_description    Mido is a library for working with MIDI messages and ports.

homepage            https://mido.readthedocs.io/

checksums           rmd160  38fe400c49050bd0924b55566a9d540381624bf5 \
                    sha256  2a58a6ded462e238f27e7afdee0f0bedeeb4ab0f19b8a583a649230ff2b400b9 \
                    size    95743

python.versions     37 38 39 310 311

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

    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 README.rst \
            ${destroot}${docdir}
    }

    livecheck.type  none
}
