# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

set real_name       pytools

name                py-${real_name}
version             2013.5.6
platforms           darwin
maintainers         nomaintainer
license             MIT
supported_archs     noarch

description         A collection of tools for Python
long_description    Pytools is a big bag of things that are "missing" \
                    from the Python standard library.
homepage            http://pypi.python.org/pypi/${real_name}

distname            ${real_name}-${version}
master_sites        http://pypi.python.org/packages/source/p/${real_name}

checksums           rmd160  295d30e025fdae08a495da2bbd076d86fce898f4 \
                    sha256  e15dc874f9d8b3f13cf6297e509eaffe722c459cd92a39858813b8dba55bc77e

python.versions     26 27 31 32 33

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_run-append      port:py${python.version}-decorator
    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.url           ${master_sites}
    livecheck.regex         "${real_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
