blob: 17a79f937a75118ddf2fd6e597a1b1b61c130486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/gwp/gwp-0.4.0.ebuild,v 1.1 2006/06/06 21:22:09 wolf31o2 Exp $
inherit eutils 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="python opengl"
DEPEND="
=x11-libs/gtk+-2*
=gnome-base/libgnomeui-2*
=gnome-base/libglade-2*
app-text/scrollkeeper
dev-libs/libpcre
opengl? ( =dev-python/pygtk-2*
=x11-libs/gtkglext-1* )"
src_unpack() {
unpack ${A}
cd ${S}
epatch "${FILESDIR}/${P}-gcc41.patch"
}
src_compile() {
egamesconf \
$(use_enable opengl gtkglext) \
$(use_enable python) \
|| 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
}
|