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

# Compatible with PHP 8.4 as of 2.1.3
php.branches            5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
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.1]} {
    version             2.1.4
    revision            0
    checksums           rmd160  2c7a401c711b804767459458f1125229c94f161c \
                        sha256  1b16ae5e17736e2ce892fd96145fa8b9e1724106458535d0c7e3d4093a9091a9 \
                        size    46902
} elseif {[vercmp ${php.branch} >= 7.0]} {
    version             2.1.3
    revision            0
    checksums           rmd160  960a656dfd74d5d4a8b914a0e2d21c44f62a8a6b \
                        sha256  de88d42ac74a772f762ad85d68d373f1d534c9d5876238d507054b481f7ff8d7 \
                        size    46877
} elseif {[vercmp ${php.branch} >= 5.1]} {
    version             1.1.2
    revision            0
    checksums           rmd160  8817e87f53cdb3cc21eaf91454dc7f35d6cadc88 \
                        sha256  c30a68145b4e33f4da929267f7b5296376ca81d76dd801fc77a261696a8a5965 \
                        size    30961
}

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