Initial import. Original ebuild by Paul Bredbury <brebs@sent.com>. Edited by Trista...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 6 Sep 2006 22:19:45 +0000 (22:19 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 6 Sep 2006 22:19:45 +0000 (22:19 +0000)
Package-Manager: portage-2.1.1_rc1-r1

games-fps/tremulous-bin/ChangeLog [new file with mode: 0644]
games-fps/tremulous-bin/Manifest [new file with mode: 0644]
games-fps/tremulous-bin/files/digest-tremulous-bin-1.1.0 [new file with mode: 0644]
games-fps/tremulous-bin/metadata.xml [new file with mode: 0644]
games-fps/tremulous-bin/tremulous-bin-1.1.0.ebuild [new file with mode: 0644]
games-fps/tremulous/ChangeLog [new file with mode: 0644]
games-fps/tremulous/Manifest [new file with mode: 0644]
games-fps/tremulous/files/digest-tremulous-1.1.0 [new file with mode: 0644]
games-fps/tremulous/metadata.xml [new file with mode: 0644]
games-fps/tremulous/tremulous-1.1.0.ebuild [new file with mode: 0644]

diff --git a/games-fps/tremulous-bin/ChangeLog b/games-fps/tremulous-bin/ChangeLog
new file mode 100644 (file)
index 0000000..48512de
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for games-fps/tremulous-bin
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous-bin/ChangeLog,v 1.1 2006/09/06 22:17:48 wolf31o2 Exp $
+
+*tremulous-bin-1.1.0 (06 Sep 2006)
+
+  06 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+  +tremulous-bin-1.1.0.ebuild:
+  Initial import. Original ebuild by Paul Bredbury <brebs@sent.com>. Edited by
+  Tristan Heaven <tristanheaven@gmail.com>. Closing bug #128370.
+
diff --git a/games-fps/tremulous-bin/Manifest b/games-fps/tremulous-bin/Manifest
new file mode 100644 (file)
index 0000000..5d649d1
--- /dev/null
@@ -0,0 +1,16 @@
+DIST tremulous-1.1.0.zip 105821907 RMD160 36d25fee8ee6b348b1045ab027ab6733aef77a1d SHA1 39d820cc50eda1eff58917158bb0ec68b62f633c SHA256 c7bb66f55abc88932edee16c253e5d37f90dded2ce29cf6cb15ad4f78e378987
+EBUILD tremulous-bin-1.1.0.ebuild 2301 RMD160 3072a4dd5cb4d3ecfcbb9e860ba7c6ae4ce5ff57 SHA1 4ed3a83bf9741dc28607f53b74e766d3aa507fb4 SHA256 a7d387f0d40461b972fc970383e0718ce7961b6cbde9273b2da72099638f837f
+MD5 fa45ac2ed64ec062405d51c18ed9166d tremulous-bin-1.1.0.ebuild 2301
+RMD160 3072a4dd5cb4d3ecfcbb9e860ba7c6ae4ce5ff57 tremulous-bin-1.1.0.ebuild 2301
+SHA256 a7d387f0d40461b972fc970383e0718ce7961b6cbde9273b2da72099638f837f tremulous-bin-1.1.0.ebuild 2301
+MISC ChangeLog 405 RMD160 ea83fd31e6659992ad9d5fecb78f87db04c2a07c SHA1 e268a5b6d31a3252343d25c2eb0c9a6eeb0eef22 SHA256 ce9782a16e9585fff2e7f80175d54c636494b3e2e56e6663dfbbcb8ffaf9b979
+MD5 ab7f2118862f0ff6a817b942318f25cf ChangeLog 405
+RMD160 ea83fd31e6659992ad9d5fecb78f87db04c2a07c ChangeLog 405
+SHA256 ce9782a16e9585fff2e7f80175d54c636494b3e2e56e6663dfbbcb8ffaf9b979 ChangeLog 405
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
+SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158
+MD5 b20f67e86d7888db5aad44273ae6532a files/digest-tremulous-bin-1.1.0 247
+RMD160 5f606ea66d8584939f64cbcd3e2439cd74d887ac files/digest-tremulous-bin-1.1.0 247
+SHA256 e72fd29e6a2a877b17769e96c97b780f761acaf68876b9047e0f3b69e52e8bb2 files/digest-tremulous-bin-1.1.0 247
diff --git a/games-fps/tremulous-bin/files/digest-tremulous-bin-1.1.0 b/games-fps/tremulous-bin/files/digest-tremulous-bin-1.1.0
new file mode 100644 (file)
index 0000000..624ad9d
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 3df5f7565571fb9524656308347bce1b tremulous-1.1.0.zip 105821907
+RMD160 36d25fee8ee6b348b1045ab027ab6733aef77a1d tremulous-1.1.0.zip 105821907
+SHA256 c7bb66f55abc88932edee16c253e5d37f90dded2ce29cf6cb15ad4f78e378987 tremulous-1.1.0.zip 105821907
diff --git a/games-fps/tremulous-bin/metadata.xml b/games-fps/tremulous-bin/metadata.xml
new file mode 100644 (file)
index 0000000..d3c2cc9
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-fps/tremulous-bin/tremulous-bin-1.1.0.ebuild b/games-fps/tremulous-bin/tremulous-bin-1.1.0.ebuild
new file mode 100644 (file)
index 0000000..5fbdad3
--- /dev/null
@@ -0,0 +1,97 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous-bin/tremulous-bin-1.1.0.ebuild,v 1.1 2006/09/06 22:17:48 wolf31o2 Exp $
+
+inherit eutils games
+
+MY_PN=${PN%-bin}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Team-based aliens vs humans FPS with buildable structures"
+HOMEPAGE="http://tremulous.net/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.zip
+       http://0day.icculus.org/mirrors/${MY_PN}/${MY_P}.zip
+       ftp://ftp.wireplay.co.uk/pub/quake3arena/mods/${MY_PN}/${MY_P}.zip"
+
+LICENSE="GPL-2
+       CCPL-Attribution-ShareAlike-2.5"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated sdl"
+
+UIDEPEND="virtual/opengl
+       x86? (
+               media-libs/alsa-lib
+               media-libs/openal
+               media-libs/libogg
+               media-libs/libvorbis
+               media-libs/libsdl
+               || ( (
+                               x11-libs/libX11
+                               x11-libs/libXau
+                               x11-libs/libXdmcp
+                               x11-libs/libXext
+                               x11-libs/libXxf86dga
+                               x11-libs/libXxf86vm )
+                       virtual/x11 ) )
+       amd64? (
+               app-emulation/emul-linux-x86-sdl
+               app-emulation/emul-linux-x86-medialibs )"
+RDEPEND="sdl? ( ${UIDEPEND} )
+       !sdl? ( !dedicated? ( ${UIDEPEND} ) )
+       !games-fps/tremulous"
+DEPEND="${RDEPEND}
+       app-arch/unzip"
+
+S=${WORKDIR}/${MY_PN}
+dir=${GAMES_PREFIX_OPT}/${MY_PN}
+
+install_client() {
+       if use sdl || ! use dedicated ; then
+               return 0
+       fi
+       return 1
+}
+
+pkg_setup() {
+       games_pkg_setup
+
+       if install_client && has_version =media-libs/openal-20050504* ; then
+               eerror "Upgrade media-libs/openal to a later version, e.g. openal-0.0.8"
+               die "Need a more recent version of media-libs/openal"
+       fi
+}
+
+src_install() {
+       insinto "${dir}"
+       doins -r base || die "doins -r base failed"
+       doins ChangeLog COPYING manual.pdf || die "doins failed"
+
+       # The executables must be in the same tree as the game data
+       exeinto "${dir}"
+       if install_client ; then
+               # Install client
+               newexe ${MY_PN}.x86 ${MY_PN}.bin \
+                       || die "newexe ${MY_PN}.x86 failed"
+               doicon ${MY_PN}.xpm || die "doicon failed"
+               games_make_wrapper ${MY_PN} ./${MY_PN}.bin "${dir}"
+               make_desktop_entry ${MY_PN} "Tremulous" ${MY_PN}.xpm
+       fi
+
+       if use dedicated ; then
+               # Install server
+               newexe tremded.x86 ${MY_PN}-ded.bin \
+                       || die "newexe tremded.x86 failed"
+               games_make_wrapper ${MY_PN}-ded ./${MY_PN}-ded.bin "${dir}"
+       fi
+
+       prepgamesdirs
+}
+
+pkg_postinst() {
+       games_pkg_postinst
+
+       elog "Read instructions:  http://tremulous.net/manual/"
+       elog "or:  ${dir}/manual.pdf"
+       echo
+}
diff --git a/games-fps/tremulous/ChangeLog b/games-fps/tremulous/ChangeLog
new file mode 100644 (file)
index 0000000..5189a62
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for games-fps/tremulous
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/tremulous/ChangeLog,v 1.1 2006/09/06 22:19:45 wolf31o2 Exp $
+
+*tremulous-1.1.0 (06 Sep 2006)
+
+  06 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+  +tremulous-1.1.0.ebuild:
+  Initial import. Original ebuild by Paul Bredbury <brebs@sent.com>. Edited by
+  Tristan Heaven <tristanheaven@gmail.com>. Closing bug #128370.
+
diff --git a/games-fps/tremulous/Manifest b/games-fps/tremulous/Manifest
new file mode 100644 (file)
index 0000000..dd8bfdd
--- /dev/null
@@ -0,0 +1,16 @@
+DIST tremulous-1.1.0.zip 105821907 RMD160 36d25fee8ee6b348b1045ab027ab6733aef77a1d SHA1 39d820cc50eda1eff58917158bb0ec68b62f633c SHA256 c7bb66f55abc88932edee16c253e5d37f90dded2ce29cf6cb15ad4f78e378987
+EBUILD tremulous-1.1.0.ebuild 2087 RMD160 7a346f758cb6bb2fa9e02fec4fbc7b48edd7871b SHA1 6b174c81750607eb4dd4493e8ec139868b0164cb SHA256 e72d0453737247e24150fac0a001a1dd364d8fdb830631060980a0663bebb981
+MD5 5b4ddc2389d26f336e534472067357fb tremulous-1.1.0.ebuild 2087
+RMD160 7a346f758cb6bb2fa9e02fec4fbc7b48edd7871b tremulous-1.1.0.ebuild 2087
+SHA256 e72d0453737247e24150fac0a001a1dd364d8fdb830631060980a0663bebb981 tremulous-1.1.0.ebuild 2087
+MISC ChangeLog 393 RMD160 d1cbff980f6d822f2db4d803f77f37255faef7b3 SHA1 774f63e2c3ce1be4e7de55b3d7bdc9bc2c8b4eee SHA256 f968206a4abacde085823eb11986a4afb785a5b65faa22033d808d8d8ed30f2c
+MD5 d0484eb0958f175c908db8938932df3f ChangeLog 393
+RMD160 d1cbff980f6d822f2db4d803f77f37255faef7b3 ChangeLog 393
+SHA256 f968206a4abacde085823eb11986a4afb785a5b65faa22033d808d8d8ed30f2c ChangeLog 393
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
+SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158
+MD5 b20f67e86d7888db5aad44273ae6532a files/digest-tremulous-1.1.0 247
+RMD160 5f606ea66d8584939f64cbcd3e2439cd74d887ac files/digest-tremulous-1.1.0 247
+SHA256 e72fd29e6a2a877b17769e96c97b780f761acaf68876b9047e0f3b69e52e8bb2 files/digest-tremulous-1.1.0 247
diff --git a/games-fps/tremulous/files/digest-tremulous-1.1.0 b/games-fps/tremulous/files/digest-tremulous-1.1.0
new file mode 100644 (file)
index 0000000..624ad9d
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 3df5f7565571fb9524656308347bce1b tremulous-1.1.0.zip 105821907
+RMD160 36d25fee8ee6b348b1045ab027ab6733aef77a1d tremulous-1.1.0.zip 105821907
+SHA256 c7bb66f55abc88932edee16c253e5d37f90dded2ce29cf6cb15ad4f78e378987 tremulous-1.1.0.zip 105821907
diff --git a/games-fps/tremulous/metadata.xml b/games-fps/tremulous/metadata.xml
new file mode 100644 (file)
index 0000000..d3c2cc9
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-fps/tremulous/tremulous-1.1.0.ebuild b/games-fps/tremulous/tremulous-1.1.0.ebuild
new file mode 100644 (file)
index 0000000..2f68f05
--- /dev/null
@@ -0,0 +1,96 @@
+# Copyright 1999-2006 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.ebuild,v 1.1 2006/09/06 22:19:45 wolf31o2 Exp $
+
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="Team-based aliens vs humans FPS with buildable structures"
+HOMEPAGE="http://tremulous.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip
+       http://0day.icculus.org/mirrors/${PN}/${P}.zip
+       ftp://ftp.wireplay.co.uk/pub/quake3arena/mods/${PN}/${P}.zip"
+
+LICENSE="GPL-2
+       CCPL-Attribution-ShareAlike-2.5"
+SLOT="0"
+KEYWORDS="~amd64 ~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 )
+               virtual/x11 )"
+RDEPEND="opengl? ( ${UIDEPEND} )
+       !opengl? ( !dedicated? ( ${UIDEPEND} ) )
+       !games-fps/tremulous-bin"
+DEPEND="${RDEPEND}
+       app-arch/unzip"
+
+S=${WORKDIR}/${PN}/${P}-src
+
+pkg_setup() {
+       games_pkg_setup
+
+       if use amd64 ; then
+               ewarn "emerge games-fps/tremulous-bin instead for better performance."
+               echo
+       fi
+}
+
+src_unpack() {
+       unpack ${A}
+       cd ${PN}
+
+       unpack ./${P}-src.tar.gz
+}
+
+src_compile() {
+       buildit() { use $1 && echo 1 || echo 0 ; }
+
+       local build_client=1
+       if use dedicated && ! use opengl ; then
+               build_client=0
+       fi
+
+       emake \
+               BUILD_CLIENT=${build_client} \
+               BUILD_SERVER=$(buildit dedicated) \
+               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
+
+       local bindir=build/release-linux-${ARCH}
+
+       if use opengl || ! use dedicated ; then
+               newgamesbin ${bindir}/${PN}.${ARCH} ${PN} \
+                       || die "newgamesbin client failed"
+               doicon misc/${PN}.xpm
+               make_desktop_entry ${PN} Tremulous ${PN}.xpm
+       fi
+
+       if use dedicated ; then
+               newgamesbin ${bindir}/tremded.${ARCH} ${PN}-ded \
+                       || die "newgamesbin ded failed"
+       fi
+
+       prepgamesdirs
+}