# -*- 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-unit-mock-objects
set cap_name            PHPUnit_MockObject
version                 1.0.9
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               sha1    0befe842804dd7d0e869e493100c677afe2982ce \
                        rmd160  376c7301829308d413b78619c64311561caab976

description             Mock Object library for PHPUnit
long_description \
    ${description}

depends_lib             path:bin/php: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.]+)"}
