# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem                      1.0
PortGroup                       github 1.0
PortGroup                       php 1.1

name                            php-Judy
categories-append               devel
maintainers                     {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
license                         PHP-3.01

php.branches                    8.0 8.1 8.2 8.3 8.4 8.5 8.6

description                     sparse dynamic arrays
long_description \
    PHP Judy implements sparse dynamic arrays (a.k.a Judy arrays). A Judy array \
    consumes memory only when it is populated, yet can grow to take advantage of \
    all available memory if desired. Judy’s key benefits are scalability, high \
    performance, and memory efficiency.

github.tarball_from             archive

if {[vercmp ${php.branch} >= 8.0]} {
    github.setup                orieg php-judy 2.7.1 v
    revision                    0
    checksums                   rmd160  bf0ff42e28b1662f12c2ab692381b3408a1835e6 \
                                sha256  3428c8e4f0b23c11d9d7e6959f3a8ec9cfbebb322bffa9d517ad78b51017b5ce \
                                size    1313577
}

if {${subport} ne ${name}} {
    depends_lib-append          port:judy
    configure.args-append       --with-judy=${prefix}
}
