diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-05-21 17:50:13 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-05-21 17:50:13 +0000 |
commit | 4774d39b3960cd116cc8dede60fa7ba3e76ada1b (patch) | |
tree | 15cfd986d431c5c26ba2c081680c8ef9f29d46f0 /games-fps | |
parent | stable on amd64, ppc and x86. introduced support for the jikes useflag (diff) | |
download | gentoo-2-4774d39b3960cd116cc8dede60fa7ba3e76ada1b.tar.gz gentoo-2-4774d39b3960cd116cc8dede60fa7ba3e76ada1b.tar.bz2 gentoo-2-4774d39b3960cd116cc8dede60fa7ba3e76ada1b.zip |
fix bug #93446; tidy
(Portage version: 2.0.51.19)
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/prboom/prboom-2.2.4-r1.ebuild | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/games-fps/prboom/prboom-2.2.4-r1.ebuild b/games-fps/prboom/prboom-2.2.4-r1.ebuild index 544c53e0e844..c9dcfdfa8e92 100644 --- a/games-fps/prboom/prboom-2.2.4-r1.ebuild +++ b/games-fps/prboom/prboom-2.2.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/prboom/prboom-2.2.4-r1.ebuild,v 1.4 2005/05/17 18:26:32 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/prboom/prboom-2.2.4-r1.ebuild,v 1.5 2005/05/21 17:50:13 mr_bones_ Exp $ inherit eutils toolchain-funcs games @@ -22,12 +22,13 @@ DEPEND="virtual/x11 src_unpack() { unpack ${A} - epatch ${FILESDIR}/${PV}-gcc34.patch + cd "${S}" + epatch "${FILESDIR}"/${PV}-gcc34.patch ebegin "Detecting NVidia GL/prboom bug" - $(tc-getCC) ${FILESDIR}/${PV}-nvidia-test.c 2> /dev/null + $(tc-getCC) "${FILESDIR}"/${PV}-nvidia-test.c 2> /dev/null local ret=$? eend ${ret} "NVidia GL/prboom bug found ;(" - [ ${ret} -eq 0 ] || epatch ${FILESDIR}/${PV}-nvidia.patch + [ ${ret} -eq 0 ] || epatch "${FILESDIR}"/${PV}-nvidia.patch } src_compile() { @@ -35,21 +36,27 @@ src_compile() { # will append -march=i686 and crap ... let the user's CFLAGS # handle this ... egamesconf \ - `use_enable opengl gl` \ - `use_enable x86 i386-asm` \ + $(use_enable opengl gl) \ + $(use_enable x86 i386-asm) \ --disable-cpu-opt \ || die # configure script screws up a few things - sed -i "/DOOMWADDIR/s:\".*\":\"${GAMES_DATADIR}/doom-data\":" config.h - use opengl || sed -i '/GL_DOOM/s:.*::' config.h - emake || die + sed -i \ + -e "/DOOMWADDIR/s:\".*\":\"${GAMES_DATADIR}/doom-data\":" config.h \ + || die "sed failed" + if use opengl ; then + sed -i \ + -e '/GL_DOOM/s:.*::' config.h \ + || die "sed failed" + fi + emake || die "emake failed" } src_install() { - dogamesbin src/prboom{,-game-server} || die + dogamesbin src/prboom{,-game-server} || die "dogamesbin failed" - insinto ${GAMES_DATADIR}/doom-data - doins data/*.wad || die + insinto "${GAMES_DATADIR}/doom-data" + doins data/*.wad || die "doins failed" doman doc/*.{5,6} dodoc AUTHORS ChangeLog NEWS README TODO doc/README.* doc/*.txt |