# -*- 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               php 1.1

name                    php-gearman
categories-append       net devel
platforms               darwin freebsd openbsd
maintainers             {ryandesign @ryandesign} openmaintainer
license                 PHP-3.01

php.branches            5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
php.pecl                yes

description             Library to provide API for communicating with gearmand, using libgearman.
long_description        Library to provide API for communicating with gearmand, and writing clients and workers.

if {[vercmp ${php.branch} 7.0] >= 0} {
    version             2.1.0
    revision            0
    checksums           rmd160  95f3d3430384b6a1827e88da1ffb1483d417081b \
                        sha256  77075fc250fac2d3878deb255d44efc3ad76cf7b2c7f1af420cb17839a03c0bc \
                        size    46483
} else {
    version             1.1.2
    revision            0
    checksums           rmd160  8817e87f53cdb3cc21eaf91454dc7f35d6cadc88 \
                        sha256  c30a68145b4e33f4da929267f7b5296376ca81d76dd801fc77a261696a8a5965 \
                        size    30961
}

if {${name} ne ${subport}} {
    depends_lib-append  port:gearmand
}
