# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils php-pear-manylibs-r1 MY_PVR=${PV/_rc3/_kolab2gentoo}${PR/r/} DESCRIPTION="Horde Application Framework" HOMEPAGE="http://www.horde.org/" SRC_URI="http://files.pardus.de/${PN}-${MY_PVR}.tar.bz2" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" S=${WORKDIR}/framework HORDE_PHP_FEATURES="kolab imap ldap nls session xml" PEAR_PACKAGES=" Alarm Auth Block Browser Cache Cipher CLI Compress Crypt Data DataTree Date DOM Editor Feed File_CSV File_PDF Form Group History Horde Http_Client iCalendar Image IMAP Kolab LDAP Maintenance Memcache MIME Mobile Net_IMSP Net_SMS NLS Notification Perms Prefs Rdo RPC Scheduler Secret Serialize SessionHandler SessionObjects Share SpellChecker SQL SyncML Template Text_Diff Text_Filter Text_Flowed Text_Rst Token Tree UI Util VC VFS VFS_ISOWriter View Xml_Element XML_WBXML Yaml " RDEPEND="${RDEPEND} !dev-php/horde !dev-php/horde-framework-cvs dev-php/PEAR-Horde-Channel " pkg_setup() { if [[ ! -z ${HORDE_PHP_FEATURES} ]] ; then local param if [[ ${HORDE_PHP_FEATURES:0:2} = "-o" ]] ; then param="-o" HORDE_PHP_FEATURES=${HORDE_PHP_FEATURES:2} fi if ! built_with_use ${param} dev-lang/php ${HORDE_PHP_FEATURES} ; then if [[ ${parm} == "-o" ]] ; then eerror "You MUST re-emerge php with at least one of" else eerror "You MUST re-emerge php with all of" fi eerror "the following options in your USE:" eerror " ${HORDE_PHP_FEATURES}" die "current php install cannot support ${HORDE_PN}" fi fi } src_unpack() { unpack ${A} && cd "${S}" for PATCH in "${FILESDIR}"/*-${MY_PVR}.patch do epatch "${PATCH}" done }