# $Id: Portfile 118129 2014-03-23 11:05:03Z raimue@macports.org $

PortSystem        1.0
PortGroup         python 1.0

name              py-distutils-extra
set my_name       python-distutils-extra
version           1.91.2
license           GPL-2+
platforms         darwin
supported_archs   noarch
maintainers       nomaintainer

description       enhancements to the Python build system
long_description  ${description}

homepage          http://packages.debian.org/source/sid/${my_name}
master_sites      debian:p/${my_name} \
                  http://archive.debian.org/debian/pool/main/p/python-distutils-extra/
distname          ${my_name}_${version}
worksrcdir        debian

checksums         md5 413ebd3e52c45437eaa36d1d9e6912fd \
                  sha1 e0a26f21c73a7cb585fe914b1d8af9469eb5decd \
                  rmd160 2a833b11b8defb213a93758517c6c8e929cba0ac

python.versions   25 26 27

if {${name} ne ${subport}} {
    depends_build     port:py${python.version}-setuptools
    depends_lib-append port:intltool
    livecheck.type    none
} else {
    livecheck.type    regex
    livecheck.url     ${homepage}
    livecheck.regex   ${my_name}_(\\d+(?:\\.\\d+)*).tar.gz
}
