[78886] trunk/dports/php

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


Revision: 78886
          http://trac.macports.org/changeset/78886
Author:   singingwolfboy at macports.org
Date:     2011-05-25 10:40:07 -0700 (Wed, 25 May 2011)
Log Message:
-----------
New port: php5-token-stream

Modified Paths:
--------------
    trunk/dports/php/php5-unit/Portfile

Added Paths:
-----------
    trunk/dports/php/php5-token-stream/
    trunk/dports/php/php5-token-stream/Portfile

Added: trunk/dports/php/php5-token-stream/Portfile
===================================================================
--- trunk/dports/php/php5-token-stream/Portfile	                        (rev 0)
+++ trunk/dports/php/php5-token-stream/Portfile	2011-05-25 17:40:07 UTC (rev 78886)
@@ -0,0 +1,42 @@
+# -*- 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-token-stream
+set real_name           phptok
+set cap_name            PHP_TokenStream
+version                 1.0.1
+categories              php devel
+maintainers             singingwolfboy openmaintainer
+supported_archs         noarch
+license                 BSD
+
+homepage                https://github.com/sebastianbergmann/php-token-stream
+master_sites            http://pear.phpunit.de/get/
+distname                ${cap_name}-${version}
+extract.suffix          .tgz
+platforms               darwin freebsd
+checksums               md5     858f010464237f5f0b2fbe503fad1f90 \
+                        sha1    6754c6e9cd234435ac5660dd101e91af5f6391bc \
+                        rmd160  cde302050501fcedca63cda356799a2c71bed4f5
+description             wrapper around PHP's tokenizer extension
+long_description \
+    ${description}
+
+depends_lib             port: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}/PHP ${destroot}${prefix}/lib/php/PHP
+}
+
+livecheck.type          regex
+livecheck.url           ${homepage}/downloads
+livecheck.regex         {/([0-9.]+)"}


Property changes on: trunk/dports/php/php5-token-stream/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id

Modified: trunk/dports/php/php5-unit/Portfile
===================================================================
--- trunk/dports/php/php5-unit/Portfile	2011-05-25 17:39:44 UTC (rev 78885)
+++ trunk/dports/php/php5-unit/Portfile	2011-05-25 17:40:07 UTC (rev 78886)
@@ -7,10 +7,11 @@
 set real_name           phpunit
 set cap_name            PHPUnit
 version                 3.5.13
-revision                1
+revision                2
 categories              php devel
 maintainers             singingwolfboy openmaintainer
 supported_archs         noarch
+license                 BSD
 
 homepage                http://www.phpunit.de
 master_sites            http://pear.phpunit.de/get/
@@ -27,7 +28,8 @@
     as well as the functionality to easily run the tests and analyse \
     their results.
 
-depends_lib             path:bin/php:php5
+depends_lib             port:php5 port:php5-unit-db port:php5-file-iterator \
+                        port:php5-code-coverage port:php5-timer
 
 use_configure           no
 build                   {}
@@ -35,8 +37,15 @@
     reinplace "s|@php_bin@|${prefix}/bin/php|" ${worksrcpath}/${real_name}.php
     reinplace "s|@php_bin@|${prefix}/bin/php|" ${worksrcpath}/${cap_name}/Util/PHP.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}
-    file copy ${worksrcpath} ${destroot}${prefix}/lib/php/
+
+    xinstall -d ${destroot}${prefix}/lib/php
+    file copy ${worksrcpath}/${cap_name} ${destroot}${prefix}/lib/php/${cap_name}
+
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath} README.markdown ChangeLog.markdown ${docdir}
 }
 
 livecheck.type          regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110525/a2a8c837/attachment.html>


More information about the macports-changes mailing list