# -*- 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             5.8.0
revision            0

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

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

homepage            https://docs.openstack.org/stevedore

checksums           rmd160  706dc02c3524a15603354d26f8de4ac7341736b1 \
                    sha256  b49867b32ca3016e94100e68dbf26e72aa7b8708d0a3f73c08aeb220370ac715 \
                    size    514710

python.versions     310 311 312 313 314

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

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