# -*- 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           legacysupport 1.1
PortGroup           python 1.0

# CLOCK_MONOTONIC
legacysupport.newest_darwin_requires_legacy 15

name                py-gevent
version             26.5.0
revision            0
categories-append   devel
license             MIT
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            https://gevent.org
checksums           rmd160  87611ec26e01a19095164e55e09cbebb62e26dcb \
                    sha256  1655eb04c1e20d71b2aa4a3c7528162dd58ff6cc46a037af1f01f534c80fefba \
                    size    6712354

python.versions     310 311 312 313 314

if {${subport} ne ${name}} {
    patchfiles-append   patch-libuv-fix-1.50.1.diff

    depends_build-append \
                        port:py${python.version}-cython

    depends_lib-append  port:py${python.version}-greenlet \
                        port:py${python.version}-cffi \
                        port:py${python.version}-zope-event \
                        port:py${python.version}-zopeinterface

    compiler.blacklist-append *gcc-4.*
}
