diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2015-12-21 17:34:27 -0500 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2015-12-21 17:34:27 -0500 |
commit | cf00534e64f93c0992faf2584a970f1910afcc5a (patch) | |
tree | bc30c87a7b4835a31effb044b6fdfb485853ec77 /games-fps/quake3 | |
parent | make pgkcheck happy about SRC_URI (diff) | |
download | gentoo-cf00534e64f93c0992faf2584a970f1910afcc5a.tar.gz gentoo-cf00534e64f93c0992faf2584a970f1910afcc5a.tar.bz2 gentoo-cf00534e64f93c0992faf2584a970f1910afcc5a.zip |
mask games-fps/ut2004-ultraduel for removal
Diffstat (limited to 'games-fps/quake3')
-rw-r--r-- | games-fps/quake3/quake3-1.36-r1.ebuild | 43 | ||||
-rw-r--r-- | games-fps/quake3/quake3-9999.ebuild | 25 |
2 files changed, 23 insertions, 45 deletions
diff --git a/games-fps/quake3/quake3-1.36-r1.ebuild b/games-fps/quake3/quake3-1.36-r1.ebuild index 119a5e9509df..41421b0f9b49 100644 --- a/games-fps/quake3/quake3-1.36-r1.ebuild +++ b/games-fps/quake3/quake3-1.36-r1.ebuild @@ -2,14 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -# 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 +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs games MY_PN="ioquake3" MY_PV="${PV}" @@ -17,8 +11,7 @@ MY_P="${MY_PN}-${MY_PV}" DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter" HOMEPAGE="http://ioquake3.org/" -[[ "${PV}" != 9999* ]] && SRC_URI="http://ioquake3.org/files/${MY_PV}/${MY_P}.tar.bz2" -ESVN_REPO_URI="svn://svn.icculus.org/quake3/trunk" +SRC_URI="http://ioquake3.org/files/${MY_PV}/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" @@ -44,11 +37,7 @@ RDEPEND="${DEPEND} games-fps/quake3-data teamarena? ( games-fps/quake3-teamarena )" -if [[ "${PV}" == 9999* ]] ; then - S="${WORKDIR}/trunk" -else - S="${WORKDIR}/${MY_P}" -fi +S="${WORKDIR}/${MY_P}" my_arch() { case "${ARCH}" in @@ -63,15 +52,9 @@ my_platform() { } src_prepare() { - 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 - + epatch "${FILESDIR}"/${P}-bots.patch einfo "Fixing libspeex linking..." - sed -i -e 's/\(-lspeex\)/\1 -lspeexdsp/' Makefile || die "sed failed" + sed -i -e 's/\(-lspeex\)/\1 -lspeexdsp/' Makefile || die # Use system jpeg library # epatch "${FILESDIR}"/${P}-remove-bundled-jpeg.patch @@ -107,20 +90,18 @@ src_compile() { USE_MUMBLE=$(buildit mumble) \ USE_OPENAL=$(buildit openal) \ USE_OPENAL_DLOPEN=0 \ - USE_VOIP=$(buildit voice) \ - || die "emake failed" + USE_VOIP=$(buildit voice) } src_install() { - dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README TODO || die + dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README TODO if use voice ; then - dodoc voip-readme.txt || die + dodoc voip-readme.txt fi if use opengl || ! use dedicated ; then - doicon misc/quake3.svg || die + doicon misc/quake3.svg 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 @@ -128,8 +109,8 @@ src_install() { for exe in {ioquake3,ioquake3-smp,ioq3ded}.$(my_arch) ; do if [[ -x ${exe} ]] ; then target=${exe%.*} - newgamesbin ${exe} ${target} || die "newgamesbin ${target}" - dosym ${target} "${GAMES_BINDIR}/${target/io}" || die "dosym ${target}" + newgamesbin ${exe} ${target} + dosym ${target} "${GAMES_BINDIR}/${target/io}" fi done diff --git a/games-fps/quake3/quake3-9999.ebuild b/games-fps/quake3/quake3-9999.ebuild index 5a58d6cd6e0f..5ca9661954ee 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=2 -inherit eutils flag-o-matic games toolchain-funcs -[[ "${PV}" == 9999* ]] && inherit git-2 +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs games +[[ "${PV}" == 9999* ]] && inherit git-r3 MY_PN="ioquake3" MY_PV="${PV}" @@ -45,9 +45,7 @@ RDEPEND="${DEPEND} games-fps/quake3-data teamarena? ( games-fps/quake3-teamarena )" -if [[ "${PV}" == 9999* ]] ; then - S="${WORKDIR}/trunk" -else +if [[ "${PV}" != 9999* ]] ; then S="${WORKDIR}/${MY_P}" fi @@ -98,18 +96,17 @@ src_compile() { USE_MUMBLE=$(buildit mumble) \ USE_OPENAL=$(buildit openal) \ USE_OPENAL_DLOPEN=0 \ - USE_VOIP=$(buildit voice) \ - || die "emake failed" + USE_VOIP=$(buildit voice) } src_install() { - dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README.md opengl2-readme.txt TODO voip-readme.txt || die + dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README.md TODO voip-readme.txt if use voice ; then - dodoc voip-readme.txt || die + dodoc voip-readme.txt fi if use opengl || ! use dedicated ; then - doicon misc/quake3.svg || die + doicon misc/quake3.svg make_desktop_entry quake3 "Quake III Arena" #use smp && make_desktop_entry quake3-smp "Quake III Arena (SMP)" fi @@ -118,8 +115,8 @@ src_install() { local exe for exe in ioquake3 ioquake3-smp ioq3ded ; do if [[ -x ${exe} ]] ; then - dogamesbin ${exe} || die "dogamesbin ${exe}" - dosym ${exe} "${GAMES_BINDIR}/${exe/io}" || die "dosym ${exe}" + dogamesbin ${exe} + dosym ${exe} "${GAMES_BINDIR}/${exe/io}" fi done @@ -127,7 +124,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 || die 'install renderers failed' + doexe renderer*.so prepgamesdirs } |