# -*- 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.3.3
github.tarball_from archive
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  35bfbe693388232a7697defa1048d9f4429c60d9 \
                    sha256  ca8c0bb96c82737e9c2a776162c3223c258838324b3bea933b90b6fc7222a088 \
                    size    171206

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm
    build.env-append \
                    SETUPTOOLS_SCM_PRETEND_VERSION=${version}
    depends_lib-append \
                    port:py${python.version}-packaging
    test.run        yes

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