# -*- 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 91373 2012-03-31 00:08:55Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-ez_setup
version             0.9
categories-append   devel
license             MIT
maintainers         jwa openmaintainer
description         To solve a setuptools problem
long_description	${description}

platforms           darwin

homepage            http://pypi.python.org/pypi/ez_setup/
master_sites        http://pypi.python.org/packages/source/e/ez_setup/
distname            ez_setup-${version}

checksums           rmd160  796b5364e8e64455468b76b4f8a2fd10f0389d1b \
                    sha256  303c5b17d552d1e3fb0505d80549f8579f557e13d8dc90e5ecef3c07d7f58642

python.versions     24 25 26 27 31 32
python.default_version 27
python.link_binaries no

if {$subport != $name} {
    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} NEWS.txt \
            README.rst ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     ez_setup-(\\d+(\\.\\d+)+)
}
