[78888] trunk/dports/php

singingwolfboy at macports.org singingwolfboy at macports.org
Wed May 25 10:41:07 PDT 2011


Revision: 78888
          http://trac.macports.org/changeset/78888
Author:   singingwolfboy at macports.org
Date:     2011-05-25 10:41:07 -0700 (Wed, 25 May 2011)
Log Message:
-----------
New port: php5-unit-db

Added Paths:
-----------
    trunk/dports/php/php5-unit-db/
    trunk/dports/php/php5-unit-db/Portfile

Added: trunk/dports/php/php5-unit-db/Portfile
===================================================================
--- trunk/dports/php/php5-unit-db/Portfile	                        (rev 0)
+++ trunk/dports/php/php5-unit-db/Portfile	2011-05-25 17:41:07 UTC (rev 78888)
@@ -0,0 +1,46 @@
+# -*- 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             singingwolfboy openmaintainer
+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.]+)"}


Property changes on: trunk/dports/php/php5-unit-db/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110525/04fbb167/attachment-0001.html>


More information about the macports-changes mailing list