# -*- 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-stevedore
version             1.31.0
revision            0

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

description         Manage dynamic plugins for Python applications
long_description    ${description}

homepage            https://docs.openstack.org/stevedore
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  de1f8e7334aeb7daaf887f8f08441c0050369bc4 \
                    sha256  e0739f9739a681c7a1fda76a102b65295e96a144ccdb552f2ae03c5f0abe8a14 \
                    size    505482

python.versions     27 35 36 37 38 39

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

    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${dest_doc}
        xinstall -m 0644 -W ${worksrcpath} \
            README.rst AUTHORS LICENSE announce.rst \
            ChangeLog CONTRIBUTING.rst ${dest_doc}
    }

    livecheck.type      none
}
