# -*- 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 107170 2013-06-20 20:42:55Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-eventlet
version             0.9.16
categories-append   devel
license             MIT BSD Apache-2
platforms           darwin
supported_archs     noarch
maintainers         akitada openmaintainer

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        http://pypi.python.org/packages/source/e/eventlet/
distname            eventlet-${version}

checksums           md5    4728e3bd7f72763c1e5dccac0296f8ea \
                    sha256 b2d38084809b2f2a8e3cc5815b10912870cdbe97d9a4e5c1ff231ebc8da0e430

python.versions     26 27

if {$subport != $name} {
    depends_build       port:py${python.version}-setuptools
    depends_lib         port:py${python.version}-greenlet
    
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "eventlet-(\\d+(?:\\.\\d+)*)"
}
