summaryrefslogtreecommitdiff
blob: 6ba51b4eeb390e02c362349992696837974af80e (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/xdebug/xdebug-2.0.0_beta2.ebuild,v 1.3 2005/03/15 11:46:38 sebastian Exp $

PHP_EXT_ZENDEXT="yes"
PHP_EXT_PECL_PKG="xdebug"
PHP_EXT_NAME="xdebug"
PHP_EXT_INI="yes"
PHP_EXT_PECL_FILENAME=""

inherit php-ext-pecl

IUSE="libedit"
DESCRIPTION="A PHP Debugging and Profiling extension."
HOMEPAGE="http://xdebug.org/"
MY_P="${P/_/}"
SRC_URI="http://xdebug.org/files/${MY_P}.tgz"
S="${WORKDIR}/${MY_P}"
SLOT="0"
LICENSE="Xdebug"
KEYWORDS="~x86"
DEPEND="${DEPEND}
	libedit? ( dev-libs/libedit )"

src_compile() {
	php-ext-pecl_src_compile

	cd ${S}/debugclient
	econf $(use_with libedit) || die
	emake || die
}

src_install() {
	php-ext-pecl_src_install

	cd ${S}/debugclient
	mv debugclient xdebug-client
	dobin xdebug-client
}