blob: 055e3c119139bd7611954ba77669648ae17ba233 (
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
46
47
48
49
50
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/xqf/xqf-1.0.4-r1.ebuild,v 1.5 2008/01/18 21:16:05 tupone Exp $
inherit eutils
DESCRIPTION="A server browser for many FPS games (frontend for qstat)"
HOMEPAGE="http://www.linuxgames.com/xqf/"
SRC_URI="mirror://sourceforge/xqf/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ppc x86"
IUSE="nls geoip bzip2"
RDEPEND="=x11-libs/gtk+-2*
>=games-util/qstat-2.8
nls? ( virtual/libintl )
geoip? ( dev-libs/geoip )
bzip2? ( app-arch/bzip2 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/gtk2.patch
# "splash.png" is pretty generic #55949
sed -i \
-e 's:splash\.png:xqfsplash.png:' \
src/{splash,dialogs}.c pixmaps/Makefile.in \
|| die "sed failed"
mv pixmaps/{,xqf}splash.png || die "mv failed"
}
src_compile() {
econf \
$(use_enable nls) \
$(use_enable geoip) \
$(use_enable bzip2) \
$(use_enable debug) \
--enable-gtk2 \
|| die
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS BUGS ChangeLog NEWS README TODO
}
|