# -*- 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.3
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  19b628261f138da48074ae40ad8d2b6fc9f3cfa0 \
                    sha256  b46004ec30a5324672683ec848aed9e8fc500b0d261d40a3229c2d2bbfcedc29 \
                    size    135625

python.versions     27 38 39 310 311 312 313 314

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}
    }
}
