diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2008-09-07 14:35:51 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2008-09-07 14:35:51 +0000 |
commit | 4fe2c96d526723af6a81047371b43f4df2e603a0 (patch) | |
tree | d2e2e72ff7511910a89903a9aa3e8bf555411e78 /games-fps/tremulous | |
parent | Sparc stable, Bug #236940. (diff) | |
download | gentoo-2-4fe2c96d526723af6a81047371b43f4df2e603a0.tar.gz gentoo-2-4fe2c96d526723af6a81047371b43f4df2e603a0.tar.bz2 gentoo-2-4fe2c96d526723af6a81047371b43f4df2e603a0.zip |
New revision from scarabeus with security patches from trem-servers.com, bug #222119
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.3 x86_64)
Diffstat (limited to 'games-fps/tremulous')
-rw-r--r-- | games-fps/tremulous/ChangeLog | 8 | ||||
-rw-r--r-- | games-fps/tremulous/tremulous-1.1.0-r2.ebuild | 102 |
2 files changed, 109 insertions, 1 deletions
diff --git a/games-fps/tremulous/ChangeLog b/games-fps/tremulous/ChangeLog index 1ce51fd40d3d..f1fdb7a7f2f5 100644 --- a/games-fps/tremulous/ChangeLog +++ b/games-fps/tremulous/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-fps/tremulous # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous/ChangeLog,v 1.7 2008/02/29 19:22:46 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous/ChangeLog,v 1.8 2008/09/07 14:35:51 nyhm Exp $ + +*tremulous-1.1.0-r2 (07 Sep 2008) + + 07 Sep 2008; Tristan Heaven <nyhm@gentoo.org> +tremulous-1.1.0-r2.ebuild: + New revision from scarabeus with security patches from trem-servers.com, + bug #222119 29 Feb 2008; Carsten Lohrke <carlo@gentoo.org> tremulous-1.1.0.ebuild, tremulous-1.1.0-r1.ebuild: diff --git a/games-fps/tremulous/tremulous-1.1.0-r2.ebuild b/games-fps/tremulous/tremulous-1.1.0-r2.ebuild new file mode 100644 index 000000000000..9f8442322ce5 --- /dev/null +++ b/games-fps/tremulous/tremulous-1.1.0-r2.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous/tremulous-1.1.0-r2.ebuild,v 1.1 2008/09/07 14:35:51 nyhm Exp $ + +EAPI=1 + +inherit eutils toolchain-funcs games + +DESCRIPTION="Team-based aliens vs humans FPS with buildable structures" +HOMEPAGE="http://tremulous.net/" +SRC_URI="http://dl.trem-servers.com/${PN}-gentoopatches-${PV}-r5.zip + http://dl.trem-servers.com/vms-1.1.t971.pk3 + http://0day.icculus.org/mirrors/${PN}/${P}.zip + ftp://ftp.wireplay.co.uk/pub/quake3arena/mods/${PN}/${P}.zip + mirror://sourceforge/${PN}/${P}.zip" + +LICENSE="GPL-2 CCPL-Attribution-ShareAlike-2.5" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="dedicated openal +opengl +vorbis" + +UIDEPEND="openal? ( media-libs/openal ) + media-libs/libsdl + vorbis? ( media-libs/libogg media-libs/libvorbis ) + virtual/opengl + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext" +RDEPEND="opengl? ( ${UIDEPEND} ) + !opengl? ( !dedicated? ( ${UIDEPEND} ) )" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${PN}/${P}-src + +src_unpack() { + unpack ${PN}-gentoopatches-${PV}-r5.zip + unpack ${P}.zip + + cd ${PN} + unpack ./${P}-src.tar.gz + cp -f "${DISTDIR}"/vms-1.1.t971.pk3 "${WORKDIR}"/${PN}/base/ || die + + # security patches + cd "${S}" + epatch "${WORKDIR}"/${PN}-svn755-upto-971.patch + epatch "${WORKDIR}"/${PN}-t971-client.patch +} + +src_compile() { + buildit() { use $1 && echo 1 || echo 0 ; } + + local client=1 + if ! use opengl; then + client=0 + if ! use dedicated; then + # user is not sure what he wants + client=1 + fi + fi + + emake \ + $(use amd64 && echo ARCH=x86_64) \ + BUILD_CLIENT=${client} \ + BUILD_SERVER=$(buildit dedicated) \ + BUILD_GAME_SO=0 \ + BUILD_GAME_QVM=0 \ + CC="$(tc-getCC)" \ + DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \ + USE_CODEC_VORBIS=$(buildit vorbis) \ + USE_OPENAL=$(buildit openal) \ + USE_LOCAL_HEADERS=0 \ + OPTIMIZE= \ + || die "emake failed" +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r ../base || die "doins -r failed" + dodoc ChangeLog ../manual.pdf + if use opengl || ! use dedicated ; then + newgamesbin build/release-linux-*/${PN}.* ${PN} \ + || die "newgamesbin ${PN}" + newicon "${WORKDIR}"/tyrant.xpm ${PN}.xpm + make_desktop_entry ${PN} Tremulous + fi + if use dedicated ; then + newgamesbin build/release-linux-*/tremded.* ${PN}-ded \ + || die "newgamesbin ${PN}-ded failed" + fi + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + elog "If you want to add extra maps, download" + elog "http://tremulous.bricosoft.com/base/all-maps.tgz" + elog "and unpack it into ~/.tremulous/base for your user" + elog "or into ${GAMES_DATADIR}/${PN}/base for all users." +} |