[60915] trunk/dports/php

ryandesign at macports.org ryandesign at macports.org
Sat Nov 28 01:30:06 PST 2009


Revision: 60915
          http://trac.macports.org/changeset/60915
Author:   ryandesign at macports.org
Date:     2009-11-28 01:30:01 -0800 (Sat, 28 Nov 2009)
Log Message:
-----------
php5-svn: new port, version 0.5.1

Added Paths:
-----------
    trunk/dports/php/php5-svn/
    trunk/dports/php/php5-svn/Portfile
    trunk/dports/php/php5-svn/files/
    trunk/dports/php/php5-svn/files/patch-hook_emailcommit.php

Added: trunk/dports/php/php5-svn/Portfile
===================================================================
--- trunk/dports/php/php5-svn/Portfile	                        (rev 0)
+++ trunk/dports/php/php5-svn/Portfile	2009-11-28 09:30:01 UTC (rev 60915)
@@ -0,0 +1,35 @@
+# $Id$
+
+PortSystem              1.0
+PortGroup               php5extension 1.0
+
+php5extension.setup     svn 0.5.1 pecl
+categories-append       devel
+platforms               darwin
+maintainers             ryandesign
+
+description             PHP bindings for Subversion
+
+long_description        ${description}
+
+checksums               md5     0b9a6d1c3fdac07b10430cd5c1d2a17d \
+                        sha1    ae51b4114896a0a8b167c2e2efbbd01f19056147 \
+                        rmd160  7af8d4b2916fcb1ec39d30328dd8c121d02e79ec
+
+depends_lib-append      port:subversion
+
+patchfiles              patch-hook_emailcommit.php
+
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/examples/hook_emailcommit.php
+}
+
+configure.args-append   --with-svn=${prefix} \
+                        --with-svn-apr=${prefix}/bin/apr-1-config
+
+post-destroot {
+    xinstall -d ${destroot}${prefix}/share/examples
+    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
+}
+
+livecheck.regex         {>(\d+(?:\.\d+)*(?:p\d+)?)</a></th>}


Property changes on: trunk/dports/php/php5-svn/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/php/php5-svn/files/patch-hook_emailcommit.php
===================================================================
--- trunk/dports/php/php5-svn/files/patch-hook_emailcommit.php	                        (rev 0)
+++ trunk/dports/php/php5-svn/files/patch-hook_emailcommit.php	2009-11-28 09:30:01 UTC (rev 60915)
@@ -0,0 +1,21 @@
+--- examples/hook_emailcommit.php.orig	2009-09-23 22:08:17.000000000 -0500
++++ examples/hook_emailcommit.php	2009-11-28 03:27:18.000000000 -0600
+@@ -36,8 +36,7 @@
+         $this->rev  = (int) $this->rev;
+         $last = $this->rev -1 ;
+         // techncially where the diff is!?
+-        require_once 'System.php';
+-        $svn = System::which('svn','/usr/bin/svn');
++        $svn = '@PREFIX@/bin/svn';
+         
+         $cmd = "$svn diff -r{$last}:{$this->rev} $this->repos";
+         $this->log = svn_log($this->repos, $this->rev,  $this->rev-1, 0, SVN_DISCOVER_CHANGED_PATHS);
+@@ -124,7 +123,7 @@
+             $this->writeFile($tmp , 
+                     svn_cat($this->repos . $action['path'],$this->rev));
+             
+-            $data = $data = `/usr/bin/php -l $tmp`;
++            $data = $data = `@PREFIX@/bin/php -l $tmp`;
+             unlink($tmp);
+             if (preg_match('/^No syntax errors/',$data)) {
+                 continue;


Property changes on: trunk/dports/php/php5-svn/files/patch-hook_emailcommit.php
___________________________________________________________________
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091128/e3c7e329/attachment.html>


More information about the macports-changes mailing list