# -*- 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.25.1
revision            0

categories-append   devel
license             MIT
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

description         Highly concurrent 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            https://eventlet.net/

checksums           rmd160  c7f1a17b01ca25d07d0da53755f12a33823f112f \
                    sha256  6c9c625af48424c4680d89314dbe45a76cc990cf002489f9469ff214b044ffc1 \
                    size    392719

python.versions     27 36 37

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

    depends_lib-append  port:py${python.version}-dnspython \
                        port:py${python.version}-greenlet \
                        port:py${python.version}-monotonic \
                        port:py${python.version}-six

    if {${python.version} eq 27} {
        depends_lib-append  \
                        port:py${python.version}-enum34
    }

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} AUTHORS LICENSE NEWS \
           README.rst ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type      none
}
