# -*- 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.2
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  d0434b68e84b6572fd149eb4be24ad9118d423b0 \
                    sha256  2acd86617203bc966b125d016526fb40503411a2281b55d9d970a487dc6e065a \
                    size    37725

python.versions     27 35 36 37

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
}