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

name                    php5-unit-selenium
set cap_name            PHPUnit_Selenium
version                 1.0.3
categories              php devel
maintainers             nomaintainer
supported_archs         noarch
license                 BSD

homepage                https://github.com/sebastianbergmann/phpunit-selenium
master_sites            http://pear.phpunit.de/get/
distname                ${cap_name}-${version}
extract.suffix          .tgz
platforms               darwin freebsd

checksums               sha1    01b8b83bd7f1e4efa6639bf6369bbdb1b8c6f16a \
                        rmd160  3971a41600ab7493f9908f5df0338220a0f9ab84

description             Selenium RC integration for PHPUnit
long_description \
    ${description}

depends_lib             path:bin/php:php5

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

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