# -*- 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-wcwidth
version             0.2.13
revision            0

license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         Library for building powerful interactive command lines in Python
long_description    {*}${description}

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

checksums           rmd160  ef8024e973f1dcc4e86a4c0a38b14a8918b4bbd8 \
                    sha256  72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5 \
                    size    101301

python.versions     27 35 37 38 39 310 311 312

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

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

    test.run        yes
}
