# -*- 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-blessings
version             1.7
revision            0
maintainers         nomaintainer
python.versions     27 34 35 36 37

description         A thin, practical wrapper around terminal formatting, positioning, and more
long_description    ${description}
platforms           darwin
supported_archs     noarch
license             MIT

homepage            https://github.com/erikrose/blessings
master_sites        pypi:b/${python.rootname}/
distname            ${python.rootname}-${version}
checksums           rmd160  684c638f95ece792dac0e7b5d65d9c139cdb88f4 \
                    sha256  98e5854d805f50a5b58ac2333411b0482516a8210f23f43308baeb58d77c157d \
                    size    28194

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

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

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

    livecheck.type  none
}