summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-06-27 21:27:51 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-06-27 21:27:51 +0000
commitfa81ea89ce589f014ffd1b02cd45332d65879e56 (patch)
tree1235bd24ef44bf3eebfbb9ec9b220dc336070884 /games-fps
parentAdded local USE flags for games-fps/qudos. (diff)
downloadhistorical-fa81ea89ce589f014ffd1b02cd45332d65879e56.tar.gz
historical-fa81ea89ce589f014ffd1b02cd45332d65879e56.tar.bz2
historical-fa81ea89ce589f014ffd1b02cd45332d65879e56.zip
Initial import. Ebuilds by Paul Bredbury <brebs@sent.com>. Closing bug #137520.
Package-Manager: portage-2.1.1_pre1-r2
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/qudos/ChangeLog12
-rw-r--r--games-fps/qudos/Manifest34
-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, 445 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..c84e1b8d6683
--- /dev/null
+++ b/games-fps/qudos/Manifest
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+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 4774 RMD160 6f983ce012c1748104e9597f5ff5cdeff85beaea SHA1 706b1eec099041756751f7615d920ff31405ba78 SHA256 a237fb14616112f25cce2a1c0992b1d22c0e7cd90dc1591c736384549b4ca752
+MD5 172bec5ba8cd264ed74517981dc59ac7 qudos-0.40.1.ebuild 4774
+RMD160 6f983ce012c1748104e9597f5ff5cdeff85beaea qudos-0.40.1.ebuild 4774
+SHA256 a237fb14616112f25cce2a1c0992b1d22c0e7cd90dc1591c736384549b4ca752 qudos-0.40.1.ebuild 4774
+EBUILD qudos-9999.ebuild 4597 RMD160 00229455a1d2e0dbc72ab43d3910d66111b7ab48 SHA1 573e5c0c5ae8533080d6b57f5e472ca16b5907a4 SHA256 315b6a84e00c40e963adc90ddcba8366d7a1985591d09511a6189d1e23a1a7c1
+MD5 9d9d4fe5475d9b7704c02f9849c45f06 qudos-9999.ebuild 4597
+RMD160 00229455a1d2e0dbc72ab43d3910d66111b7ab48 qudos-9999.ebuild 4597
+SHA256 315b6a84e00c40e963adc90ddcba8366d7a1985591d09511a6189d1e23a1a7c1 qudos-9999.ebuild 4597
+MISC ChangeLog 458 RMD160 778212cf29baf8a1ffbbb79d5d75172583d485e6 SHA1 a4b298fba05cfd0c65d4a32a1fa071ce026b32f6 SHA256 4df7abefdf669c2f123da236a7640150fdfa0f6eebc169765cf45b1fe9b3aeff
+MD5 be96dea02c6db744d945498b4df7ab55 ChangeLog 458
+RMD160 778212cf29baf8a1ffbbb79d5d75172583d485e6 ChangeLog 458
+SHA256 4df7abefdf669c2f123da236a7640150fdfa0f6eebc169765cf45b1fe9b3aeff ChangeLog 458
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.3 (GNU/Linux)
+
+iD8DBQFEoaLckT4lNIS36YERApqBAKC7cVFmdauUk056ldZqzkoOvJ+POACfbo4M
+DLvD1F1FYIEi4vBfG1VKtEk=
+=Ik86
+-----END PGP SIGNATURE-----
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
+}