# -*- 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
PortGroup           github 1.0

github.setup        rocky pycolumnize 0.3.9 release-
name                py-columnize
platforms           darwin
supported_archs     noarch
license             GPL-3+
maintainers         nomaintainer

description         Format a simple list into aligned columns
long_description    A Python module to format a simple (i.e. not \
                    nested) list into aligned columns. A string with \
                    embedded newline characters is returned.

checksums           rmd160  7dff9bc5ffab9411c4420bcf28eaa696289171c7 \
                    sha256  3a7917418dab04d45a3ceecad5e6a19224648eb354b11be2ffa1000a84ad34aa

python.versions     27 34 35 36

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

    if {${python.version} < 30} {
        depends_lib-append  port:py${python.version}-backports-shutil_get_terminal_size
    }

    depends_test-append     port:py${python.version}-mock
    test.run                yes
    test.env                PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type          none
}