# -*- 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           python 1.0
PortGroup           github 1.0

github.setup        quodlibet mutagen 1.47.0 release-
github.tarball_from releases
name                py-mutagen
revision            0

categories-append   audio devel
platforms           {darwin any}
supported_archs     noarch
license             GPL-2+
maintainers         nomaintainer

description         A Python module to handle audio metadata
long_description \
    Supports ASF, FLAC, M4A, Monkey's Audio, MP3, Musepack, Ogg FLAC, Ogg \
    Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio \
    files. All versions of ID3v2 are supported, and all standard ID3v2.4 \
    frames are parsed. It can read Xing headers to accurately calculate the \
    bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of \
    audio format. It can also manipulate Ogg streams on an individual \
    packet/page level.

homepage            https://mutagen.readthedocs.io

checksums           rmd160  7c409dd63eb770a1cb14150b2611d16d43975b74 \
                    sha256  719fadef0a978c31b4cf3c956261b3c58b6948b32023078a2117b1de09f0fc99 \
                    size    1274186

python.versions     310 311 312 313

if {${subport} ne ${name}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} COPYING NEWS \
            README.rst ${destroot}${docdir}
    }

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

    test.run        yes
}
