--- mediawiki-1.5.0_rc4.ebuild.orig 2005-08-31 00:40:16.000000000 +0200 +++ mediawiki-1.5.0_rc4.ebuild.orig 2005-09-10 01:48:56.000000000 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.5.0_rc4.ebuild,v 1.1 2005/08/30 22:40:16 trapni Exp $ -inherit webapp +inherit webapp eutils DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)" HOMEPAGE="http://www.mediawiki.org" @@ -23,6 +23,24 @@ media-gfx/imagemagick ) imagemagick? ( media-gfx/imagemagick )" +pkg_setup() { + webapp_pkg_setup + + if ! built_with_use -o virtual/php gd gd-external ; then + if ! built_with_use virtual/php pcre mysql zlib ; then + eerror "${P} needs php built with USE=pcre mysql zlib" + eerror "and gd or gd-external." + die "Re-emerge php with the above use flags and rerun emerge ${P}" + else + eerror "${P} needs php built with USE=gd or USE=gd-external" + die "Re-emerge php with one of the above use flags and rerun emerge ${P}" + fi + elif ! built_with_use virtual/php pcre mysql zlib ; then + eerror "${P} needs php built with USE=pcre mysql zlib" + die "Re-emerge php with the above use flags and rerun emerge ${P}" + fi +} + src_compile() { if use math; then einfo "Compiling math support" @@ -50,13 +68,9 @@ languages maintenance maintenance/archives - maintenance/dtrace - maintenance/oracle - maintenance/oracle/archives maintenance/postgresql maintenance/storage skins - skins/amethyst skins/chick skins/common skins/common/images