# -*- 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 78891 2011-05-25 19:13:43Z singingwolfboy@macports.org $

PortSystem              1.0

name                    php5-unit-selenium
set cap_name            PHPUnit_Selenium
version                 1.0.2
categories              php devel
maintainers             singingwolfboy openmaintainer
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               md5     1df5e1af44e5f54ae57c8a177ab5dadf \
                        sha1    8e6261f432d3c52e794735ff99c2beb580221ff7 \
                        rmd160  60cc88e9603837b511e6a4c19f155deffbe2fad1

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

depends_lib             port: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.]+)"}
