summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-04-03 17:32:59 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-04-03 17:32:59 +0000
commiteaa578fbfda4316a6a745a82e9809dc9d3d41ec1 (patch)
tree775f34a60792fbe47f1d4c68b0f7dbc0c718155c /games-fps/nexuiz
parentAdded myself to vde metadata.xml. (diff)
downloadgentoo-2-eaa578fbfda4316a6a745a82e9809dc9d3d41ec1.tar.gz
gentoo-2-eaa578fbfda4316a6a745a82e9809dc9d3d41ec1.tar.bz2
gentoo-2-eaa578fbfda4316a6a745a82e9809dc9d3d41ec1.zip
EAPI=2; tidy; handle strip more precisely
(Portage version: 2.1.6.7/cvs/Linux i686)
Diffstat (limited to 'games-fps/nexuiz')
-rw-r--r--games-fps/nexuiz/ChangeLog7
-rw-r--r--games-fps/nexuiz/nexuiz-2.4.2.ebuild31
2 files changed, 24 insertions, 14 deletions
diff --git a/games-fps/nexuiz/ChangeLog b/games-fps/nexuiz/ChangeLog
index e34580ba6f2a..d6e98127d6ae 100644
--- a/games-fps/nexuiz/ChangeLog
+++ b/games-fps/nexuiz/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-fps/nexuiz
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v 1.28 2008/10/16 10:11:56 armin76 Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/ChangeLog,v 1.29 2009/04/03 17:32:59 mr_bones_ Exp $
+
+ 03 Apr 2009; Michael Sterrett <mr_bones_@gentoo.org> nexuiz-2.4.2.ebuild:
+ EAPI=2; tidy; handle strip more precisely
16 Oct 2008; Raúl Porcel <armin76@gentoo.org> nexuiz-2.4.2.ebuild:
x86 stable wrt #240708
diff --git a/games-fps/nexuiz/nexuiz-2.4.2.ebuild b/games-fps/nexuiz/nexuiz-2.4.2.ebuild
index 77c925f13ff2..69aca1fd1943 100644
--- a/games-fps/nexuiz/nexuiz-2.4.2.ebuild
+++ b/games-fps/nexuiz/nexuiz-2.4.2.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/nexuiz-2.4.2.ebuild,v 1.3 2008/10/16 10:11:56 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/nexuiz/nexuiz-2.4.2.ebuild,v 1.4 2009/04/03 17:32:59 mr_bones_ Exp $
+EAPI=2
inherit eutils toolchain-funcs games
MY_PN=Nexuiz
@@ -55,27 +56,34 @@ src_unpack() {
cd "${WORKDIR}"/${MY_PN}
unpack ${MAPS}.zip
fi
+}
- cd "${S}"
+src_prepare() {
# Make the game automatically look in the correct data directory
- sed -i "s:gamedirname1:\"${PN}\":" fs.c \
- || die "sed fs.c failed"
+ sed -i \
+ -e "s:gamedirname1:\"${PN}\":" \
+ fs.c \
+ || die "sed failed"
sed -i \
-e "/^CC=/s:gcc:$(tc-getCC):" \
-e "s:-O2:${CFLAGS}:" \
-e "/-lm/s:$: ${LDFLAGS}:" \
- -e 's/strip/true/' \
+ -e '/^STRIP/s/strip/true/' \
makefile.inc \
- || die "sed makefile.inc failed"
+ || die "sed failed"
# This is the right dir, so that e.g. "darkplaces -game nexuiz" will work
- sed -i "s:ifdef DP_.*:DP_FS_BASEDIR=${GAMES_DATADIR}/quake1\n&:" makefile \
- || die "sed makefile failed"
+ sed -i \
+ -e "s:ifdef DP_.*:DP_FS_BASEDIR=${GAMES_DATADIR}/quake1\n&:" \
+ makefile \
+ || die "sed failed"
if ! use alsa ; then
- sed -i "/DEFAULT_SNDAPI/s:ALSA:OSS:" makefile \
- || die "sed makefile failed"
+ sed -i \
+ -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
+ makefile \
+ || die "sed failed"
fi
}
@@ -86,7 +94,6 @@ src_compile() {
emake sdl-${PN} || die "emake sdl-${PN} failed"
fi
fi
-
if use dedicated ; then
emake sv-${PN} || die "emake sv-${PN} failed"
fi