# -*- 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-gevent
version             1.4.0
revision            0
categories-append   devel
platforms           darwin
license             MIT
supported_archs     i386 x86_64

python.versions     27 34 35 36 37

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

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

checksums           rmd160  37d748a02b6b9c4f59efc4f86b7d56ae8a9f35ec \
                    sha256  1eb7fa3b9bd9174dfe9c3b59b7a09b768ecd496debfc4976a9530a3e15c990d1 \
                    size    5169595

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

    build.env-append    LIBEV_EMBED=0 \
                        CARES_EMBED=0

    destroot.env-append LIBEV_EMBED=0 \
                        CARES_EMBED=0

    livecheck.type      none
}