# -*- 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-blessed
version             1.18.0
revision            0

platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         A thin practical wrapper around terminal styling screen positioning \
                    and keyboard input.
long_description    ${description}

homepage            https://github.com/jquast/blessed

checksums           rmd160  0268270327b4c5c7a3aa068644f0d3d9aab3d48b \
                    sha256  1312879f971330a1b7f2c6341f2ae7e2cbac244bfc9d0ecfbbecd4b0293bc755 \
                    size    6651519

python.versions     27 35 36 37 38 39

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

    depends_lib-append \
                    port:py${python.version}-six \
                    port:py${python.version}-wcwidth

    if {${python.version} == 27} {
        depends_lib-append \
                    port:py${python.version}-backports-functools_lru_cache
    }

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}/docs
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.rst \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 {*}[glob -types f ${worksrcpath}/docs/*] \
            ${destroot}${prefix}/share/doc/${subport}/docs
    }

    livecheck.type      none
}
