# -*- 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
# $Id: Portfile 88421 2012-01-02 01:09:15Z ryandesign@macports.org $

PortSystem              1.0

name                    php5-timer
set cap_name            PHP_Timer
version                 1.0.0
categories              php devel
maintainers             singingwolfboy openmaintainer
supported_archs         noarch
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               md5     aee6ce1de0a75bd0b914c7344a97113e \
                        sha1    eb97174590cd111329a25fd0c70d377efe78783c \
                        rmd160  8230246f7ad7162bc72a701964f2662b4e8bdb09
description             utility class for timing in PHP
long_description \
    ${description}

depends_lib             path:bin/php:php5

use_configure           no
build                   {}
destroot {
    xinstall -d ${destroot}${prefix}/lib/php
    file copy ${worksrcpath}/PHP ${destroot}${prefix}/lib/php/PHP
}

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