# -*- 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-pbr
version             7.0.1
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python Build Reasonableness
long_description    A library for managing setuptools packaging needs \
                    in a consistent manner. pbr reads and then filters \
                    the setup.cfg data through a setup hook to fill in \
                    default values and provide more sensible \
                    behaviors, and then feeds the results in as the \
                    arguments to a call to setup.py - so the heavy \
                    lifting of handling python packaging needs is \
                    still being done by setuptools.

homepage            https://docs.openstack.org/pbr/latest/

checksums           rmd160  4c8d1d761c358e7feb800d6b4e698f4bd5784e70 \
                    sha256  3ecbcb11d2b8551588ec816b3756b1eb4394186c3b689b17e04850dfc20f7e57 \
                    size    130086

python.versions     27 38 39 310 311 312 313

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

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