summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-12-21 17:57:13 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2015-12-21 17:57:13 -0500
commit0ee810ed8842319135f58a44e2d39b3b773b3a28 (patch)
treee5cab727b0faabd56db8c2b61cf966b151cc292b /games-fps/quake3
parentmask games-fps/ut2004-ultraduel for removal (diff)
downloadgentoo-0ee810ed8842319135f58a44e2d39b3b773b3a28.tar.gz
gentoo-0ee810ed8842319135f58a44e2d39b3b773b3a28.tar.bz2
gentoo-0ee810ed8842319135f58a44e2d39b3b773b3a28.zip
Revert "mask games-fps/ut2004-ultraduel for removal"
This reverts commit cf00534e64f93c0992faf2584a970f1910afcc5a.
Diffstat (limited to 'games-fps/quake3')
-rw-r--r--games-fps/quake3/quake3-1.36-r1.ebuild43
-rw-r--r--games-fps/quake3/quake3-9999.ebuild25
2 files changed, 45 insertions, 23 deletions
diff --git a/games-fps/quake3/quake3-1.36-r1.ebuild b/games-fps/quake3/quake3-1.36-r1.ebuild
index 41421b0f9b49..119a5e9509df 100644
--- a/games-fps/quake3/quake3-1.36-r1.ebuild
+++ b/games-fps/quake3/quake3-1.36-r1.ebuild
@@ -2,8 +2,14 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
-inherit eutils flag-o-matic toolchain-funcs games
+# quake3-9999 -> latest svn
+# quake3-9999.REV -> use svn REV
+# quake3-VER_alphaREV -> svn snapshot REV for version VER
+# quake3-VER -> normal quake release
+
+EAPI=2
+inherit eutils flag-o-matic games toolchain-funcs
+[[ "${PV}" == 9999* ]] && inherit subversion
MY_PN="ioquake3"
MY_PV="${PV}"
@@ -11,7 +17,8 @@ MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter"
HOMEPAGE="http://ioquake3.org/"
-SRC_URI="http://ioquake3.org/files/${MY_PV}/${MY_P}.tar.bz2"
+[[ "${PV}" != 9999* ]] && SRC_URI="http://ioquake3.org/files/${MY_PV}/${MY_P}.tar.bz2"
+ESVN_REPO_URI="svn://svn.icculus.org/quake3/trunk"
LICENSE="GPL-2"
SLOT="0"
@@ -37,7 +44,11 @@ RDEPEND="${DEPEND}
games-fps/quake3-data
teamarena? ( games-fps/quake3-teamarena )"
-S="${WORKDIR}/${MY_P}"
+if [[ "${PV}" == 9999* ]] ; then
+ S="${WORKDIR}/trunk"
+else
+ S="${WORKDIR}/${MY_P}"
+fi
my_arch() {
case "${ARCH}" in
@@ -52,9 +63,15 @@ my_platform() {
}
src_prepare() {
- epatch "${FILESDIR}"/${P}-bots.patch
+ if [[ "${PV}" == 9999* ]] ; then
+ # Workaround for the version string
+ ln -s "${ESVN_WC_PATH}/.svn" .svn || die "ln ${ESVN_WC_PATH}/.svn"
+ else
+ epatch "${FILESDIR}"/${P}-bots.patch
+ fi
+
einfo "Fixing libspeex linking..."
- sed -i -e 's/\(-lspeex\)/\1 -lspeexdsp/' Makefile || die
+ sed -i -e 's/\(-lspeex\)/\1 -lspeexdsp/' Makefile || die "sed failed"
# Use system jpeg library
# epatch "${FILESDIR}"/${P}-remove-bundled-jpeg.patch
@@ -90,18 +107,20 @@ src_compile() {
USE_MUMBLE=$(buildit mumble) \
USE_OPENAL=$(buildit openal) \
USE_OPENAL_DLOPEN=0 \
- USE_VOIP=$(buildit voice)
+ USE_VOIP=$(buildit voice) \
+ || die "emake failed"
}
src_install() {
- dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README TODO
+ dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README TODO || die
if use voice ; then
- dodoc voip-readme.txt
+ dodoc voip-readme.txt || die
fi
if use opengl || ! use dedicated ; then
- doicon misc/quake3.svg
+ doicon misc/quake3.svg || die
make_desktop_entry quake3 "Quake III Arena"
+ #use smp && make_desktop_entry quake3-smp "Quake III Arena (SMP)"
fi
cd build/release-$(my_platform)-$(my_arch) || die
@@ -109,8 +128,8 @@ src_install() {
for exe in {ioquake3,ioquake3-smp,ioq3ded}.$(my_arch) ; do
if [[ -x ${exe} ]] ; then
target=${exe%.*}
- newgamesbin ${exe} ${target}
- dosym ${target} "${GAMES_BINDIR}/${target/io}"
+ newgamesbin ${exe} ${target} || die "newgamesbin ${target}"
+ dosym ${target} "${GAMES_BINDIR}/${target/io}" || die "dosym ${target}"
fi
done
diff --git a/games-fps/quake3/quake3-9999.ebuild b/games-fps/quake3/quake3-9999.ebuild
index 5ca9661954ee..5a58d6cd6e0f 100644
--- a/games-fps/quake3/quake3-9999.ebuild
+++ b/games-fps/quake3/quake3-9999.ebuild
@@ -7,9 +7,9 @@
# quake3-VER_alphaREV -> git snapshot REV for version VER
# quake3-VER -> normal quake release
-EAPI=5
-inherit eutils flag-o-matic toolchain-funcs games
-[[ "${PV}" == 9999* ]] && inherit git-r3
+EAPI=2
+inherit eutils flag-o-matic games toolchain-funcs
+[[ "${PV}" == 9999* ]] && inherit git-2
MY_PN="ioquake3"
MY_PV="${PV}"
@@ -45,7 +45,9 @@ RDEPEND="${DEPEND}
games-fps/quake3-data
teamarena? ( games-fps/quake3-teamarena )"
-if [[ "${PV}" != 9999* ]] ; then
+if [[ "${PV}" == 9999* ]] ; then
+ S="${WORKDIR}/trunk"
+else
S="${WORKDIR}/${MY_P}"
fi
@@ -96,17 +98,18 @@ src_compile() {
USE_MUMBLE=$(buildit mumble) \
USE_OPENAL=$(buildit openal) \
USE_OPENAL_DLOPEN=0 \
- USE_VOIP=$(buildit voice)
+ USE_VOIP=$(buildit voice) \
+ || die "emake failed"
}
src_install() {
- dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README.md TODO voip-readme.txt
+ dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README.md opengl2-readme.txt TODO voip-readme.txt || die
if use voice ; then
- dodoc voip-readme.txt
+ dodoc voip-readme.txt || die
fi
if use opengl || ! use dedicated ; then
- doicon misc/quake3.svg
+ doicon misc/quake3.svg || die
make_desktop_entry quake3 "Quake III Arena"
#use smp && make_desktop_entry quake3-smp "Quake III Arena (SMP)"
fi
@@ -115,8 +118,8 @@ src_install() {
local exe
for exe in ioquake3 ioquake3-smp ioq3ded ; do
if [[ -x ${exe} ]] ; then
- dogamesbin ${exe}
- dosym ${exe} "${GAMES_BINDIR}/${exe/io}"
+ dogamesbin ${exe} || die "dogamesbin ${exe}"
+ dosym ${exe} "${GAMES_BINDIR}/${exe/io}" || die "dosym ${exe}"
fi
done
@@ -124,7 +127,7 @@ src_install() {
# this should be done through 'dogameslib', but
# for this some files need to be patched
exeinto "${GAMES_DATADIR}/${PN}"
- doexe renderer*.so
+ doexe renderer*.so || die 'install renderers failed'
prepgamesdirs
}