ChangeLog

# ChangeLog for games-fps/qudos
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/qudos/ChangeLog,v 1.8 2008/02/29 19:14:34 carlo Exp $

29 Feb 2008; Carsten Lohrke qudos-9999.ebuild:
Remove icon extension from desktop entry to match Icon Theme Specification.

24 Jun 2007; Piotr Jaroszyński qudos-9999.ebuild:
(QA) Don't use KEYWORDS="-*". bug #160519.

12 Mar 2007; Marius Mauch qudos-0.40.1.ebuild,
qudos-9999.ebuild:
Replacing einfo with elog

05 Dec 2006; Chris Gianelloni qudos-0.40.1.ebuild,
qudos-9999.ebuild:
Removing old virtual/x11 dependency.

13 Nov 2006; Diego Pettenò qudos-0.40.1.ebuild,
qudos-9999.ebuild:
Remove xmms useflag.

19 Oct 2006; qudos-0.40.1.ebuild:
Added ~amd64 keyword. Bug #140726 by Michael Boone

07 Jul 2006; Chris Gianelloni qudos-0.40.1.ebuild,
qudos-9999.ebuild:
Added cdinstall to IUSE and closing bug #139132.

*qudos-9999 (27 Jun 2006)
*qudos-0.40.1 (27 Jun 2006)

27 Jun 2006; Chris Gianelloni +metadata.xml,
+qudos-0.40.1.ebuild, +qudos-9999.ebuild:
Initial import. Ebuilds by Paul Bredbury . Closing bug
#137520.

Manifest

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 4731 RMD160 8861e1d751b688fd7546393ac75072f6089a34b7 SHA1 ffb82a04816ba20d24df3c8794c5e9c2f946d54e SHA256 2ccf0bffad9e30469e5a06ab83a189f63128bb1b397cbc0f200f63653147a3aa
EBUILD qudos-9999.ebuild 4537 RMD160 69fed4438498b97c1887d3b8ef67469d55a15adf SHA1 ba99be495b9a9e34bc5f248817ea639719aa8e2f SHA256 94f5bc987fd239bf1e4c95b9cfc8f2052805553e8f31cb299feda08102140517
MISC ChangeLog 1352 RMD160 7ce9c34e26c13d6bf8c8b512c954c9125da73130 SHA1 af50bafbbf4c74bbaf753da048ee363a1da2c5cc SHA256 65cc9585ca8b1059c75b7e419b3099e0c52a848b27f8696586b6b6c27f2dbdda
MISC metadata.xml 488 RMD160 1a6bb96dde922755d33b65b721e79d4d8dab309b SHA1 b0435bdea92b49c65f71ff16b02795716ae85711 SHA256 8f2ca78e00c4b7f92c729835efb4100e2756fe88a362f7c4410388b28ff2d60a

metadata.xml




games

Install the demo files (quake2-demodata) and configure for use
Build support for the quake2 mission packs
Build the pretty version (quake max)
Install the enhanced textures (quake2-textures)

qudos-0.40.1.ebuild

# Copyright 1999-2007 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.9 2007/11/20 02:14:29 mr_bones_ 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="~amd64 ~x86"
IUSE="alsa cdinstall debug dedicated demo dga ipv6 joystick mods opengl qmax oss sdl textures"

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"
RDEPEND="${UIDEPEND}
cdinstall? ( games-fps/quake2-data )
demo? ( games-fps/quake2-demodata )
textures? ( games-fps/quake2-textures )"
DEPEND="${UIDEPEND}"

S=${WORKDIR}/${FILE_STEM}
dir=${GAMES_DATADIR}/${MY_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
elog "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
elog "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:\"$(games_get_libdir)/${PN}/snd:" \
|| die "sed snd_dma.c failed"
}

src_compile() {
yesno() { use $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=NO \
WITH_DGA_MOUSE=$(yesno dga) \
WITH_JOYSTICK=$(yesno joystick) \
TYPE="${type}" \
DATADIR="${dir}" \
LOCALBASE=/usr \
LIBDIR="$(games_get_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 "$(games_get_libdir)"/${PN}
doins -r ${MY_PN}/* || die "doins libs failed"
rm "${D}/$(games_get_libdir)"/${PN}/QuDos

insinto "$(games_get_libdir)"/${PN}/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
}

qudos-9999.ebuild

# Copyright 1999-2008 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.9 2008/02/29 19:14:34 carlo 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 cdinstall debug dedicated demo dga ipv6 joystick mods opengl qmax oss sdl textures"

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"
RDEPEND="${UIDEPEND}
cdinstall? ( games-fps/quake2-data )
demo? ( games-fps/quake2-demodata )
textures? ( games-fps/quake2-textures )"
DEPEND="${UIDEPEND}"

S=${WORKDIR}
dir=${GAMES_DATADIR}/${MY_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
elog "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
elog "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:\"$(games_get_libdir)/${PN}/snd:" \
|| die "sed snd_dma.c failed"
}

src_compile() {
yesno() { use $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=NO \
WITH_DGA_MOUSE=$(yesno dga) \
WITH_JOYSTICK=$(yesno joystick) \
TYPE="${type}" \
DATADIR="${dir}" \
LOCALBASE=/usr \
LIBDIR="$(games_get_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}
fi

if use dedicated ; then
newgamesbin ${MY_PN}/QuDos-ded ${PN}-ded \
|| die "newgamesbin QuDos-ded failed"
fi

insinto "$(games_get_libdir)"/${PN}
doins -r ${MY_PN}/* || die "doins libs failed"
rm "${D}/$(games_get_libdir)"/${PN}/QuDos

insinto "$(games_get_libdir)"/${PN}/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
}