# -*- 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-libtmux
version             0.58.1
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {@egorenar posteo.net:egorenar-dev} \
                    {@judaew judaew} openmaintainer

description         Python binding for tmux
long_description    {*}${description}

homepage            https://github.com/tmux-python/libtmux

checksums           rmd160  5cc7f3ebd7273ea6d5b8aec7fd9c8013a0cd072d \
                    sha256  a294dd585aa419d4ecce36f3e55df656693743c97a0b5b5bb1e5fea31ada2482 \
                    size    519541

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

if {${name} ne ${subport}} {
    depends_run-append \
                    port:tmux

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