summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-04-09 18:19:41 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-04-09 18:19:41 +0000
commit34e16f2daf1e88be3c59f91550f94395dd8e73fe (patch)
treead7101bbe05e7cb8a8b3d454c667626355c440f6 /games-fps/red-blue-quake2
parentuse games_get_libdir (diff)
downloadgentoo-2-34e16f2daf1e88be3c59f91550f94395dd8e73fe.tar.gz
gentoo-2-34e16f2daf1e88be3c59f91550f94395dd8e73fe.tar.bz2
gentoo-2-34e16f2daf1e88be3c59f91550f94395dd8e73fe.zip
use games_get_libdir
(Portage version: 2.1.2.3)
Diffstat (limited to 'games-fps/red-blue-quake2')
-rw-r--r--games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild36
1 files changed, 19 insertions, 17 deletions
diff --git a/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild
index 753d7b441864..acdd8174f80b 100644
--- a/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild
+++ b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild,v 1.10 2006/12/05 17:55:35 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild,v 1.11 2007/04/09 18:19:41 nyhm Exp $
inherit eutils games
@@ -22,36 +22,38 @@ S=${WORKDIR}/quake2-3.21/linux
src_unpack() {
unpack ${A}
- epatch ${FILESDIR}/${PV}-gentoo.patch
+ epatch "${FILESDIR}"/${PV}-gentoo.patch
cd quake2-3.21
epatch "${FILESDIR}/${P}"-gcc41.patch
cd linux
- sed -i "s:GENTOO_DIR:${GAMES_LIBDIR}/${PN}:" sys_linux.c
- sed -i "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" sys_linux.c vid_so.c
+ sed -i "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" sys_linux.c \
+ || die "sed failed"
+ sed -i "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" \
+ sys_linux.c vid_so.c \
+ || die "sed failed"
}
src_compile() {
mkdir -p releasei386-glibc/ref_soft
- make \
+ emake \
GENTOO_CFLAGS="${CFLAGS}" \
GENTOO_DATADIR="${GAMES_DATADIR}"/quake2/baseq2/ \
- build_release || die
+ build_release \
+ || die "emake failed"
}
src_install() {
cd release*
- exeinto ${GAMES_LIBDIR}/${PN}
- doexe gamei386.so ref_softx.so || die
- exeinto ${GAMES_LIBDIR}/${PN}/ctf
- doexe ctf/gamei386.so || die
- newgamesbin quake2 red-blue-quake2 || die
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe gamei386.so ref_softx.so || die "doexe failed"
+ exeinto "$(games_get_libdir)"/${PN}/ctf
+ doexe ctf/gamei386.so || die "doexe failed"
+ newgamesbin quake2 red-blue-quake2 || die "newgamesbin failed"
- dodir ${GAMES_DATADIR}/quake2
-
- insinto ${GAMES_SYSCONFDIR}
- echo ${GAMES_LIBDIR}/${PN} > ${PN}.conf
- doins ${PN}.conf
+ insinto "${GAMES_SYSCONFDIR}"
+ echo "$(games_get_libdir)"/${PN} > ${PN}.conf
+ doins ${PN}.conf || die "doins failed"
prepgamesdirs
}