# -*- 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.8.0 v
    revision                    0
    checksums                   rmd160  8190c29aea5f38078166ae96b3ef10fbd6b7ed54 \
                                sha256  724489a9f8d444b1ac7ddf55c845000b43c6b675d44da6fc30d0035ef778659d \
                                size    1379897
}

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