# -*- 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
PortGroup               github 1.0

github.setup            sebastianbergmann php-timer 8.0.0 v
distname                ${version}
master_sites            https://github.com/sebastianbergmann/php-timer/archive/refs/tags/
revision                0
categories-append       devel
maintainers             nomaintainer
license                 BSD

homepage                https://github.com/sebastianbergmann/php-timer
platforms               darwin freebsd
checksums               rmd160  92e5e7992011273766fc99f740783661e884669c \
                        sha256  009c22770fb076856eda12afec88876773aae9e52da5c0a417e54ebc6920d97e \
                        size    6019
description             utility class for timing in PHP
long_description \
    ${description}

worksrcdir              ${name}-${version}
php.branches            8.3 8.4
php.build_dirs

if {$name ne $subport} {
    destroot {
        xinstall -d ${destroot}${prefix}/lib/php
        file copy ${worksrcpath}/src ${destroot}${prefix}/lib/php/php-timer
    }
}

livecheck.regex     {/([0-9.]+)"}

