# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Update: Roman Weber # $Header: /home/cvsroot/gentoo-x86/dev-php/php/php-4.3.2.ebuild,v 1.2 2003/06/05 17:41:45 aliz Exp $ inherit php eutils IUSE="${IUSE} readline" DESCRIPTION="PHP Shell Interpreter" SLOT="0" KEYWORDS="x86 ppc sparc ~alpha ~arm ~hppa ~mips" DEPEND="${DEPEND} readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 ) " RDEPEND="${RDEPEND}" EXCLUDE_DB4_FIX=1 EXCLUDE_PEAR_FIX=1 EXT_DIR="/usr/lib/php/extensions/no-debug-non-zts-20020429" INIFILE_DIR="/etc/php4/" src_compile() { use readline && myconf="${myconf} --with-readline" myconf="${myconf} \ --disable-cgi \ --enable-cli \ --enable-pcntl" php_src_compile } src_install() { installtargets="${installtargets} install-cli" php_src_install # php executable is located in ./sapi/cli/ cp sapi/cli/php . exeinto /usr/bin doexe php # stuart@gentoo.org - 2003/06/27 # Java config support is now handled entirely by the eclass } pkg_postinst() { # This is more correct information. einfo einfo "This is a CLI only build." einfo "You can not use it on a webserver." einfo if [ "`use java`" ]; then einfo "This PHP module includes the Java integration." einfo einfo "You can test whether this works or not by running the" einfo "'java-test.php' script under ${EXT_DIR}" fi }