# -*- 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 97473 2012-09-07 07:49:00Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-gevent
version             0.13.8
revision            0
categories-append   devel
license             MIT
platforms           darwin
supported_archs     i386 x86_64

maintainers         stromnov openmaintainer

description         Coroutine-based Python networking library.

long_description    gevent is a coroutine-based Python networking \
                    library that uses greenlet to provide a high-level \
                    synchronous API on top of libevent event loop.

homepage            http://gevent.org
master_sites        http://pypi.python.org/packages/source/g/gevent/

distname            gevent-${version}

checksums           rmd160  7ef398448755c717d21a3b019a9b4aa77c33737d \
                    sha256  54b8d26300ce408c0916a3e63ef6cd3e6aca76230833558deb7de15196ed955e

python.default_version  27
python.versions     26 27

if {$subport != $name} {
    depends_lib-append      port:libevent \
                            port:py${python.version}-greenlet
    build.args-append       -I${prefix}/include -L${prefix}/lib
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "gevent-(\\d+(?:\\.\\d+)*)"
