# $Id: Portfile 92543 2012-05-01 03:01:18Z jmr@macports.org $

PortSystem      1.0
PortGroup       python 1.0

name            py-progressbar
version         2.3
python.versions 26 27
python.default_version  27
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        http://code.google.com/p/python-progressbar/
master_sites    http://python-progressbar.googlecode.com/files
distname        progressbar-${version}

checksums           rmd160  54da4c737c6e012804fcbca215f4be196b441a4a \
                    sha256  00a316c1a99b70a803d7430fd088da24f37dbfb64f81c4772b97fbc1e8031de4

if {${name} != ${subport}} {
    depends_build     port:py${python.version}-distribute

    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.type      regex
    livecheck.regex     python-progressbar.googlecode.com/files/progressbar-(\\d(\\.\\d+)+)
}
