# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-py
version             1.4.14
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     25 26 27 32 33

maintainers         akitada openmaintainer

description         py lib is a Python development support library

long_description    The py lib is a Python development support library \
                    featuring ad-hoc distributed execution, micro-threads \
                    and svn abstractions.

homepage            http://pylib.readthedocs.org/
master_sites        http://pypi.python.org/packages/source/p/py/

checksums           rmd160  9edc928159dea4b37a233ed2426631474922bc60 \
                    sha256  a1915fffc0590a104fd033466469c7f074a1b524d1a08c7fc501f406a0d8526f

distname            py-${version}

if {$subport != $name} {
    depends_build-append    port:py${python.version}-setuptools
    depends_run-append      port:py${python.version}-pytest

    # Deactivate hack
    if {![catch {set installed [lindex [registry_active py${python.version}-py] 0]}]} {
        set py_version [lindex $installed 1]
        if {[vercmp $py_version 1.4] < 0} {
            registry_deactivate_composite py${python.version}-py "" [list ports_nodepcheck 1]
        }
    }

    livecheck.type      none
} else {
    livecheck.url       ${master_sites}
    livecheck.regex     "py-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
