# -*- 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-eventlet
version             0.22.0
categories-append   devel
license             MIT BSD Apache-2
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

description         Coroutine-based networking library
long_description    Eventlet is a networking library written in \
                    Python. It achieves high scalability by using \
                    non-blocking io while at the same time \
                    retaining high programmer usability by using \
                    coroutines to make the non-blocking io \
                    operations appear blocking at the source code \
                    level.

homepage            http://eventlet.net/
master_sites        pypi:e/eventlet/
distname            eventlet-${version}

checksums           rmd160  d766322b34746cd88fe89bdca7c2280f48b12474 \
                    sha256  6d22464f448fdf144a9d566c157299d686bbe324554dd7729df9ccd05ca66439 \
                    size    493085

python.versions     27 36

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.regex     "eventlet-(\\d+(?:\\.\\d+)*)"
}