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

distname            eyed3-${version}

checksums           rmd160  a48ced4f28e6b23032fc0ea6a9b4b65262b0b817 \
                    sha256  a8affaae19384aca66f6efef3babd705042a76e546f08e886f5f28691ac62a3b \
                    size    216352

python.versions     313 314

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