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

categories-append   devel
platforms           darwin
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  038d0fccbdfb1c3bfaa862587926bea7acc70cb9 \
                    sha256  5fad80b613c402d5b7df7bd84812548b2a61e9977387a80a5fc5c396492b13c9 \
                    size    117488

python.versions     27 35 36 37 38 39

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

    livecheck.type  none
}
