# -*- 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.1.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  a85f8e977079f4abe4bdce5d3b99839d4d2e4607 \
                    sha256  9a4a85b84e906337708009af0b5f5cdabeeb72d4dc213c9e97974da54fd9acc5 \
                    size    140100

python.versions     27 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}
    }
}
