# -*- 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-cogen
version             0.2.1
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     27

maintainers         {stromnov @stromnov} openmaintainer

description         Library for network oriented, coroutine based programming.

long_description    Coroutines and asynchronous I/O using enhanced generators \
                    from python 2.5, including a enhanced WSGI server.

homepage            https://code.google.com/p/cogen/
master_sites        pypi:c/cogen/
distname            cogen-${version}

checksums           md5     6c765905e4bc0278d35dd5c0011d032d \
                    sha1    6163a459f3dc007fd6832de12b7d26bcdaea295b \
                    rmd160  3e3a9ce41179e8482f6b7861f6a79f070a6e36f0

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/cogen/json
    livecheck.regex     {cogen-(\d+(?:\.\d+)*)\.[tz]}
}