# -*- 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 78909 2011-05-26 14:46:41Z singingwolfboy@macports.org $

PortSystem              1.0

name                    php5-unit-mock-objects
set cap_name            PHPUnit_MockObject
version                 1.0.8
categories              php devel
maintainers             singingwolfboy openmaintainer
supported_archs         noarch
license                 BSD

homepage                https://github.com/sebastianbergmann/phpunit-mock-objects
master_sites            http://pear.phpunit.de/get/
distname                ${cap_name}-${version}
extract.suffix          .tgz
platforms               darwin freebsd
checksums               md5     e597029c1b9f1de0a240b7c46c6e0f6c \
                        sha1    c394b15982f456a9d670b21cc97b5184e4c25403 \
                        rmd160  ab747c566fd2b26dd49165a7b0aea1c2346de56e
description             Mock Object library for PHPUnit
long_description \
    ${description}

depends_lib             port:php5 port:php5-text-template

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