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

github.setup        mkorpela overrides 3.1.0
revision            0
name                py-${github.project}

categories-append   textproc
platforms           darwin
license             Apache-2
maintainers         nomaintainer

description         A decorator to automatically detect mismatch when \
                    overriding a method
long_description    {*}${description}. See \
                    http://stackoverflow.com/questions/1167617/in-python-how-do-i-indicate-im-overriding-a-method

checksums           rmd160  728ccde1355fe5d84460e778478d0bacecf9dc8b \
                    sha256  acf0a9e41dc499191b7d8c4a5bd316235158eaf2d55cf90efaf0b0817d25df97 \
                    size    10481

python.versions     37 38 39

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

    depends_test-append \
                    port:py${python.version}-nose

    test.run        yes
    test.cmd        nosetests-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
            ${destroot}${docdir}
    }

    livecheck.type  none
}
