# -*- 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-texttable
version             1.7.0
revision            0

categories-append   textproc
license             MIT
supported_archs     noarch
platforms           {darwin any}
maintainers         nomaintainer

description         python module for creating simple ASCII tables
long_description    {*}${description}

homepage            https://github.com/foutaise/texttable/

checksums           rmd160  0e46398bd04bca5c8cf531e3bdbb0962fc3e3138 \
                    sha256  2d2068fb55115807d3ac77a4ca68fa48803e84ebb0ee2340f858107a36522638 \
                    size    12831

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md LICENSE \
            CHANGELOG.md ${destroot}${docdir}
    }

    test.run        yes
    python.test_framework
    test.cmd        ${python.bin}
    test.args       tests.py
}
