[65275] trunk/dports/php/php5-xhprof
ryandesign at macports.org
ryandesign at macports.org
Wed Mar 24 16:52:28 PDT 2010
Revision: 65275
http://trac.macports.org/changeset/65275
Author: ryandesign at macports.org
Date: 2010-03-24 16:52:27 -0700 (Wed, 24 Mar 2010)
Log Message:
-----------
php5-xhprof: install examples, xhprof_lib, and xhprof_html; and add graphviz variant; see #24203
Modified Paths:
--------------
trunk/dports/php/php5-xhprof/Portfile
Added Paths:
-----------
trunk/dports/php/php5-xhprof/files/
trunk/dports/php/php5-xhprof/files/patch-callgraph_utils.php.diff
Modified: trunk/dports/php/php5-xhprof/Portfile
===================================================================
--- trunk/dports/php/php5-xhprof/Portfile 2010-03-24 23:35:37 UTC (rev 65274)
+++ trunk/dports/php/php5-xhprof/Portfile 2010-03-24 23:52:27 UTC (rev 65275)
@@ -5,7 +5,7 @@
PortGroup php5extension 1.0
php5extension.setup xhprof 0.9.2 pecl
-revision 2
+revision 3
categories-append devel
platforms darwin
maintainers nomaintainer
@@ -23,4 +23,20 @@
use_parallel_build yes
+post-destroot {
+ # Install php files not installed by the Makefile
+ xinstall -d ${destroot}${prefix}/www/${name}
+ copy ${worksrcpath}/../examples ${destroot}${prefix}/www/${name}/examples
+ copy ${worksrcpath}/../xhprof_lib ${destroot}${prefix}/www/${name}/xhprof_lib
+ copy ${worksrcpath}/../xhprof_html ${destroot}${prefix}/www/${name}/xhprof_html
+}
+
+variant graphviz description {Build with graphviz, support for callgraphs} {
+ depends_run-append path:bin/dot:graphviz
+ patchfiles-append patch-callgraph_utils.php.diff
+ post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/../xhprof_lib/utils/callgraph_utils.php
+ }
+}
+
livecheck.regex {>(\d+(?:\.\d+)*(?:p\d+)?)</a></th>}
Added: trunk/dports/php/php5-xhprof/files/patch-callgraph_utils.php.diff
===================================================================
--- trunk/dports/php/php5-xhprof/files/patch-callgraph_utils.php.diff (rev 0)
+++ trunk/dports/php/php5-xhprof/files/patch-callgraph_utils.php.diff 2010-03-24 23:52:27 UTC (rev 65275)
@@ -0,0 +1,11 @@
+--- ../xhprof_lib/utils/callgraph_utils.php.orig 2009-06-01 19:52:32.000000000 +0200
++++ ../xhprof_lib/utils/callgraph_utils.php 2010-03-24 23:37:02.000000000 +0100
+@@ -103,7 +103,7 @@
+ 2 => array("file", "/dev/null", "a")
+ );
+
+- $cmd = " dot -T".$type;
++ $cmd = " @PREFIX@/bin/dot -T".$type;
+
+ $process = proc_open($cmd, $descriptorspec, $pipes, "/tmp", array());
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100324/8a66c1d2/attachment.html>
More information about the macports-changes
mailing list