# -*- 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

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} 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        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  64a49905f61c3aefc0d3d92ee6d5beaefdb3b2a6 \
                    sha256  29c9fab495d7528e80ba1e343b958684f4ace687327e6f789a94bf3d1915f881

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools

    # 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
}