blob: 9054dcbb0014440e71b127f543b92ecc68be553b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-apd/pecl-apd-1.0.1.ebuild,v 1.7 2006/09/29 06:23:13 sebastian Exp $
PHP_EXT_NAME="apd"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="yes"
inherit php-ext-pecl-r1
KEYWORDS="~amd64 ~sparc ~x86"
DESCRIPTION="A full-featured engine-level profiler/debugger."
LICENSE="PHP"
SLOT="0"
IUSE=""
DEPEND="${DEPEND} =dev-lang/php-5.0*"
RDEPEND="${RDEPEND} >=dev-php/PEAR-PEAR-1.3.6-r2 !dev-php5/ZendOptimizer"
need_php_by_category
pkg_setup() {
has_php
require_php_cli
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/fix-version-string-1.0.1.patch"
}
src_install() {
sed -i 's:/usr/local/bin/php:/usr/lib/php5/bin/php:g' "${S}/pprofp" || die "Unable to replace PHP path"
sed -i 's:pprofp:pprofp-php5:g' "${S}/pprofp" || die "Unable to replace PHP path"
sed -i 's:/usr/bin/env php:/usr/lib/php5/bin/php:g' "${S}/pprof2calltree" || die "Unable to replace PHP path"
sed -i 's:pprof2calltree:pprof2calltree-php5:g' "${S}/pprof2calltree" || die "Unable to replace PHP path"
php-ext-pecl-r1_src_install
newbin pprofp pprofp-php5
newbin pprof2calltree pprof2calltree-php5
dodoc-php LICENSE README
}
|