summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2002-07-09 19:25:01 +0000
committerRyan Phillips <rphillips@gentoo.org>2002-07-09 19:25:01 +0000
commit333c5be10aa1c9309b193cdcb3819286cf51ee51 (patch)
treea29ea1e2bc9fada1a04fc329b1f0368c0f3ca1fb /dev-php/phpdbg/phpdbg-2.10-r1.ebuild
parentMisc Fixes. Submitted by Roman. Fixes #4725 (diff)
downloadgentoo-2-333c5be10aa1c9309b193cdcb3819286cf51ee51.tar.gz
gentoo-2-333c5be10aa1c9309b193cdcb3819286cf51ee51.tar.bz2
gentoo-2-333c5be10aa1c9309b193cdcb3819286cf51ee51.zip
Updated ebuild. Submitted by Roman. Fixes #4727
Diffstat (limited to 'dev-php/phpdbg/phpdbg-2.10-r1.ebuild')
-rw-r--r--dev-php/phpdbg/phpdbg-2.10-r1.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-php/phpdbg/phpdbg-2.10-r1.ebuild b/dev-php/phpdbg/phpdbg-2.10-r1.ebuild
new file mode 100644
index 000000000000..3ae5a0c64a56
--- /dev/null
+++ b/dev-php/phpdbg/phpdbg-2.10-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Roman Weber <gentoo@gonzo.ch>
+# $Header: /var/cvsroot/gentoo-x86/dev-php/phpdbg/phpdbg-2.10-r1.ebuild,v 1.1 2002/07/09 19:25:01 rphillips Exp $
+
+PL="pl3"
+S="${WORKDIR}/dbg-${PV}${PL}"
+DESCRIPTION="A PHP debugger useable with some editors like phpedit."
+SRC_URI="http://dd.cron.ru/dbg/dnld/dbg-${PV}${PL}.tar.gz"
+HOMEPAGE="http://dd.cron.ru/dbg/"
+LICENSE="dbgphp"
+
+DEPEND=">=dev-php/mod_php-4.2.1"
+
+src_unpack() {
+ unpack "dbg-${PV}pl3.tar.gz"
+ cd "${S}"
+}
+
+src_compile() {
+ phpize
+ ./configure --enable-dbg=shared --with-dbg-profiler
+ emake
+}
+
+src_install () {
+ insinto /etc/php4/lib
+ doins modules/dbg.so
+ dodoc AUTHORS COPYING INSTALL
+}
+
+pkg_postinst() {
+ echo "Performing post-installation routines for ${P}."
+
+ if [ `cat /etc/php4/php.ini | grep extension=/etc/php4/lib/dbg.so` ]; then
+ einfo No changes made in php.ini
+ else
+ echo extension=/etc/php4/lib/dbg.so >> /etc/php4/php.ini
+ fi
+
+ einfo Please reload Apache to activate the changes
+
+}
+
+pkg_prerm() {
+ echo "Performing pre-removal routines for ${P}."
+ mv /etc/php4/php.ini /etc/php4/php.ini.old
+ cat /etc/php4/php.ini.old | sed "s/extension=\/etc\/php4\/lib\/dbg.so//g" > /etc/php4/php.ini
+ rm /etc/php4/php.ini.old
+}
+
+pkg_postrm() {
+ einfo Please reload Apache to activate the changes
+
+}
+