# $Id: Portfile 79330 2011-06-09 17:19:59Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       python26 1.0

name            py26-progressbar
version         2.2
revision        1
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://pypi.python.org/pypi/progressbar/
master_sites    http://pypi.python.org/packages/source/p/progressbar/
distname        progressbar-${version}

checksums       md5     8ea4e2c17a8ec9e7d153767c5f2a7b28 \
                sha1    a6ccec7c4d908a0c9d5ed1831ca9947df003407c \
                rmd160  13f59c0c3155cd120eef11c7736f6363d33fa136

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

livecheck.type    regex
livecheck.url     ${homepage}
livecheck.regex   {<h1>progressbar (.*)</h1>}
