# Copyright 1999-2004 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.1 2004/12/28 05:25:34 vapier 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" IUSE="opengl svga X" DEPEND="app-arch/unzip" RDEPEND="virtual/x11 svga? ( media-libs/svgalib ) opengl? ( virtual/opengl )" 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} dodir ${dir} exeinto ${dir} doexe fuhquake-gl.glx fuhquake.svga fuhquake.x11 fuhquake-security.so || die "doexe" cp -r fuhquake qw "${D}/${dir}"/ || die "cp data" dosym ${GAMES_DATADIR}/quake-data ${dir}/id1 for x in fuhquake-gl.glx fuhquake.svga fuhquake.x11 ; do games_make_wrapper ${x} ./${x} ${dir} done prepgamesdirs }