# -*- 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
# $Id: Portfile 89398 2012-01-28 08:04:23Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pip
version             1.0.2
revision            1
categories          python www
platforms           darwin
maintainers         nomaintainer
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  47ec6ff3f6d962696fe08d4c8264ad49 \
                    sha1  bb137ac723389651e6cf56c0c95af0a6547443b6 \
                    rmd160  2a398d35c63f62194528aa16ce989ce532f6b895

python.versions     24 25 26 27 31 32

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

    python.link_binaries_suffix
    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/docs index.txt news.txt \
            requirement-format.txt configuration.txt \
            ${destroot}${prefix}/share/doc/${subport}
        delete ${destroot}${prefix}/bin/pip
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi/pip
    livecheck.regex     pip (\[0-9\]+\.\[0-9.\]+)
}
