# -*- 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-wurlitzer
version             3.1.1
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Capture C-level output in context managers
long_description    {*}${description}

homepage            https://github.com/minrk/wurlitzer

checksums           rmd160  ad73845f328610d0e2385b76907ab724de768f4a \
                    sha256  bfb9144ab9f02487d802b9ff89dbd3fa382d08f73e12db8adc4c2fb00cdd9 \
                    size    11867

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_test-append \
                    port:py${python.version}-mock

    test.run        yes
    test.target     test.py

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
    }
}
