# -*- 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        bmcfee presets 0.1.3
revision            1
name                py-${github.project}

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

description         A python module to manipulate default parameters \
                    of a module's functions.
long_description    {*}${description}

checksums           rmd160  c8081e31934f9ea973524e5ea0bb8e5fe55a7b25 \
                    sha256  a3afc2c2bbc9c7ca87fc2be4b2b11081e07e9caec2e1ee09a3e5952f33874a8f \
                    size    10684

python.versions     37 38

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

    depends_lib-append \
                    port:py${python.version}-six

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

    test.run        yes
    test.cmd        pytest-${python.branch}
    test.args       -o addopts=''
    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} LICENSE README.md \
            ${destroot}${docdir}
    }

    livecheck.type  none
}
