# -*- 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-apipkg
version             1.5
revision            0
categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         namespace control and lazy-import mechanism
long_description    ${description}

homepage            https://github.com/pytest-dev/apipkg
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  3a9c4097dab889b2047eddca849479e2a3568301 \
                    sha256  37228cda29411948b422fae072f57e31d3396d2ee1c9783775980ee9c9990af6 \
                    size    11186

python.versions     27 35 36 37 38 39

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

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

    livecheck.type  none
}
