source: trunk/dports/php/php-xhprof/Portfile

Last change on this file was 124944, checked in by ryandesign@…, 3 years ago

add php56 subports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 124944 2014-09-01 01:05:32Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               php 1.1
6
7name                    php-xhprof
8version                 0.9.4
9categories-append       devel
10platforms               darwin
11maintainers             ryandesign openmaintainer
12license                 Apache-2
13
14php.branches            5.3 5.4 5.5 5.6
15php.pecl                yes
16php.pecl.prerelease     yes
17
18description             A Hierarchical Profiler for PHP
19
20long_description        XHProf is a function-level hierarchical profiler for \
21                        PHP and has a simple HTML based navigational interface.
22
23checksums               rmd160  e484c4902f287ef18d9f75dda75a28d73bb8272d \
24                        sha256  002a2d4a825d16aeb3017c59f94d8c5e5d06611dd6197acd2f07fce197d3b8f8
25
26if {${name} ne ${subport}} {
27    patchfiles          patch-callgraph_utils.php.diff
28   
29    post-patch {
30        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/xhprof_lib/utils/callgraph_utils.php
31    }
32   
33    php.build_dirs      ${worksrcpath}/extension
34   
35    use_parallel_build  yes
36   
37    post-destroot {
38        # Install php files not installed by the Makefile
39        xinstall -d ${destroot}${prefix}/www/${subport}
40        copy ${worksrcpath}/examples ${destroot}${prefix}/www/${subport}/examples
41        copy ${worksrcpath}/xhprof_lib ${destroot}${prefix}/www/${subport}/xhprof_lib
42        copy ${worksrcpath}/xhprof_html ${destroot}${prefix}/www/${subport}/xhprof_html
43    }
44   
45    variant graphviz description {Build with graphviz, support for callgraphs} {
46        depends_run-append      path:bin/dot:graphviz
47    }
48}
Note: See TracBrowser for help on using the repository browser.