# $Id: Portfile 65907 2010-04-02 22:08:22Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-pip
version             0.4
categories          python www
platforms           darwin
maintainers         arthurk
homepage            http://pip.openplans.org/
description         An easy_install replacement
long_description    pip is a replacement for easy_install. It uses mostly the \
                    same techniques for finding packages, so packages that \
                    were made easy_installable should be pip-installable as \
                    well.

master_sites        http://pypi.python.org/packages/source/p/pip/
distname            pip-${version}
checksums           md5     b45714d04f8fd38fe8e3d4c7600b91a2 \
                    sha1    3863bf8f75f4727b1554bca1f8473fde1cbbcd1e \
                    rmd160  480e272e75ee5d63cde828515b34690b9e7a6002

depends_lib-append  port:py25-distribute

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath}/docs index.txt news.txt \
        requirement-format.txt \
        ${destroot}${prefix}/share/doc/${name}
    move ${destroot}${prefix}/bin/pip ${destroot}${prefix}/bin/pip-2.5
}

livecheck.type      regex
livecheck.url       http://pypi.python.org/pypi/pip
livecheck.regex     pip (0\.\[0-9\]+\.\[0-9\]+)

