# -*- 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         Gearman 2.004.015
categories-append   net
license             {Artistic-1 GPL}
platforms           {darwin any}
maintainers         nomaintainer

description         Gearman client library for Perl
long_description    ${description}

homepage            https://metacpan.org/release/Gearman

checksums           rmd160  89eb152a3b72838cdc04114cb9b5e22ab735ee31 \
                    sha256  7fb87634a5fac5c40ec221489e227b9e7b2e5f0897edada07e5a597ecb4053ec \
                    size    48847

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-file-which \
                    port:p${perl5.major}-proc-guard \
                    port:p${perl5.major}-test-exception \
                    port:p${perl5.major}-test-simple \
                    port:p${perl5.major}-test-tcp \
                    port:p${perl5.major}-test-timer

# use Time::HiRes 1.9739+ for Sierra compatibility
    depends_lib-append \
                    port:p${perl5.major}-io-socket-ip \
                    port:p${perl5.major}-io-socket-ssl \
                    port:p${perl5.major}-list-moreutils \
                    port:p${perl5.major}-string-crc32 \
                    port:p${perl5.major}-time-hires \
                    port:p${perl5.major}-version


    supported_archs noarch
}
