blob: 1ecbff1ca8f20b10ef8482370d224824c7bfd7e5 (
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
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/fuhquake-bin/fuhquake-bin-0.31.ebuild,v 1.5 2006/09/19 19:22:39 wolf31o2 Exp $
inherit games
DESCRIPTION="quakeworld client with a plethora of gameplay/console/graphical improvements"
HOMEPAGE="http://www.fuhquake.net/"
SRC_URI="http://www.fuhquake.net/files/releases/v${PV}/fuhquake-linux-v${PV}.zip
http://www.fuhquake.net/files/releases/v${PV}/fuhquake-security-v${PV}.zip
http://maps.quakeworld.nu/locs/download/fuhquake_locs.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
RESTRICT="strip"
IUSE="opengl svga"
RDEPEND="!svga? (
x11-libs/libXext )
svga? ( media-libs/svgalib )
opengl? (
virtual/opengl
x11-libs/libXext )"
DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}
src_unpack() {
unpack fuhquake-linux-v${PV}.zip fuhquake-security-v${PV}.zip
rm -f gnu.txt fuhquake-security.dll
mkdir qw/locs && cd qw/locs
unpack fuhquake_locs.zip
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/${PN} BINS
dodir "${dir}"
exeinto "${dir}"
if use opengl; then
BINS="fuhquake-gl.glx fuhquake.x11"
elif ! use svga; then
# X will be built if neither opengl nor svga
BINS="fuhquake.x11"
fi
if use svga; then
BINS="${BINS} fuhquake.svga"
fi
doexe ${BINS} fuhquake-security.so || die "doexe"
cp -r fuhquake qw "${D}/${dir}"/ || die "cp data"
dosym "${GAMES_DATADIR}"/quake1/id1 "${dir}"/id1
for x in ${BINS}; do
games_make_wrapper ${x} ./${x} "${dir}"
done
prepgamesdirs
}
|