# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-www/mediawiki/mediawiki-20030829 aplank Exp $
DESCRIPTION="The software that runs http://www.wikipedia.org"
SRC_URI=http://prdownloads.sourceforge.net/wikipedia/${PV}
HOMEPAGE="http://wikipedia.sourceforge.net/"
LICENSE="GPL-2 | LGPL-2"
IUSE="php mysql perl python ocaml"
DEPEND="virtual/glibc
>=sys-libs/ncurses
>=dev-lang/perl
>=dev-lang/python
>=media-libs/libpng
>=sys-libs/readline
>=dev-db/mysql )
>=dev-lang/ocaml )
>=dev-libs/libiconv
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${P}/
src_compile() {
cd phase3
echo "$wgDBadminuser = "%";" % $wikiadmin
php install \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}