summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-11-23 06:33:10 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-11-23 06:33:10 +0000
commit4ea23836d0db45d4f6310c734881b33b11f51bb7 (patch)
tree2d041251a3ed65c48d199a34d6530f0db6c0e36b /games-fps
parentversion bump from upstream (diff)
downloadgentoo-2-4ea23836d0db45d4f6310c734881b33b11f51bb7.tar.gz
gentoo-2-4ea23836d0db45d4f6310c734881b33b11f51bb7.tar.bz2
gentoo-2-4ea23836d0db45d4f6310c734881b33b11f51bb7.zip
Version bump by Paul Bredbury, bug #195545
(Portage version: 2.1.3.19)
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/alienarena/ChangeLog8
-rw-r--r--games-fps/alienarena/alienarena-20071011.ebuild92
-rw-r--r--games-fps/alienarena/files/alienarena-20071011-paths.patch19
-rw-r--r--games-fps/alienarena/files/digest-alienarena-200710113
4 files changed, 121 insertions, 1 deletions
diff --git a/games-fps/alienarena/ChangeLog b/games-fps/alienarena/ChangeLog
index 86a282c8f378..a48fdf728c22 100644
--- a/games-fps/alienarena/ChangeLog
+++ b/games-fps/alienarena/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-fps/alienarena
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.6 2007/09/24 21:27:48 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.7 2007/11/23 06:33:09 nyhm Exp $
+
+*alienarena-20071011 (23 Nov 2007)
+
+ 23 Nov 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/alienarena-20071011-paths.patch, +alienarena-20071011.ebuild:
+ Version bump by Paul Bredbury, bug #195545
*alienarena-20070613-r1 (24 Sep 2007)
diff --git a/games-fps/alienarena/alienarena-20071011.ebuild b/games-fps/alienarena/alienarena-20071011.ebuild
new file mode 100644
index 000000000000..64c1c2053fb3
--- /dev/null
+++ b/games-fps/alienarena/alienarena-20071011.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/alienarena-20071011.ebuild,v 1.1 2007/11/23 06:33:09 nyhm Exp $
+
+inherit eutils flag-o-matic toolchain-funcs games
+
+MY_PN=${PN}${PV:0:4}
+DESCRIPTION="Fast-paced multiplayer deathmatch game"
+HOMEPAGE="http://red.planetarena.org/"
+SRC_URI="http://icculus.org/${PN}/files/${MY_PN}-${PV}-linux.zip"
+
+LICENSE="GPL-2 free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated opengl sdl"
+
+UIDEPEND="media-libs/jpeg
+ media-libs/libpng
+ virtual/glu
+ virtual/opengl
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm"
+RDEPEND="!dedicated? ( ${UIDEPEND} )
+ opengl? ( ${UIDEPEND} )
+ sdl? ( ${UIDEPEND} media-libs/libsdl )
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_PN}/source
+
+src_unpack() {
+ unpack ${A}
+ cd "${MY_PN}"
+
+ rm -f */*.so *.dll crded crx crx.sdl
+
+ epatch "${FILESDIR}"/${P}-paths.patch
+
+ cd "${S}"
+ sed -i \
+ -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
+ -e "s:GENTOO_LIBDIR:$(games_get_libdir)/${PN}:" \
+ unix/sys_unix.c \
+ || die "sed sys_unix.c"
+}
+
+src_compile() {
+ # To avoid audio crackling
+ [[ $(gcc-fullversion) == "4.1.1" ]] && replace-flags -O? -O0
+
+ emake \
+ CC="$(tc-getCC)" \
+ BASE_CFLAGS="${CFLAGS} -Dstricmp=strcasecmp -D_stricmp=strcasecmp -DHAVE_CURL" \
+ OPTIMIZED_CFLAGS= \
+ $(use sdl && echo SDLSOUND=1) \
+ $(use opengl && ! use dedicated && echo BUILD=GAME) \
+ $(! use opengl && use dedicated && echo BUILD=DEDICATED) \
+ $(use opengl && use dedicated && echo BUILD=ALL) \
+ $(! use opengl && ! use dedicated && echo BUILD=GAME) \
+ || die "emake failed"
+}
+
+src_install() {
+ cd release
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe game.so || die "doexe failed"
+
+ if use opengl || ! use dedicated ; then
+ newgamesbin crx ${PN}-oss || die "newgamesbin crx failed"
+ make_desktop_entry ${PN}-oss "Alien Arena (OSS audio)" ${PN}.xpm
+ use sdl || dosym ${PN}-oss "${GAMES_BINDIR}"/${PN}
+ fi
+
+ if use sdl ; then
+ newgamesbin crx.sdl ${PN}-sdl || die "newgamesbin crx.sdl failed"
+ make_desktop_entry ${PN}-sdl "Alien Arena (SDL audio)" ${PN}.xpm
+ dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN}
+ fi
+
+ if use dedicated ; then
+ newgamesbin crded ${PN}-ded || die "newgamesbin crded failed"
+ fi
+
+ cd "${WORKDIR}/${MY_PN}"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r arena botinfo data1 || die "doins failed"
+ newicon aa.png ${PN}.png || die "newicon"
+ dodoc docs/README.txt
+
+ prepgamesdirs
+}
diff --git a/games-fps/alienarena/files/alienarena-20071011-paths.patch b/games-fps/alienarena/files/alienarena-20071011-paths.patch
new file mode 100644
index 000000000000..263aa58666b6
--- /dev/null
+++ b/games-fps/alienarena/files/alienarena-20071011-paths.patch
@@ -0,0 +1,19 @@
+--- source/unix/sys_unix.c 2007-06-14 13:15:32.834511771 -0400
++++ source/unix/sys_unix.c 2007-06-14 13:16:54.505565372 -0400
+@@ -234,7 +234,7 @@
+ path = FS_NextPath (path);
+ if (!path)
+ return NULL; // couldn't find one anywhere
+- snprintf (name, MAX_OSPATH, "%s/%s", path, gamename);
++ snprintf (name, MAX_OSPATH, "%s/%s", "GENTOO_LIBDIR", gamename);
+
+ /* skip it if it just doesn't exist */
+ fp = fopen(name, "rb");
+@@ -308,6 +308,7 @@
+ saved_euid = geteuid();
+ seteuid(getuid());
+
++ chdir("GENTOO_DATADIR");
+ Qcommon_Init(argc, argv);
+
+ fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
diff --git a/games-fps/alienarena/files/digest-alienarena-20071011 b/games-fps/alienarena/files/digest-alienarena-20071011
new file mode 100644
index 000000000000..3f5b39867541
--- /dev/null
+++ b/games-fps/alienarena/files/digest-alienarena-20071011
@@ -0,0 +1,3 @@
+MD5 7ebb0dfeec4be80311921a075379c8dc alienarena2007-20071011-linux.zip 245067302
+RMD160 838167095481bf77446fd1286f3c75ebdd2361ad alienarena2007-20071011-linux.zip 245067302
+SHA256 33036bd0dec77ae06c113d8e06718bd6f9e42efb634ee304c3fd9d48184c2e20 alienarena2007-20071011-linux.zip 245067302