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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20