# -*- 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$ PortSystem 1.0 name php5-unit-db set real_name dbunit set cap_name DbUnit version 1.0.1 categories php devel maintainers nomaintainer supported_archs noarch license BSD homepage https://github.com/sebastianbergmann/dbunit/ master_sites http://pear.phpunit.de/get/ distname ${cap_name}-${version} extract.suffix .tgz platforms darwin freebsd checksums md5 cc150251100b74879ba22a211079e8f4 \ sha1 9f3052e7b825a7dc7a54b9832e90345350b8b491 \ rmd160 00a5a5fbe4e2d4ef87eaca9338dd6a829ca2a516 description DbUnit for PHP long_description \ Port of DbUnit for integration with PHPUnit depends_lib path:bin/php:php5 use_configure no build {} destroot { 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 -d ${docdir} xinstall -m 644 -W ${worksrcpath} ChangeLog.markdown ${docdir} } livecheck.type regex livecheck.url ${homepage}/downloads livecheck.regex {/([0-9.]+)"}