# -*- 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
# 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         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     39 310 311

if {${name} ne ${subport}} {
    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}
    }
}
