# -*- 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.8.5
revision            0

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

description         Python binding for tmux
long_description    ${description}

homepage            https://github.com/tmux-python/libtmux
master_sites        pypi:l/${python.rootname}/
distname            ${python.rootname}-${version}

checksums           rmd160  ace9b7341b48f683911bece86bf6040270d498e9 \
                    sha256  1d35b9f8451944d31c5ed22ed9e6c8e18034adcc75718fcc5b27fbd9621543e1 \
                    size    36961

python.versions     27 35 36 37 38 39

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

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

    livecheck.type  none
} else {
    livecheck.type  pypi
}
