forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gwp-0.4.0-r3.ebuild
60 lines (51 loc) · 1.28 KB
/
gwp-0.4.0-r3.ebuild
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
GCONF_DEBUG="yes"
PYTHON_COMPAT=( python2_7 )
inherit eutils flag-o-matic gnome2 python-single-r1
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="amd64 x86"
IUSE="nls opengl python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="x11-libs/gtk+:2
gnome-base/libgnomeui
gnome-base/libglade
app-text/rarian
dev-libs/libpcre
nls? ( virtual/libintl )
opengl? ( x11-libs/gtkglext )
python? ( ${PYTHON_DEPS}
dev-python/pygtk[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
append-libs -lm
epatch \
"${FILESDIR}"/${P}-gcc41.patch \
"${FILESDIR}"/${P}-exec-stack.patch
sed -i \
-e '/ -O1/d' \
-e '/ -g$/d' \
src/Makefile.in || die
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure \
$(use_enable nls) \
$(use_enable opengl gtkglext) \
$(use_enable python)
}
src_install() {
DOCS="AUTHORS ChangeLog CHANGES README TODO" \
gnome2_src_install
rm -rf "${D}"/usr/share/doc/gwp
}