# -*- 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-redis
categories-append       databases
maintainers             {ryandesign @ryandesign} openmaintainer
license                 PHP-3.01

# Compatible with PHP 8.4 as of 6.1.0
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

if {[vercmp ${php.branch} >= 7.4]} {
    version             6.1.0
    revision            0
    checksums           rmd160  ed4ce8479b88d34a9f3e32e5dbb4fa8600e1ddf4 \
                        sha256  f10405f639fe415e9ed4ec99538e72c90694d8dbd62868edcfcd6a453466b48c \
                        size    373740
} elseif {[vercmp ${php.branch} >= 7.2]} {
    version             6.0.2
    revision            0
    checksums           rmd160  b33b7776af2b201331b7fe96cc1940d439f7d8f0 \
                        sha256  01aeccb0e14f897fe56f0509be6e6991ff0ad459f9d34e95e4556d02699b9a03 \
                        size    365966
} elseif {[vercmp ${php.branch} >= 7.0]} {
    version             5.3.7
    revision            0
    checksums           rmd160  30a49690358d520039a52c01979da20d0633252f \
                        sha256  b958166ccda4f40bd17c6998f9e2239021ae644467cd8ad5c15def420aad65b0 \
                        size    275200
} elseif {[vercmp ${php.branch} >= 5.3]} {
    version             4.3.0
    revision            0
    checksums           rmd160  e1888440b3446200fdc83e79f2aec873bd18b6b2 \
                        sha256  c0f04cec349960a842b60920fb8a433656e2e494eaed6e663397d67102a51ba2 \
                        size    241883
}

description             an API for communicating with a Redis database from PHP

long_description        ${name} is ${description}.

configure.args-append   --enable-redis

use_parallel_build      yes
