# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-php/php/php-5.0_beta1-r1.ebuild,v 1.7 2004/06/25 01:23:03 agriffis Exp $ PHPSAPI="cli" MY_P="php-5.0.0b1" inherit php eutils #need to override SRC_URI, the beta isn't available from the usual url which is defined in the eclass SRC_URI="http://us3.php.net/distributions/php-5.0.0b1.tar.bz2" IUSE="${IUSE} readline" DESCRIPTION="PHP Shell Interpreter" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa mips" DEPEND="${DEPEND} readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 ) truetype? ( >=media-libs/t1lib-5.0.0 )" RDEPEND="${RDEPEND}" EXCLUDE_DB4_FIX=1 EXCLUDE_PEAR_FIX=1 src_compile() { use readline && myconf="${myconf} --with-readline" myconf="${myconf} \ --disable-cgi \ --enable-cli \ --enable-embed" php_src_compile } src_install() { installtargets="${installtargets} install-cli" php_src_install #embed hack.. exeinto /usr/lib/ doexe .libs/libphp5.so # php executable is located in ./sapi/cli/ exeinto /usr/bin doexe sapi/cli/php } pkg_postinst() { php_pkg_postinst einfo "This is a CLI only build." einfo "You can not use it on a webserver." } pkg_preinst() { php_pkg_preinst }