# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit games DESCRIPTION="GNOME client for the classic PBEM strategy game VGA Planets 3" HOMEPAGE="http://gwp.lunix.com.ar" SRC_URI="http://gwp.lunix.com.ar/releases/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="X gtk2 python opengl" DEPEND=" =x11-libs/gtk+-2* =gnome-base/libgnomeui-2* =gnome-base/libglade-2* app-text/scrollkeeper dev-libs/libpcre python? ( python ) opengl? ( =dev-python/pygtk-2* =x11-libs/gtkglext-1* )" src_compile() { egamesconf \ $(use_enable opengl gtkglext) \ $(use_enable python) \ --localstatedir=/var/games/gwp \ || die "Error: econf failed!" emake || die "Error: emake failed!" } src_install () { make DESTDIR=${D} localstatedir=${D}/var/games/gwp install || die "Error: install failed" dodoc AUTHORS COPYING ChangeLog README TODO doicon ${PN}.png make_desktop_entry gwp "Gnome WarPad" prepgamesdirs }