# -*- 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.4.1 v
    revision                    0
    checksums                   rmd160  6703c9ef6fec163a3f87dbec8d9b17d49a8b84a4 \
                                sha256  c703486321191523cd2f4cac502fd0c833a3fdd7e64be9b0d21dfde85c7feb9d \
                                size    168233
}

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