# -*- 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.2
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  ccb78ebe3b3c2562c5d15bd84945ee34f15dac35 \
                    sha256  dc16ea6b35fbf5291ba6ef79d79e37d9b3ca6acd7bae3ca3450488d7c2e19c99 \
                    size    15400

python.versions     310 311 312 313 314 315

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
}
