# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator games MY_PV=$(delete_all_version_separators) DESCRIPTION="Open-source replacement content for Quake 3 Arena, effectively creating a free stand-alone game" HOMEPAGE="http://openarena.ws/ http://scratchpad.wikia.com/wiki/OpenArena" SRC_URI="http://openarena.ws/rel/060/oa${MY_PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" RDEPEND="virtual/opengl media-libs/openal media-libs/libsdl || ( ( x11-libs/libXext x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp ) virtual/x11 )" S=${WORKDIR} dir=${GAMES_PREFIX_OPT}/${PN} src_unpack() { unpack ${A} } src_install() { local exe="ioquake3.i386" exeinto "${dir}" doexe "${exe}" || die "doexe failed" insinto "${dir}" doins -r baseoa games_make_wrapper ${PN} "./${exe}" "${dir}" make_desktop_entry ${PN} "Quake III - Open Arena" quake3.png doins CHANGES CREDITS LINUXNOTES README prepgamesdirs }