# -*- 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
homepage https://github.com/sebastianbergmann/dbunit/
master_sites http://pear.phpunit.de/get/
distname ${cap_name}-${version}
checksums md5 cc150251100b74879ba22a211079e8f4 \
sha1 9f3052e7b825a7dc7a54b9832e90345350b8b491 \
rmd160 00a5a5fbe4e2d4ef87eaca9338dd6a829ca2a516
description DbUnit for PHP
Port of DbUnit for integration with PHPUnit
depends_lib path:bin/php:php5
reinplace "s|@php_bin@|${prefix}/bin/php|" ${worksrcpath}/${real_name}.php
reinplace "s|#!/usr/bin/env php|#!${prefix}/bin/php|" ${worksrcpath}/${real_name}.php
xinstall -m 755 ${worksrcpath}/${real_name}.php ${destroot}${prefix}/bin/${real_name}
xinstall -d ${destroot}${prefix}/lib/php
file copy ${worksrcpath}/PHPUnit ${destroot}${prefix}/lib/php/PHPUnit
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} ChangeLog.markdown ${docdir}
livecheck.url ${homepage}/downloads
livecheck.regex {/([0-9.]+)"}