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

supported_archs     noarch
platforms           {darwin any}
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  55670330cd8a452f879ad5ae668c548730d52a71 \
                    sha256  4d547019d7b40fc5420ea2ba2bc180fdccc31d6715298e2b49ffa7b020d44667 \
                    size    13948932

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

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

    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
    }
}
