# -*- 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

name                py-eyed3
python.rootname     eyeD3
version             0.9.7
revision            0

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

description         Python audio data toolkit (ID3 and MP3)
long_description    eyeD3 is a Python tool for working with audio files, specifically MP3 files \
                    containing ID3 metadata (i.e. song info). \
                    It provides a command-line tool (eyeD3) and a Python library (import eyed3) \
                    that can be used to write your own applications or plugins that are callable \
                    from the command-line tool.

homepage            https://eyed3.readthedocs.io

checksums           rmd160  e9399b5a8b1612115f0bdb8ae1c9432388a5f17c \
                    sha256  93b18e9393376a45114f9409d7cca119fb6f4f9a37d4b697b500af48b4c5cf0f \
                    size    245122

python.versions     39
python.pep517_backend poetry

if {${name} ne ${subport}} {
    patchfiles      0e0f51c68788ac5bcd8cfd862d35bf1045666c61.diff

    depends_lib-append \
                port:py${python.version}-deprecation \
                port:py${python.version}-filetype

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