# -*- 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        beetbox audioread 3.0.1 v
# 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         cross-library (GStreamer + Core Audio + MAD + FFmpeg)\
                    audio decoding for Python.
long_description    {*}${description} Decode audio files using whichever\
                    backend is available. The library currently\
                    supports: Gstreamer via PyGObject\; Core Audio on\
                    Mac OS X via ctypes (PyObjC not required)\; MAD via\
                    the pymad bindings\; FFmpeg or Libav via its\
                    command-line interface\; The standard library wave,\
                    aifc, and sunau modules (for uncompressed audio\
                    formats).

checksums           rmd160  f4a2ffacc22de0d9b11dd9174ac1523e343b16ed \
                    sha256  aebbff016f40c4465d916b5a8e590bf44a558905933b29ed036b13eadbcc5622 \
                    size    112100

python.versions     310 311 312 313 314
python.pep517_backend   flit

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

    test.env-append PYTHONPATH=${worksrcpath}
    test.run        yes
}
