/[gentoo-x86]/games-fps/fuhquake-bin/fuhquake-bin-0.31.ebuild
Gentoo

Contents of /games-fps/fuhquake-bin/fuhquake-bin-0.31.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Feb 13 22:16:11 2006 UTC (14 years ago) by tupone
Branch: MAIN
Changes since 1.3: +31 -9 lines
modular X dep fix and Bug 106706
(Portage version: 2.1_pre4-r1)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/fuhquake-bin/fuhquake-bin-0.31.ebuild,v 1.3 2005/11/05 22:47:28 vapier Exp $
4
5 inherit games
6
7 DESCRIPTION="quakeworld client with a plethora of gameplay/console/graphical improvements"
8 HOMEPAGE="http://www.fuhquake.net/"
9 SRC_URI="http://www.fuhquake.net/files/releases/v${PV}/fuhquake-linux-v${PV}.zip
10 http://www.fuhquake.net/files/releases/v${PV}/fuhquake-security-v${PV}.zip
11 http://maps.quakeworld.nu/locs/download/fuhquake_locs.zip"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="x86"
16 IUSE="opengl svga"
17
18 RDEPEND="!svga? (
19 || (
20 x11-libs/libXext
21 virtual/x11
22 )
23 )
24 svga? ( media-libs/svgalib )
25 opengl? (
26 virtual/opengl
27 || (
28 x11-libs/libXext
29 virtual/x11
30 )
31 )"
32 DEPEND="${RDEPEND}
33 app-arch/unzip"
34
35 S=${WORKDIR}
36
37 src_unpack() {
38 unpack fuhquake-linux-v${PV}.zip fuhquake-security-v${PV}.zip
39 rm -f gnu.txt fuhquake-security.dll
40 mkdir qw/locs && cd qw/locs
41 unpack fuhquake_locs.zip
42 }
43
44 src_install() {
45 local dir=${GAMES_PREFIX_OPT}/${PN} BINS
46 dodir "${dir}"
47
48 exeinto "${dir}"
49 if use opengl; then
50 BINS="fuhquake-gl.glx fuhquake.x11"
51 elif ! use svga; then
52 # X will be built if neither opengl nor svga
53 BINS="fuhquake.x11"
54 fi
55 if use svga; then
56 BINS="${BINS} fuhquake.svga"
57 fi
58
59 doexe ${BINS} fuhquake-security.so || die "doexe"
60 cp -r fuhquake qw "${D}/${dir}"/ || die "cp data"
61 dosym "${GAMES_DATADIR}"/quake1/id1 "${dir}"/id1
62
63 for x in ${BINS}; do
64 games_make_wrapper ${x} ./${x} "${dir}"
65 done
66
67 prepgamesdirs
68 }

  ViewVC Help
Powered by ViewVC 1.1.20