# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Text_Wiki/PEAR-Text_Wiki-0.8.2.ebuild,v 1.10 2005/03/09 18:03:18 corsair Exp $ DESCRIPTION="phpBeans PHP Server" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" HOMEPAGE="http://www.phpbeans.com" SRC_URI="${HOMEPAGE}/releases/server/phpbeans-server-${PV}.tar.gz" LICENSE="as-is" IUSE="" DEPEND="virtual/php >=dev-php/PEAR-Net_Server-0.12.0" phpext( ) { wert=`/usr/bin/php -i | grep -ci ^$1\$` if [ $wert -eq 0 ];then return 1 else return 0 fi } src_install() { dodir /usr/lib/php/phpbeans-server rm -r ${S}/src/ rm -r ${S}/php/ cp -r ${S} ${D}/usr/lib/php/phpbeans-server/${PF} dodir /usr/share/doc/${PF} cp -ra docs ${D}/usr/share/doc/${PF} } pkg_preinst() { if phpext sqlite && phpext pcntl && phpext sockets && phpext tokenizer; then einfo "This package needs PHP with sqlite, pcntl, sockets and tokenizer" else die "This package needs PHP with sqlite, pcntl, sockets and tokenizer" fi #einfo "This package needs PHP with sqlite, pcntl, sockets and tokenizer" }