PortSystem      1.0
PortGroup       python 1.0

name            py-progressbar
version         2.3
license         LGPL-2.1+
maintainers     nomaintainer
platforms       darwin
supported_archs noarch

description     Text progressbar library for python

long_description \
    This library provides a text mode progressbar. This is typically used to \
    display the progress of a long running operation, providing a visual clue \
    that processing is underway.

categories-append \
    devel

homepage        https://code.google.com/p/python-progressbar/
master_sites    googlecode:python-progressbar
distname        progressbar-${version}

checksums           rmd160  54da4c737c6e012804fcbca215f4be196b441a4a \
                    sha256  00a316c1a99b70a803d7430fd088da24f37dbfb64f81c4772b97fbc1e8031de4

python.versions     27

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt ${destroot}${docdir}
    }

    livecheck.type      none
} else {
    livecheck.regex     python-progressbar.googlecode.com/files/progressbar-(\\d(\\.\\d+)+)
}