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

name                php-timezonedb
categories          php devel
maintainers         {ryandesign @ryandesign} openmaintainer
license             PHP-3.01

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         A PECL Timezone Database.

long_description    Timezone Database to be used with PHP's date and time \
                    functions.

# Version 2021.5 and later require PHP 5.4 or later though that was not
# indicated until version 2022.6.
# https://bugs.php.net/bug.php?id=80923
# https://github.com/php/pecl-datetime-timezonedb/commit/fb6fbdc87bd579085481f2d61c65a672ae10fe8e
if {[vercmp ${php.branch} >= 5.4]} {
    version         2025.1
    revision        0
    checksums       rmd160  80c9151133af56f183c024f17870c5d537c7b037 \
                    sha256  0ca91cabdd952a54ff9413337c374d4b157277f25d492c14a403ed526153e3bb \
                    size    646718
} elseif {[vercmp ${php.branch} >= 5.2]} {
    version         2021.1
    revision        0
    checksums       rmd160  a9f33ee172b1a7384767901f464f8d0b48689e67 \
                    sha256  9fd473fc76e01a2ffcd087283d20e4ec14067b29a8336ac4acf9c564abbeaa55 \
                    size    415891
}

configure.args-append --enable-timezonedb

use_parallel_build  yes
