summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/qudos')
-rw-r--r--games-fps/qudos/ChangeLog12
-rw-r--r--games-fps/qudos/Manifest24
-rw-r--r--games-fps/qudos/files/digest-qudos-0.40.16
-rw-r--r--games-fps/qudos/files/digest-qudos-99991
-rw-r--r--games-fps/qudos/metadata.xml5
-rw-r--r--games-fps/qudos/qudos-0.40.1.ebuild194
-rw-r--r--games-fps/qudos/qudos-9999.ebuild193
7 files changed, 435 insertions, 0 deletions
diff --git a/games-fps/qudos/ChangeLog b/games-fps/qudos/ChangeLog
new file mode 100644
index 000000000000..7eaff710df75
--- /dev/null
+++ b/games-fps/qudos/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for games-fps/qudos
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/qudos/ChangeLog,v 1.1 2006/06/27 21:27:51 wolf31o2 Exp $
+
+*qudos-9999 (27 Jun 2006)
+*qudos-0.40.1 (27 Jun 2006)
+
+ 27 Jun 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +qudos-0.40.1.ebuild, +qudos-9999.ebuild:
+ Initial import. Ebuilds by Paul Bredbury <brebs@sent.com>. Closing bug
+ #137520.
+
diff --git a/games-fps/qudos/Manifest b/games-fps/qudos/Manifest
new file mode 100644
index 000000000000..292d412e8b1e
--- /dev/null
+++ b/games-fps/qudos/Manifest
@@ -0,0 +1,24 @@
+DIST QuDos-0.40.1-src.tar.bz2 2031636 RMD160 998c9ff2f6ee702ed391946afd2924081cdb6976 SHA1 008ee5df6c0d3a1ed475ab2b373013970a570300 SHA256 90d8dbbbe4e006b4233b9c8c20bc3da5c240dde8fdf17ccf43ca533d296aa21a
+DIST QuDos-0.40.1.pk3 5253128 RMD160 21a2643300126753ae2a5f07597807e6f5a2a549 SHA1 982f91d17f369754906465bfe96bb2395cfc7f3f SHA256 c02e0df50785d5b360ec5435e2fd3d31b337f28f676b7af141a8e2664f518f1c
+EBUILD qudos-0.40.1.ebuild 4675 RMD160 e02a1f7a1bee2ec66b952a936a0950302ee3e8ab SHA1 2764b600cd1deccaf612ef98f5802b2ea7e2019a SHA256 441b15c635395897868700c2f6946828fc37f0665176912b67b638de87435b93
+MD5 2b70b94982f4f903817ef524ee399880 qudos-0.40.1.ebuild 4675
+RMD160 e02a1f7a1bee2ec66b952a936a0950302ee3e8ab qudos-0.40.1.ebuild 4675
+SHA256 441b15c635395897868700c2f6946828fc37f0665176912b67b638de87435b93 qudos-0.40.1.ebuild 4675
+EBUILD qudos-9999.ebuild 4500 RMD160 f1c4251e95ca8863f898864e35dfaeec16db60f9 SHA1 53cb3b283c50b284d4559131d216d6619d07c914 SHA256 62edaca9fcb4327c889340973dcd4ad8112e8b42d8657e8a670d72dc4dd68143
+MD5 eebfceb2d5a26a4546882d8767206bce qudos-9999.ebuild 4500
+RMD160 f1c4251e95ca8863f898864e35dfaeec16db60f9 qudos-9999.ebuild 4500
+SHA256 62edaca9fcb4327c889340973dcd4ad8112e8b42d8657e8a670d72dc4dd68143 qudos-9999.ebuild 4500
+MISC ChangeLog 369 RMD160 60c066149f3e1689a6d84f4782b38e9f4825d7ff SHA1 2675f585c053d6e33bec473ab063c44aee89d728 SHA256 d389990c15b775cfaf415e97a3d35ef311b150431e65274b314273e0e699eefe
+MD5 bb89745030d29d326ab479b756d96cf5 ChangeLog 369
+RMD160 60c066149f3e1689a6d84f4782b38e9f4825d7ff ChangeLog 369
+SHA256 d389990c15b775cfaf415e97a3d35ef311b150431e65274b314273e0e699eefe ChangeLog 369
+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 3119f500db452755c2eccf04ee6137ee files/digest-qudos-0.40.1 488
+RMD160 63d6ee0c4111f6f23a714e82c90fbc02b672ea34 files/digest-qudos-0.40.1 488
+SHA256 37fd6628223c186420b2518ea6ab681bc4655de37fc4cf8dc651be5713d5676c files/digest-qudos-0.40.1 488
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-qudos-9999 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-qudos-9999 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-qudos-9999 1
diff --git a/games-fps/qudos/files/digest-qudos-0.40.1 b/games-fps/qudos/files/digest-qudos-0.40.1
new file mode 100644
index 000000000000..36a5005e7641
--- /dev/null
+++ b/games-fps/qudos/files/digest-qudos-0.40.1
@@ -0,0 +1,6 @@
+MD5 1a9006817e0df5cde238704f75597dc1 QuDos-0.40.1-src.tar.bz2 2031636
+RMD160 998c9ff2f6ee702ed391946afd2924081cdb6976 QuDos-0.40.1-src.tar.bz2 2031636
+SHA256 90d8dbbbe4e006b4233b9c8c20bc3da5c240dde8fdf17ccf43ca533d296aa21a QuDos-0.40.1-src.tar.bz2 2031636
+MD5 e21a824f08a653f116a3c336fd340cee QuDos-0.40.1.pk3 5253128
+RMD160 21a2643300126753ae2a5f07597807e6f5a2a549 QuDos-0.40.1.pk3 5253128
+SHA256 c02e0df50785d5b360ec5435e2fd3d31b337f28f676b7af141a8e2664f518f1c QuDos-0.40.1.pk3 5253128
diff --git a/games-fps/qudos/files/digest-qudos-9999 b/games-fps/qudos/files/digest-qudos-9999
new file mode 100644
index 000000000000..8b137891791f
--- /dev/null
+++ b/games-fps/qudos/files/digest-qudos-9999
@@ -0,0 +1 @@
+
diff --git a/games-fps/qudos/metadata.xml b/games-fps/qudos/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-fps/qudos/metadata.xml
@@ -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/qudos/qudos-0.40.1.ebuild b/games-fps/qudos/qudos-0.40.1.ebuild
new file mode 100644
index 000000000000..a5f3570fe351
--- /dev/null
+++ b/games-fps/qudos/qudos-0.40.1.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/qudos/qudos-0.40.1.ebuild,v 1.1 2006/06/27 21:27:51 wolf31o2 Exp $
+
+inherit eutils toolchain-funcs games
+
+FILE_STEM="QuDos-${PV}-src"
+PK3_FILE="QuDos-${PV}.pk3"
+MY_PN="quake2"
+
+DESCRIPTION="Enhanced Quake 2 engine"
+HOMEPAGE="http://qudos.quakedev.com/"
+SRC_URI="http://qudos.quakedev.com/linux/${MY_PN}/engines/QuDos/${FILE_STEM}.tar.bz2
+ http://qudos.quakedev.com/linux/${MY_PN}/engines/QuDos/${PK3_FILE}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="alsa debug dedicated demo dga ipv6 joystick mods opengl qmax oss sdl textures xmms"
+
+UIDEPEND="alsa? ( media-libs/alsa-lib )
+ opengl? (
+ virtual/opengl
+ virtual/glu )
+ sdl? ( media-libs/libsdl )
+ media-libs/jpeg
+ media-libs/libogg
+ media-libs/libpng
+ media-libs/libvorbis
+ || (
+ (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm )
+ virtual/x11 )"
+COMMON="${UIDEPEND}
+ xmms? ( media-sound/xmms )"
+RDEPEND="${COMMON}
+ cdinstall? ( games-fps/quake2-data )
+ demo? ( games-fps/quake2-demodata )
+ textures? ( games-fps/quake2-textures )"
+DEPEND="${COMMON}"
+
+S=${WORKDIR}/${FILE_STEM}
+dir=${GAMES_DATADIR}/${MY_PN}
+libdir=${GAMES_LIBDIR}/${PN}
+
+default_client() {
+ if use opengl || use sdl || ! use dedicated ; then
+ # Build default client
+ return 0
+ fi
+ return 1
+}
+
+pkg_setup() {
+ games_pkg_setup
+
+ local alert_user
+
+ if ! use qmax && $( use opengl || use sdl ) ; then
+ einfo "The 'qmax' graphical improvements are recommended."
+ echo
+ alert_user=y
+ fi
+
+ if use debug ; then
+ ewarn "The 'debug' USE flag may cause compilation to fail with:"
+ ewarn
+ ewarn "src/qcommon/cmd.c:364: warning: dereferencing type-punned"
+ ewarn "pointer will break strict-aliasing rules."
+ echo
+ alert_user=y
+ fi
+
+ # Determine the default sound driver, in order of preference
+ # snd_drv is not a local variable
+ snd_drv=""
+ [[ -z "${snd_drv}" ]] && use oss && snd_drv="oss"
+ [[ -z "${snd_drv}" ]] && use sdl && snd_drv="sdl"
+ [[ -z "${snd_drv}" ]] && use alsa && snd_drv="alsa"
+ # Default if nothing else chosen
+ [[ -z "${snd_drv}" ]] && snd_drv="oss"
+
+ if default_client ; then
+ einfo "Selected the ${snd_drv} sound driver as the default."
+ echo
+ if [[ "${snd_drv}" = "alsa" ]] ; then
+ ewarn "The ALSA sound driver for this game is incomplete."
+ # OSS is the default sound driver in the Makefile
+ ewarn "The 'oss' USE flag is recommended instead."
+ echo
+ alert_user=y
+ fi
+ fi
+
+ if [[ -n "${alert_user}" ]] ; then
+ ebeep
+ epause
+ fi
+}
+
+src_unpack() {
+ unpack "${FILE_STEM}.tar.bz2"
+ cd "${S}"
+
+ rm docs/gnu.txt
+
+ # Change default sound driver and its location
+ sed -i src/client/snd_dma.c \
+ -e "s:\"oss\":\"${snd_drv}\":" \
+ -e "s:\"\./snd:\"${libdir}/snd:" \
+ || die "sed snd_dma.c failed"
+}
+
+src_compile() {
+ yesno() { useq $1 && echo YES || echo NO ; }
+
+ local client="YES"
+ default_client || client="NO"
+
+ local type="release"
+ use debug && type="debug"
+
+ emake -j1 \
+ BUILD_QUAKE2="${client}" \
+ BUILD_DEDICATED=$(yesno dedicated) \
+ BUILD_GLX=$(yesno opengl) \
+ BUILD_SDLGL=$(yesno sdl) \
+ BUILD_ALSA_SND=$(yesno alsa) \
+ BUILD_SDL_SND=$(yesno sdl) \
+ BUILD_OSS_SND=$(yesno oss) \
+ WITH_XMMS=$(yesno xmms) \
+ WITH_DGA_MOUSE=$(yesno dga) \
+ WITH_JOYSTICK=$(yesno joystick) \
+ TYPE="${type}" \
+ DATADIR="${dir}" \
+ LOCALBASE=/usr \
+ LIBDIR="${GAMES_LIBDIR}/${PN}" \
+ WITH_QMAX=$(yesno qmax) \
+ BUILD_3ZB2=$(yesno mods) \
+ BUILD_CTF=$(yesno mods) \
+ BUILD_JABOT=$(yesno mods) \
+ BUILD_ROGUE=$(yesno mods) \
+ BUILD_XATRIX=$(yesno mods) \
+ BUILD_ZAERO=$(yesno mods) \
+ WITH_BOTS=$(yesno mods) \
+ HAVE_IPV6=$(yesno ipv6) \
+ CC="$(tc-getCC)" \
+ WITH_X86_ASM=NO \
+ WITH_DATADIR=YES \
+ WITH_LIBDIR=YES \
+ BUILD_DEBUG_DIR=release \
+ BUILD_RELEASE_DIR=release \
+ || die "emake failed"
+}
+
+src_install() {
+ if default_client ; then
+ newgamesbin ${MY_PN}/QuDos ${PN} \
+ || die "newgamesbin QuDos failed"
+ # Change from gif to png in next version?
+ newicon docs/q2_orig/quake2.gif ${PN}.gif \
+ || die "newicon failed"
+ make_desktop_entry ${PN} "QuDos" ${PN}.gif
+ fi
+
+ if use dedicated ; then
+ newgamesbin ${MY_PN}/QuDos-ded ${PN}-ded \
+ || die "newgamesbin QuDos-ded failed"
+ fi
+
+ insinto "${libdir}"
+ doins -r ${MY_PN}/* || die "doins libs failed"
+ rm "${D}/${libdir}"/QuDos
+
+ insinto "${libdir}"/baseq2
+ newins "${DISTDIR}/${PK3_FILE}" qudos.pk3 || die "doins ${PK3_FILE} failed"
+
+ dodoc $(find docs -name \*.txt) docs/q2_orig/README*
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if use demo && ! built_with_use "games-fps/quake2-demodata" symlink ; then
+ ewarn "To play the Quake 2 demo,"
+ ewarn "emerge games-fps/quake2-demodata with the 'symlink' USE flag."
+ echo
+ fi
+}
diff --git a/games-fps/qudos/qudos-9999.ebuild b/games-fps/qudos/qudos-9999.ebuild
new file mode 100644
index 000000000000..73dad4ec5595
--- /dev/null
+++ b/games-fps/qudos/qudos-9999.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/qudos/qudos-9999.ebuild,v 1.1 2006/06/27 21:27:51 wolf31o2 Exp $
+
+inherit eutils subversion toolchain-funcs games
+
+MY_PN="quake2"
+
+DESCRIPTION="Enhanced Quake 2 engine"
+HOMEPAGE="http://qudos.quakedev.com/"
+
+# View at http://svn.quakedev.com/viewcvs.cgi/qudos/trunk/
+ESVN_REPO_URI="svn://svn.quakedev.com/${PN}/trunk"
+
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-*"
+IUSE="alsa debug dedicated demo dga ipv6 joystick mods opengl qmax oss sdl textures xmms"
+
+UIDEPEND="alsa? ( media-libs/alsa-lib )
+ opengl? (
+ virtual/opengl
+ virtual/glu )
+ sdl? ( media-libs/libsdl )
+ media-libs/jpeg
+ media-libs/libogg
+ media-libs/libpng
+ media-libs/libvorbis
+ || (
+ (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm )
+ virtual/x11 )"
+COMMON="${UIDEPEND}
+ xmms? ( media-sound/xmms )"
+RDEPEND="${COMMON}
+ cdinstall? ( games-fps/quake2-data )
+ demo? ( games-fps/quake2-demodata )
+ textures? ( games-fps/quake2-textures )"
+DEPEND="${COMMON}"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/${MY_PN}
+libdir=${GAMES_LIBDIR}/${PN}
+
+default_client() {
+ if use opengl || use sdl || ! use dedicated ; then
+ # Build default client
+ return 0
+ fi
+ return 1
+}
+
+pkg_setup() {
+ games_pkg_setup
+
+ local alert_user
+
+ if ! use qmax && $( use opengl || use sdl ) ; then
+ einfo "The 'qmax' graphical improvements are recommended."
+ echo
+ alert_user=y
+ fi
+
+ if use debug ; then
+ ewarn "The 'debug' USE flag may cause compilation to fail with:"
+ ewarn
+ ewarn "src/qcommon/cmd.c:364: warning: dereferencing type-punned"
+ ewarn "pointer will break strict-aliasing rules."
+ echo
+ alert_user=y
+ fi
+
+ # Determine the default sound driver, in order of preference
+ # snd_drv is not a local variable
+ snd_drv=""
+ [[ -z "${snd_drv}" ]] && use oss && snd_drv="oss"
+ [[ -z "${snd_drv}" ]] && use sdl && snd_drv="sdl"
+ [[ -z "${snd_drv}" ]] && use alsa && snd_drv="alsa"
+ # Default if nothing else chosen
+ [[ -z "${snd_drv}" ]] && snd_drv="oss"
+
+ if default_client ; then
+ einfo "Selected the ${snd_drv} sound driver."
+ echo
+ if [[ "${snd_drv}" = "alsa" ]] ; then
+ ewarn "The ALSA sound driver for this game is incomplete."
+ # OSS is the default sound driver in the Makefile
+ ewarn "The 'oss' USE flag is recommended instead."
+ echo
+ alert_user=y
+ fi
+ fi
+
+ if [[ -n "${alert_user}" ]] ; then
+ ebeep
+ epause
+ fi
+}
+
+src_unpack() {
+ subversion_src_unpack
+
+ rm docs/gnu.txt
+
+ # Change default sound driver and its location
+ sed -i src/client/snd_dma.c \
+ -e "s:\"oss\":\"${snd_drv}\":" \
+ -e "s:\"\./snd:\"${libdir}/snd:" \
+ || die "sed snd_dma.c failed"
+}
+
+src_compile() {
+ yesno() { useq $1 && echo YES || echo NO ; }
+
+ local client="YES"
+ default_client || client="NO"
+
+ local type="release"
+ use debug && type="debug"
+
+ emake -j1 \
+ BUILD_QUAKE2="${client}" \
+ BUILD_DEDICATED=$(yesno dedicated) \
+ BUILD_GLX=$(yesno opengl) \
+ BUILD_SDLGL=$(yesno sdl) \
+ BUILD_ALSA_SND=$(yesno alsa) \
+ BUILD_SDL_SND=$(yesno sdl) \
+ BUILD_OSS_SND=$(yesno oss) \
+ WITH_XMMS=$(yesno xmms) \
+ WITH_DGA_MOUSE=$(yesno dga) \
+ WITH_JOYSTICK=$(yesno joystick) \
+ TYPE="${type}" \
+ DATADIR="${dir}" \
+ LOCALBASE=/usr \
+ LIBDIR="${GAMES_LIBDIR}/${PN}" \
+ WITH_QMAX=$(yesno qmax) \
+ BUILD_3ZB2=$(yesno mods) \
+ BUILD_CTF=$(yesno mods) \
+ BUILD_JABOT=$(yesno mods) \
+ BUILD_ROGUE=$(yesno mods) \
+ BUILD_XATRIX=$(yesno mods) \
+ BUILD_ZAERO=$(yesno mods) \
+ WITH_BOTS=$(yesno mods) \
+ HAVE_IPV6=$(yesno ipv6) \
+ CC="$(tc-getCC)" \
+ WITH_X86_ASM=NO \
+ WITH_DATADIR=YES \
+ WITH_LIBDIR=YES \
+ BUILD_DEBUG_DIR=release \
+ BUILD_RELEASE_DIR=release \
+ || die "emake failed"
+}
+
+src_install() {
+ if default_client ; then
+ newgamesbin ${MY_PN}/QuDos ${PN} \
+ || die "newgamesbin QuDos failed"
+ # This icon is not available in the 0.40.1 tarball
+ newicon src/unix/Q2.png ${PN}.png
+ make_desktop_entry ${PN} "QuDos" ${PN}.png
+ fi
+
+ if use dedicated ; then
+ newgamesbin ${MY_PN}/QuDos-ded ${PN}-ded \
+ || die "newgamesbin QuDos-ded failed"
+ fi
+
+ insinto "${libdir}"
+ doins -r ${MY_PN}/* || die "doins libs failed"
+ rm "${D}/${libdir}"/QuDos
+
+ insinto "${libdir}"/baseq2
+ doins data/qudos.pk3 || die "doins qudos.pk3 failed"
+
+ dodoc $(find docs -name \*.txt) docs/q2_orig/README*
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if use demo && ! built_with_use "games-fps/quake2-demodata" symlink ; then
+ ewarn "To play the Quake 2 demo,"
+ ewarn "emerge games-fps/quake2-demodata with the 'symlink' USE flag."
+ echo
+ fi
+}