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

name                    php-timer
set cap_name            PHP_Timer
version                 1.0.4
categories-append       devel
maintainers             nomaintainer
license                 BSD

homepage                https://github.com/sebastianbergmann/php-timer
master_sites            http://pear.phpunit.de/get/
distname                ${cap_name}-${version}
extract.suffix          .tgz
platforms               darwin freebsd
checksums               rmd160  11ce7b395234b2f1e0c9f7107067f2b2d3354c9d \
                        sha256  f51965eea8ec722843f0a10cd4b9c35aaecf0a816ac80929dbab87c8a6d8692b
description             utility class for timing in PHP
long_description \
    ${description}

php.branches            5.3 5.4 5.5

php.build_dirs

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}/tags
    livecheck.regex     {/([0-9.]+)"}
}