summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-04-18 07:22:55 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-04-18 07:22:55 +0000
commit4621f88859b4d1a6fe20af0b2b74dcae21b2c9ce (patch)
treee2ecea0e15ae58adf6c11ebad86919e631a57e89 /games-fps/duke3d
parentbump to 1.2.2 to close email requests and some bugs (bug #48162). anyone want... (diff)
downloadgentoo-2-4621f88859b4d1a6fe20af0b2b74dcae21b2c9ce.tar.gz
gentoo-2-4621f88859b4d1a6fe20af0b2b74dcae21b2c9ce.tar.bz2
gentoo-2-4621f88859b4d1a6fe20af0b2b74dcae21b2c9ce.zip
use games_make_wrapper; tidy; fix use_tf() and use_ft()
Diffstat (limited to 'games-fps/duke3d')
-rw-r--r--games-fps/duke3d/ChangeLog6
-rw-r--r--games-fps/duke3d/duke3d-20030817-r1.ebuild32
2 files changed, 20 insertions, 18 deletions
diff --git a/games-fps/duke3d/ChangeLog b/games-fps/duke3d/ChangeLog
index 03f0a305d592..32769bb0daf7 100644
--- a/games-fps/duke3d/ChangeLog
+++ b/games-fps/duke3d/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-fps/duke3d
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.10 2004/04/10 09:08:03 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/ChangeLog,v 1.11 2004/04/18 07:22:55 mr_bones_ Exp $
+
+ 18 Apr 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ duke3d-20030817-r1.ebuild:
+ use games_make_wrapper; tidy; fix use_tf() and use_ft()
10 Apr 2004; Michael Sterrett <mr_bones_@gentoo.org>
duke3d-20030817-r1.ebuild:
diff --git a/games-fps/duke3d/duke3d-20030817-r1.ebuild b/games-fps/duke3d/duke3d-20030817-r1.ebuild
index 4caa123a6fa7..943ce0253048 100644
--- a/games-fps/duke3d/duke3d-20030817-r1.ebuild
+++ b/games-fps/duke3d/duke3d-20030817-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20030817-r1.ebuild,v 1.12 2004/04/18 06:16:06 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/duke3d/duke3d-20030817-r1.ebuild,v 1.13 2004/04/18 07:22:55 mr_bones_ Exp $
ECVS_PASS="anonymous"
ECVS_SERVER="icculus.org:/cvs/cvsroot"
@@ -29,8 +29,8 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${ECVS_MODULE}"
-use_tf() { use ${1} && echo true || echo false; }
-use_ft() { use ${1} && echo false || echo true; }
+use_tf() { use ${1} > /dev/null && echo "true" || echo "false"; }
+use_ft() { use ${1} > /dev/null && echo "false" || echo "true"; }
src_unpack() {
local fromcvs=0
@@ -45,25 +45,24 @@ src_unpack() {
# configure buildengine
cd ${S}/source/buildengine
-# -e "/^usephysfs := /s:=.*:= `use_ft nophysfs`:" \
sed -i \
- -e "/^useperl := /s:=.*:= `use_tf perl`:" \
- -e "/^useopengl := /s:=.*:= `use_tf opengl`:" \
- -e "/^usephysfs := /s:=.*:= false:" Makefile \
+ -e "/^useperl := / s:=.*:= $(use_tf perl):" \
+ -e "/^useopengl := / s:=.*:= $(use_tf opengl):" \
+ -e "/^usephysfs := / s:=.*:= false:" Makefile \
|| die "sed Makefile failed"
if use x86 ; then
sed -i \
-e 's:^#USE_ASM:USE_ASM:' Makefile \
|| die "sed Makefile failed (x86)"
fi
- epatch ${FILESDIR}/${PV}-buildengine-makefile-cflags.patch
+ epatch "${FILESDIR}/${PV}-buildengine-makefile-cflags.patch"
sed -i \
-e 's:/usr/lib/perl5/i386-linux/CORE/libperl.a::' Makefile \
- || die "sed Makefile failed"
+ || die "sed Makefile failed (libperl)"
# configure duke3d
cd ${S}/source
- epatch ${FILESDIR}/${PV}-duke3d-makefile-opts.patch
+ epatch "${FILESDIR}/${PV}-duke3d-makefile-opts.patch"
if use x86 ; then
sed -i \
-e '/^#use_asm/s:#::' Makefile \
@@ -86,21 +85,20 @@ src_compile() {
}
src_install() {
- dogamesbin ${FILESDIR}/duke3d
- dosed "s:GENTOO_DIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/duke3d
+ games_make_wrapper duke3d "${GAMES_BINDIR}/duke3d.bin" "${GAMES_DATADIR}/${PN}"
newgamesbin source/duke3d duke3d.bin || die "newgamesbin failed"
dodoc readme.txt
cd testdata
- insinto ${GAMES_DATADIR}/${PN}
+ insinto "${GAMES_DATADIR}/${PN}"
newins defs.con DEFS.CON
newins game.con GAME.CON
newins user.con USER.CON
- doins ${FILESDIR}/network.cfg
- insinto ${GAMES_SYSCONFDIR}
- doins ${FILESDIR}/duke3d.cfg
- dosym ${GAMES_SYSCONFDIR}/duke3d.cfg ${GAMES_DATADIR}/${PN}/DUKE3D.CFG
+ doins "${FILESDIR}/network.cfg"
+ insinto "${GAMES_SYSCONFDIR}"
+ doins "${FILESDIR}/duke3d.cfg"
+ dosym "${GAMES_SYSCONFDIR}/duke3d.cfg" "${GAMES_DATADIR}/${PN}/DUKE3D.CFG"
prepgamesdirs
}