# -*- 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           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         Coro 6.57

platforms           darwin
maintainers         nomaintainer

# Perl module is same license as Perl 5
# bundled libcoro is 2-clause BSD or GPLv2
license             {Artistic-1 GPL} {BSD GPL-2}

description         Coro - the only real threads in perl

long_description    ${description}

checksums           rmd160  2959ba3cf6938a6094af43ae4e8b05779602feec \
                    sha256  1928e48033540e11ebf5506986dd101af78d2421d210f96599223b15d51714c6 \
                    size    198128

if {${perl5.major} ne ""} {
    # ERROR: Cannot copy 'AIO.pm' to '../blib/lib/Coro/AIO.pm': Permission denied
    use_parallel_build no

    depends_build-append \
                    port:p${perl5.major}-canary-stability

    depends_lib-append \
                    port:p${perl5.major}-anyevent \
                    port:p${perl5.major}-common-sense \
                    port:p${perl5.major}-guard
}
