From 8e2cea43c6cbc9d3ad9a3f23be872fdaf7ae2088 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Oct 2005 00:29:12 +0000 Subject: [PATCH] initial version of quake3-from-source #103591 Package-Manager: portage-2.0.53_rc6 --- games-fps/quake3/ChangeLog | 10 +++ .../quake3/files/digest-quake3-1.33_alpha177 | 1 + games-fps/quake3/metadata.xml | 18 +++++ games-fps/quake3/quake3-1.33_alpha177.ebuild | 72 +++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 games-fps/quake3/ChangeLog create mode 100644 games-fps/quake3/files/digest-quake3-1.33_alpha177 create mode 100644 games-fps/quake3/metadata.xml create mode 100644 games-fps/quake3/quake3-1.33_alpha177.ebuild diff --git a/games-fps/quake3/ChangeLog b/games-fps/quake3/ChangeLog new file mode 100644 index 000000000000..551c05cc7d7e --- /dev/null +++ b/games-fps/quake3/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-fps/quake3 +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/ChangeLog,v 1.24 2005/10/26 00:29:12 vapier Exp $ + +*quake3-1.33_alpha177 (26 Oct 2005) + + 26 Oct 2005; Mike Frysinger +metadata.xml, + +quake3-1.33_alpha177.ebuild: + Initial version of quake3-from-source #103591. + diff --git a/games-fps/quake3/files/digest-quake3-1.33_alpha177 b/games-fps/quake3/files/digest-quake3-1.33_alpha177 new file mode 100644 index 000000000000..819a771598d1 --- /dev/null +++ b/games-fps/quake3/files/digest-quake3-1.33_alpha177 @@ -0,0 +1 @@ +MD5 5ddd5ee10d87fb1586d40095f65469c8 quake3-1.33_SVN177M.tar.bz2 2529215 diff --git a/games-fps/quake3/metadata.xml b/games-fps/quake3/metadata.xml new file mode 100644 index 000000000000..f4f43499c2b3 --- /dev/null +++ b/games-fps/quake3/metadata.xml @@ -0,0 +1,18 @@ + + + +games + +Quake III Arena is the third installment of the extremely popular and +successful Quake series by id software. The game was released by id +software for both Windows and Linux. The Linux version of the game was +maintained and sold by the now defunct Loki Entertainment. The powerful +Quake III engine is the basis for many other commercial games, as id's +major source of revenue is licensing their game engines. The engine +allows for user-contributed modifications to be made, allowing the game +to be extensible and expandable. This game is commercial software, and +requires the data from a retail copy of the game to play. If you're +interested in checking out the technology behind Quake III, then +"emerge quake3-demo" to get the playable demo. + + diff --git a/games-fps/quake3/quake3-1.33_alpha177.ebuild b/games-fps/quake3/quake3-1.33_alpha177.ebuild new file mode 100644 index 000000000000..c621e4809e96 --- /dev/null +++ b/games-fps/quake3/quake3-1.33_alpha177.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/quake3-1.33_alpha177.ebuild,v 1.1 2005/10/26 00:29:12 vapier Exp $ + +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="svn://svn.icculus.org/quake3/trunk" + inherit subversion games toolchain-funcs + + SRC_URI="" + S=${WORKDIR}/trunk +elif [[ ${PV} == *_alpha* ]] ; then + inherit games toolchain-funcs + + MY_PV=${PV/_alpha*} + SNAP=${PV/*_alpha} + MY_P=${PN}-${MY_PV}_SVN${SNAP}M + SRC_URI="mirror://gentoo/${MY_P}.tar.bz2" + S=${WORKDIR}/${MY_P} +else + inherit games toolchain-funcs + + SRC_URI="http://icculus.org/quake3/${P}.tar.bz2" +fi + +DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter" +HOMEPAGE="http://icculus.org/quake3/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated opengl" + +RDEPEND="opengl? ( virtual/opengl virtual/x11 ) + games-fps/quake3-data" + +src_unpack() { + if [[ ${PV} == "9999" ]] ; then + subversion_src_unpack + else + unpack ${A} + fi +} + +src_compile() { + emake \ + TEMPDIR="${T}" \ + CC="$(tc-getCC)" \ + ARCH=$(tc-arch-kernel) \ + OPTIMIZE="${CFLAGS}" \ + DEFAULT_BASEDIR="${GAMES_DATADIR}/quake3" \ + || die +} + +src_install() { + dodoc id-readme.txt i_o-q3-readme + cd code/unix + dodoc ChangeLog README* + + doicon quake3.xpm + make_desktop_entry quake3 "Quake III Arena" quake3.xpm + + cd release* + for x in linux* ; do + newgamesbin ${x} ${x/linux} || die "dobin ${x}" + done + exeinto ${GAMES_LIBDIR}/${PN}/baseq3 + doexe baseq3/*.so || die "baseq3 .so" + exeinto ${GAMES_LIBDIR}/${PN}/missionpack + doexe missionpack/*.so || die "missionpack .so" + + prepgamesdirs +} -- 2.26.2