# -*- 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-toposort
version             1.10
revision            0

categories-append   devel
license             Apache-2
supported_archs     noarch
platforms           {darwin any}
maintainers         nomaintainer

description         Implements a topological sort algorithm
long_description    {*}${description}

homepage            https://gitlab.com/ericvsmith/toposort

checksums           rmd160  f6ed3e32b7a6942230221d60662008595f9b2508 \
                    sha256  bfbb479c53d0a696ea7402601f4e693c97b0367837c8898bc6471adfca37a6bd \
                    size    11132

python.versions     310 311

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

    test.run    yes
    python.test_framework
    test.cmd    ${python.bin} -m test.test_toposort
}
