# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Roman Weber # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.4 2002/03/12 16:05:09 tod Exp P=dbg-2.10pl2.tar.gz S=${WORKDIR}/dbg-2.10pl2 DESCRIPTION="Debugger for PHP" SRC_URI="http://dd.cron.ru/dbg/dnld/${P}" HOMEPAGE="http://dd.cron.ru/dbg/" DEPEND=">=net-www/apache-1.3.24-r1 >=php-4.2.0" src_compile() { cd ${S} phpize ./configure \ --enable-dbg=shared \ --with-dbg-profiler || die "./configure failed" emake || die #make || die } src_install () { exeinto /usr/lib/php/20010901 doexe modules/dbg.so } pkg_postinst() { einfo einfo "Execute ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" einfo "to have your php.ini auto-updated for use with this module." einfo "You should then restart your apache." einfo } pkg_config() { cd /etc/apache/conf/addon-modules cp php.ini php.ini.orig cat php.ini.orig | \ sed -e "s/extension_dir = .\//extension_dir = \/usr\/lib\/php\/20010901/g" \ > php.ini echo "extension=dbg.so" >> php.ini echo "[debugger]" >> php.ini echo "debugger.enabled = true" >> php.ini echo "debugger.profiler_enabled = true" >> php.ini echo "debugger.JIT_host = clienthost" >> php.ini echo "debugger.JIT_port = 7869" >> php.ini }