summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/games.eclass257
-rw-r--r--games-arcade/marbleblast-demo/ChangeLog30
-rw-r--r--games-arcade/marbleblast-demo/Manifest4
-rw-r--r--games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild44
-rw-r--r--games-arcade/marbleblast-demo/metadata.xml28
-rw-r--r--games-fps/etqw-bin/ChangeLog8
-rw-r--r--games-fps/etqw-bin/Manifest4
-rw-r--r--games-fps/etqw-bin/etqw-bin-1.2.5.ebuild117
-rw-r--r--games-fps/etqw-bin/metadata.xml9
-rw-r--r--games-fps/etqw-data/ChangeLog8
-rw-r--r--games-fps/etqw-data/Manifest3
-rw-r--r--games-fps/etqw-data/etqw-data-1.0.ebuild58
-rw-r--r--games-fps/etqw-data/metadata.xml9
-rw-r--r--games-roguelike/nethack/ChangeLog208
-rw-r--r--games-roguelike/nethack/Manifest14
-rw-r--r--games-roguelike/nethack/files/3.4.3-GNOME-support.patch28
-rw-r--r--games-roguelike/nethack/files/3.4.3-QT-GNOME-support.patch30
-rw-r--r--games-roguelike/nethack/files/3.4.3-QT-support.patch20
-rw-r--r--games-roguelike/nethack/files/3.4.3-X-support.patch26
-rw-r--r--games-roguelike/nethack/files/3.4.3-bison.patch18
-rw-r--r--games-roguelike/nethack/files/3.4.3-default-options.patch29
-rw-r--r--games-roguelike/nethack/files/3.4.3-gentoo-paths.patch18
-rw-r--r--games-roguelike/nethack/files/3.4.3-macos.patch11
-rw-r--r--games-roguelike/nethack/files/3.4.3-topten-scanf-fix.patch31
-rw-r--r--games-roguelike/nethack/files/dot.nethackrc92
-rw-r--r--games-roguelike/nethack/metadata.xml5
-rw-r--r--games-roguelike/nethack/nethack-3.4.3-r2.ebuild192
-rw-r--r--profiles/categories3
28 files changed, 0 insertions, 1304 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
deleted file mode 100644
index eaa6520..0000000
--- a/eclass/games.eclass
+++ /dev/null
@@ -1,257 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.124 2008/02/15 00:15:51 nyhm Exp $
-
-# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
-#
-# This is the games eclass for standardizing the install of games ...
-# you better have a *good* reason why you're *not* using games.eclass
-# in a games-* ebuild
-
-inherit multilib eutils
-
-EXPORT_FUNCTIONS pkg_preinst pkg_postinst src_compile pkg_setup
-
-[[ -z ${GAME} ]] && GAME=${PN%%-*}
-
-DESCRIPTION="Based on the ${ECLASS} eclass"
-
-export GAMES_PREFIX=${GAMES_PREFIX:-/usr/games}
-export GAMES_PREFIX_OPT=${GAMES_PREFIX_OPT:-/opt}
-export GAMES_DATADIR=${GAMES_DATADIR:-/usr/share/games}
-export GAMES_DATADIR_BASE=${GAMES_DATADIR_BASE:-/usr/share} # some packages auto append 'games'
-export GAMES_SYSCONFDIR=${GAMES_SYSCONFDIR:-/etc/games}
-export GAMES_STATEDIR=${GAMES_STATEDIR:-/var/games}
-export GAMES_LOGDIR=${GAMES_LOGDIR:-/var/log/games}
-export GAMES_BINDIR=${GAMES_BINDIR:-${GAMES_PREFIX}/bin}
-export GAMES_ENVD="90games"
-# if you want to use a different user/group than games.games,
-# just add these two variables to your environment (aka /etc/profile)
-export GAMES_USER=${GAMES_USER:-root}
-export GAMES_USER_DED=${GAMES_USER_DED:-games}
-export GAMES_GROUP=${GAMES_GROUP:-games}
-export GAMES_SCORES_GROUP=${GAMES_SCORES_GROUP:-scores}
-
-games_get_libdir() {
- echo ${GAMES_LIBDIR:-${GAMES_PREFIX}/$(get_libdir)}
-}
-
-egamesconf() {
- econf \
- --prefix="${GAMES_PREFIX}" \
- --libdir="$(games_get_libdir)" \
- --datadir="${GAMES_DATADIR}" \
- --sysconfdir="${GAMES_SYSCONFDIR}" \
- --localstatedir="${GAMES_STATEDIR}" \
- "$@" \
- || die "egamesconf failed"
-}
-
-egamesinstall() {
- ewarn "Don't use egamesinstall, use emake DESTDIR=\"\${D}\" install instead"
- epause 30
- make \
- prefix="${D}${GAMES_PREFIX}" \
- mandir="${D}/usr/share/man" \
- infodir="${D}/usr/share/info" \
- datadir="${D}${GAMES_DATADIR}" \
- sysconfdir="${D}${GAMES_SYSCONFDIR}" \
- localstatedir="${D}${GAMES_STATEDIR}" \
- "$@" install || die "egamesinstall failed"
-}
-
-gameswrapper() {
- # dont want to pollute calling env
- (
- into "${GAMES_PREFIX}"
- cmd=$1
- shift
- ${cmd} "$@"
- )
-}
-
-dogamesbin() { gameswrapper ${FUNCNAME/games} "$@"; }
-dogamessbin() { gameswrapper ${FUNCNAME/games} "$@"; }
-dogameslib() { gameswrapper ${FUNCNAME/games} "$@"; }
-dogameslib.a() { gameswrapper ${FUNCNAME/games} "$@"; }
-dogameslib.so() { gameswrapper ${FUNCNAME/games} "$@"; }
-newgamesbin() { gameswrapper ${FUNCNAME/games} "$@"; }
-newgamessbin() { gameswrapper ${FUNCNAME/games} "$@"; }
-
-games_make_wrapper() { gameswrapper ${FUNCNAME/games_} "$@"; }
-
-gamesowners() { chown ${GAMES_USER}:${GAMES_GROUP} "$@"; }
-gamesperms() { chmod u+rw,g+r-w,o-rwx "$@"; }
-prepgamesdirs() {
- local dir f perms=750
- for dir in \
- "${GAMES_PREFIX}" "${GAMES_PREFIX_OPT}" "${GAMES_DATADIR}" \
- "${GAMES_SYSCONFDIR}" "${GAMES_STATEDIR}" "$(games_get_libdir)" \
- "${GAMES_BINDIR}" "$@"
- do
- [[ ! -d ${D}/${dir} ]] && continue
- (
- gamesowners -R "${D}/${dir}"
- find "${D}/${dir}" -type d -print0 | xargs -0 chmod ${perms}
- find "${D}/${dir}" -type f -print0 | xargs -0 chmod o-rwx,g+r
- ) &>/dev/null
- f=$(find "${D}/${dir}" -perm +4000 -a -uid 0 2>/dev/null)
- if [[ -n ${f} ]] ; then
- eerror "A game was detected that is setuid root!"
- eerror "${f}"
- die "refusing to merge a setuid root game"
- fi
- done
- [[ -d ${D}/${GAMES_BINDIR} ]] || return 0
- if [[ -n ${GAMES_SCORES_FILES} ]]
- then
-# perms=2775
- for f in ${GAMES_SCORES_FILES}
- do
- GAMES_GROUP=${GAMES_SCORES_GROUP} gamesowners "${D}/${f}"
- done
-# GAMES_GROUP=${GAMES_SCORES_GROUP} gamesowners -R \
-# "${D}/${GAMES_BINDIR}"/*
- fi
- find "${D}/${GAMES_BINDIR}" -maxdepth 1 -type f -exec chmod ${perms} '{}' \;
-}
-
-gamesenv() {
- # As much as I hate doing this, we need to be a bit more flexibility with
- # our library directories.
- local hasit=0 GAMES_LIBDIRS="" GAMES_LIBDIR=$(games_get_libdir)
- if has_multilib_profile ; then
- for libdir in $(get_all_libdirs) ; do
- if [[ ${GAMES_LIBDIR} != ${GAMES_PREFIX}/${libdir} ]] ; then
- GAMES_LIBDIRS="${GAMES_LIBDIRS}:${GAMES_PREFIX}/${libdir}"
- else
- hasit=1
- fi
- done
- fi
- [[ ${hasit} == "1" ]] \
- && GAMES_LIBDIRS=${GAMES_LIBDIRS:1} \
- || GAMES_LIBDIRS="${GAMES_LIBDIR}:${GAMES_LIBDIRS}"
- # Wish we could use doevnd here, but we dont want the env
- # file to be tracked in the CONTENTS of every game
- cat <<-EOF > "${ROOT}"/etc/env.d/${GAMES_ENVD}
- LDPATH="${GAMES_LIBDIRS}"
- PATH="${GAMES_BINDIR}"
- EOF
-}
-
-games_pkg_setup() {
- [[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
-
- # Make sure SDL was built in a certain way
- if [[ -n ${GAMES_USE_SDL} ]] ; then
- if built_with_use -o media-libs/libsdl ${GAMES_USE_SDL} ; then
- eerror "You built libsdl with wrong USE flags."
- eerror "Make sure you rebuild it like this:"
- eerror "USE='-${GAMES_USE_SDL// / -}'"
- die "your libsdl sucks"
- fi
- fi
-
- enewgroup "${GAMES_GROUP}" 35
- [[ ${GAMES_USER} != "root" ]] \
- && enewuser "${GAMES_USER}" 35 -1 "${GAMES_PREFIX}" "${GAMES_GROUP}"
- [[ ${GAMES_USER_DED} != "root" ]] \
- && enewuser "${GAMES_USER_DED}" 36 /bin/bash "${GAMES_PREFIX}" "${GAMES_GROUP}"
- [[ -n ${GAMES_SCORES_FILES} ]] && enewgroup "${GAMES_SCORES_GROUP}"
-
- # Dear portage team, we are so sorry. Lots of love, games team.
- # See Bug #61680
- [[ ${USERLAND} != "GNU" ]] && return 0
- [[ $(getent passwd "${GAMES_USER_DED}" | cut -f7 -d:) == "/bin/false" ]] \
- && usermod -s /bin/bash "${GAMES_USER_DED}"
-}
-
-games_src_compile() {
- [[ -x ./configure ]] && { egamesconf || die "egamesconf failed"; }
- [ -e [Mm]akefile ] && { emake || die "emake failed"; }
-}
-
-games_pkg_preinst() {
- local f
-
- for f in $(find "${D}/${GAMES_STATEDIR}" -type f -printf '%P ' 2>/dev/null) ; do
- if [[ -e ${ROOT}/${GAMES_STATEDIR}/${f} ]] ; then
- cp -p \
- "${ROOT}/${GAMES_STATEDIR}/${f}" \
- "${D}/${GAMES_STATEDIR}/${f}" \
- || die "cp failed"
- # make the date match the rest of the install
- touch "${D}/${GAMES_STATEDIR}/${f}"
- fi
- done
-}
-
-# pkg_postinst function ... create env.d entry and warn about games group
-games_pkg_postinst() {
- gamesenv
- if [[ -z "${GAMES_SHOW_WARNING}" ]] ; then
- ewarn "Remember, in order to play games, you have to"
- ewarn "be in the '${GAMES_GROUP}' group."
- echo
- case ${CHOST} in
- *-darwin*) ewarn "Just run 'niutil -appendprop / /groups/games users <USER>'";;
- *-freebsd*|*-dragonfly*) ewarn "Just run 'pw groupmod ${GAMES_GROUP} -m <USER>'";;
- *) ewarn "Just run 'gpasswd -a <USER> ${GAMES_GROUP}', then have <USER> re-login.";;
- esac
- echo
- einfo "For more info about Gentoo gaming in general, see our website:"
- einfo " http://games.gentoo.org/"
- echo
- fi
-}
-
-# Unpack .uz2 files for UT2003/UT2004
-# $1: directory or file to unpack
-games_ut_unpack() {
- local ut_unpack="$1"
- local f=
-
- if [[ -z ${ut_unpack} ]] ; then
- die "You must provide an argument to games_ut_unpack"
- fi
- if [[ -f ${ut_unpack} ]] ; then
- uz2unpack "${ut_unpack}" "${ut_unpack/.uz2/}" &>/dev/null \
- || die "uncompressing file ${ut_unpack}"
- fi
- if [[ -d ${ut_unpack} ]] ; then
- for f in $(find "${ut_unpack}" -name '*.uz2' -printf '%f ') ; do
- uz2unpack "${ut_unpack}/${f}" "${ut_unpack}/${f/.uz2}" &>/dev/null \
- || die "uncompressing file ${f}"
- rm -f "${ut_unpack}/${f}" || die "deleting compressed file ${f}"
- done
- fi
-}
-
-# Unpacks .umod/.ut2mod/.ut4mod files for UT/UT2003/UT2004
-# Usage: games_umod_unpack $1
-# oh, and don't forget to set 'dir' and 'Ddir'
-games_umod_unpack() {
- local umod=$1
- mkdir -p "${Ddir}"/System
- cp "${dir}"/System/{ucc-bin,{Manifest,Def{ault,User}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int} "${Ddir}"/System
- cd "${Ddir}"/System
- UT_DATA_PATH=${Ddir}/System ./ucc-bin umodunpack -x "${S}/${umod}" -nohomedir &> /dev/null \
- || die "uncompressing file ${umod}"
- rm -f "${Ddir}"/System/{ucc-bin,{Manifest,Def{ault,User},User,UT200{3,4}}.ini,{Engine,Core,zlib,ogg,vorbis}.so,{Engine,Core}.int,ucc.log} &>/dev/null \
- || die "Removing temporary files"
-}
-
-# Link mods created by games-mods.eclass into the GAMES_PREFIX_OPT directories
-# so they can be found by binary versions of the games.
-games_link_mods() {
- if [[ -e ${GAMES_DATADIR}/${GAME} ]] ; then
- cd "${GAMES_DATADIR}/${GAME}"
- for mod in $(find . -type d -printf '%P ') ; do
- if [[ ! -e ${Ddir}/${mod} ]] ; then
- elog "Creating symlink for ${mod}"
- dosym "${GAMES_DATADIR}"/${GAME}/${mod} "${dir}"/${mod} || die
- fi
- done
- fi
-}
diff --git a/games-arcade/marbleblast-demo/ChangeLog b/games-arcade/marbleblast-demo/ChangeLog
deleted file mode 100644
index e3da0d6..0000000
--- a/games-arcade/marbleblast-demo/ChangeLog
+++ /dev/null
@@ -1,30 +0,0 @@
-# ChangeLog for games-arcade/marbleblast-demo
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/marbleblast-demo/ChangeLog,v 1.4 2006/09/19 18:56:41 wolf31o2 Exp $
-
- 19 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org>
- marbleblast-demo-1.3.ebuild:
- Adding strip to RESTRICT for bug #137819.
-
- 13 Apr 2006; Chris Gianelloni <wolf31o2@gentoo.org>
- marbleblast-demo-1.3.ebuild:
- Fixed marbleblastdemo/marbleblast-demo thanks to stupid epkgmove.
-
-*marbleblast-demo-1.3 (13 Apr 2006)
-
- 13 Apr 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
- +marbleblast-demo-1.3.ebuild:
- Moved from games-arcade/marbleblastdemo to games-arcade/marbleblast-demo.
-
- 21 Sep 2005; Chris Gianelloni <wolf31o2@gentoo.org>
- marbleblastdemo-1.3.ebuild:
- Changed check_license to explicitly list license to check.
-
- 11 Aug 2005; Olivier Crête <tester@gentoo.org>
- marbleblastdemo-1.3.ebuild:
- Marked ~amd64, closes bug #102167, thanks to meetra for testing
-
-*marbleblastdemo-1.3 (07 Oct 2003)
-
- 07 Oct 2003; Mike Frysinger <vapier@gentoo.org> :
- Initial import. Ebuild submitted by me.
diff --git a/games-arcade/marbleblast-demo/Manifest b/games-arcade/marbleblast-demo/Manifest
deleted file mode 100644
index 9d801b8..0000000
--- a/games-arcade/marbleblast-demo/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-DIST MarbleBlastDemo-1.3.sh.bin 10800892 RMD160 c2b54e5906c80489ba5202e01225546e036ee72e SHA1 e911a072b17ea828e1dc210d1ab6010742f15615 SHA256 84d547df84ce2fdc82eb0316ff737d4ae1b1bf50ce4541870847b51de6bfd1a4
-EBUILD marbleblast-demo-1.3.ebuild 1090 RMD160 64241af46554cc1e4d8907af538c4f10f8972f5b SHA1 e8e53222965a5fa759c2088fd9a33ab0c14ec906 SHA256 c4a462c00699da12efcb657b90a9a24dcb443aba59187078596e23046f655f24
-MISC ChangeLog 1156 RMD160 aa3c4987f15a70f162bc4de148d7844026645bcc SHA1 f7bf21658b34bb3c27c72c648cd166d3b23b494b SHA256 21f1e2e60e275e14e56ee2e6bb97bf96bd8682bfb360f532379e4b504ad481fb
-MISC metadata.xml 1378 RMD160 35294390c1bdfc0519d080ec213a721980d63e52 SHA1 89bd9f81d99b212f51a42014ee304938be8b4dc7 SHA256 c37cbb7e8b2ebc1664d6f146f552c0342295e4165e66eac4941d12171139f061
diff --git a/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild b/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild
deleted file mode 100644
index c65fd26..0000000
--- a/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild,v 1.4 2006/09/19 18:56:41 wolf31o2 Exp $
-
-inherit eutils games
-
-DESCRIPTION="race marbles through crazy stages"
-HOMEPAGE="http://www.garagegames.com/pg/product/view.php?id=3"
-SRC_URI="ftp://ggdev-1.homelan.com/marbleblast/MarbleBlastDemo-${PV}.sh.bin"
-
-LICENSE="MARBLEBLAST"
-SLOT="0"
-KEYWORDS="-* ~amd64 x86"
-RESTRICT="strip"
-IUSE=""
-
-DEPEND=""
-
-GAMES_CHECK_LICENSE="yes"
-dir=${GAMES_PREFIX_OPT}/${PN}
-Ddir=${D}/${dir}
-
-S=${WORKDIR}
-
-src_unpack() {
- unpack_makeself
- tar -zxf MarbleBlast.tar.gz -C "${T}" || die "extracting MarbleBlast.tar.gz"
-}
-
-src_install() {
- insinto "${dir}"
- exeinto "${dir}"
- for i in common lib marble
- do
- doins -r "${T}"/${i} || die "copying ${i}"
- done
- doins "${T}"/main.cs
- doexe bin/Linux/x86/marbleblastdemo "${T}"/marbleblastdemo.bin
- games_make_wrapper marbleblast-demo ./marbleblastdemo "${dir}" "${dir}"
-
- dodoc "${T}"/README_DEMO.txt
-
- prepgamesdirs
-}
diff --git a/games-arcade/marbleblast-demo/metadata.xml b/games-arcade/marbleblast-demo/metadata.xml
deleted file mode 100644
index f0e38de..0000000
--- a/games-arcade/marbleblast-demo/metadata.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>games</herd>
-<longdescription>
-Marble Blast is an arcade action game with simple yet addictive gameplay,
-suitable for players of any age. In the rich cartoon landscape of Marble
-Blast, players will race their marbles through moving platforms, dangerous
-hazards, sparkling treasures and power up enhancements in an effort to
-complete each course in record time.
-
-Marble Blast introduces new players to the game with a set of
-progressively more difficult beginner training levels, each designed to
-showcase a power up or game hazard. The hazards players will face in
-Marble Blast include powerful fans, whirling tornados, land mines,
-pinball-style bumpers, narrow catwalks, moving pistons, dizzying chasms,
-and more.
-
-To get past these obstacles, players can find and use five different
-ability enhancing power ups - the SuperSpeed, SuperJump, SuperBounce,
-Shock Asbsorber and Gyrocopter. Some levels contain gravity modifiers,
-which allow the player to change the direction of gravity.
-
-Marble Blast comes with 72 whimsical and challenging levels, as well as
-the ability for advanced players to craft and share their own levels.
-Marble Blast is sure to provide many hours of fun for the whole family.
-</longdescription>
-</pkgmetadata>
diff --git a/games-fps/etqw-bin/ChangeLog b/games-fps/etqw-bin/ChangeLog
deleted file mode 100644
index 8d13c2e..0000000
--- a/games-fps/etqw-bin/ChangeLog
+++ /dev/null
@@ -1,8 +0,0 @@
-# ChangeLog for games-fps/etqw-bin
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
- 12 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> ChangeLog:
- Initial import. Original ebuild by Jon Roadley-Battin
- <jon.roadleybattin@gmail.com> in bug #196452 and modified by me.
-
diff --git a/games-fps/etqw-bin/Manifest b/games-fps/etqw-bin/Manifest
deleted file mode 100644
index 7fb8ab4..0000000
--- a/games-fps/etqw-bin/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-DIST ETQW-client-1.2-full.r5.x86.run 286138270 RMD160 d898e0ef81e62d3ec68a60274974df762da70f4b SHA1 bc2abcdd7e773fe5234de305ca36e96fe467f686 SHA256 9cb1f1f4c9d60d5891a37dcfba711db0c3de6793a4a6017e6fc66e062620e7f0
-EBUILD etqw-bin-1.2.5.ebuild 3017 RMD160 4a4e5c2211f464d8f9eae9967d3c2c407123b7c6 SHA1 fcb0c2806447342b9ed5d191e81e8d84310e5db4 SHA256 3bfa0c0a8f699e12f8df2fd6683b0cd5c352f56afc25a1990954a2a95c41583d
-MISC ChangeLog 308 RMD160 6ba6cc998e580357b26b64870ce059bc4a6a1a34 SHA1 5e963b0247641e67ee6eb500b1a837b2246b5161 SHA256 26321386930450c870c49824b5f42f34ab6fbd8edab09af7e23606f022b10f3d
-MISC metadata.xml 254 RMD160 877a1dc36df2be58926bc51041093feafdefe429 SHA1 45f0334cd127c4a1b4ece41f7098ab70046e378a SHA256 2916aab684ec3908fffb515065eeb2c481cde563380b682646add582bed5f535
diff --git a/games-fps/etqw-bin/etqw-bin-1.2.5.ebuild b/games-fps/etqw-bin/etqw-bin-1.2.5.ebuild
deleted file mode 100644
index db2b7e5..0000000
--- a/games-fps/etqw-bin/etqw-bin-1.2.5.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2.ebuild,v 1.2 2007/08/20 17:23:52 wolf31o2 Exp $
-
-inherit eutils versionator games
-
-VER="$(get_version_component_range 1-2)"
-REV="$(get_version_component_range 3-3)"
-MY_PV="${VER}-full.r${REV}"
-MY_BODY="ETQW-client-${MY_PV}.x86"
-
-DESCRIPTION="Enemy Territory"
-HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
-SRC_URI="ftp://ftp.idsoftware.com/idstuff/etqw/${MY_BODY}.run"
-
-#LICENSE="ETQW"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="alsa cdinstall dedicated opengl"
-
-RESTRICT="strip"
-
-UIDEPEND="virtual/opengl
- x86? (
- x11-libs/libXext
- x11-libs/libX11
- x11-libs/libXau
- x11-libs/libXdmcp
- media-libs/libsdl )
- amd64? (
- app-emulation/emul-linux-x86-compat
- app-emulation/emul-linux-x86-sdl
- app-emulation/emul-linux-x86-xlibs
- || (
- >=app-emulation/emul-linux-x86-xlibs-7.0
- x11-drivers/nvidia-drivers
- >=x11-drivers/ati-drivers-8.8.25-r1 ) )
- alsa? ( >=media-libs/alsa-lib-1.0.6 )"
-
-RDEPEND="sys-libs/glibc
- dedicated? ( app-misc/screen !games-server/etqw-ded )
- amd64? ( app-emulation/emul-linux-x86-baselibs )
- cdinstall? ( games-fps/etqw-data )
- opengl? ( ${UIDEPEND} )
- !dedicated? ( !opengl? ( ${UIDEPEND} ) )"
-
-S=${WORKDIR}
-
-dir=${GAMES_PREFIX_OPT}/etqw
-Ddir=${D}/${dir}
-
-#GAMES_CHECK_LICENSE="yes"
-
-QA_TEXTRELS="${dir:1}/pb/pbag.so
- ${dir:1}/pb/pbags.so
- ${dir:1}/pb/pbcl.so
- ${dir:1}/pb/pbcls.so
- ${dir:1}/pb/pbsv.so"
-QA_EXECSTACK="${dir:1}/etqw.x86
- ${dir:1}/etqwded.x86
- ${dir:1}/libgcc_s.so.1
- ${dir:1}/libjpeg.so.62
- ${dir:1}/libstdc++.so.6
- ${dir:1}/libCgx86.so"
-
-src_unpack() {
- # There is a warning which changes the exit code and causes "unzip" to not
- # return an exit code of "0", so there's no || die here. If anybody wants
- # to take the time to look into this and actually fix it, I'm open to
- # suggestions. Otherwise, this is staying like this.
- unzip -qq ${DISTDIR}/${A}
- mv data/* . || die
-
-}
-
-src_install() {
- insinto "${dir}"
- doins -r pb base || die "doins pb base"
-
- exeinto "${dir}"
- doexe openurl.sh || die "openurl.sh"
- doexe {etqw.x86,libCgx86.so,*.so.?} \
- || die "doexe x86 exes/libs"
-
- insinto "${dir}"/base
- doins base/* || die "doins base"
-
- if use dedicated ; then
- doexe etqwded.x86 || die "doexe etqwded.x86"
- games_make_wrapper etqw-ded ./etqwded.x86 "${dir}" "${dir}"
- fi
-
- if use opengl || ! use dedicated ; then
- newicon etqw_icon.png etqw.png || die "doicon"
- games_make_wrapper etqw "./etqw.x86" "${dir}" "${dir}"
- make_desktop_entry etqw "Enemy Territory: Quake Wars" etqw.png
- fi
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
-
- if ! use cdinstall
- then
- elog "You need to copy pak00*.pk4, zpak_english000.pk4 and the megatextures"
- elog "directory from either your installation media or your hard drive"
- elog "to ${dir}/base before running the game."
- echo
- fi
-
- if use opengl || !use dedicated ; then
- elog "To play the game, run: etqw"
- echo
- fi
-}
-
diff --git a/games-fps/etqw-bin/metadata.xml b/games-fps/etqw-bin/metadata.xml
deleted file mode 100644
index fe08918..0000000
--- a/games-fps/etqw-bin/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>games</herd>
-<maintainer>
- <email>wolf31o2@gentoo.org</email>
- <name>Chris Gianelloni</name>
-</maintainer>
-</pkgmetadata>
diff --git a/games-fps/etqw-data/ChangeLog b/games-fps/etqw-data/ChangeLog
deleted file mode 100644
index ef5d531..0000000
--- a/games-fps/etqw-data/ChangeLog
+++ /dev/null
@@ -1,8 +0,0 @@
-# ChangeLog for games-fps/etqw-bin
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/ChangeLog,v 1.23 2008/02/29 19:20:57 carlo Exp $
-
- 12 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml:
- Initial import. Original ebuild by Brandon Captain <caibbor@gmail.com> in
- bug #198078 and modified by me.
-
diff --git a/games-fps/etqw-data/Manifest b/games-fps/etqw-data/Manifest
deleted file mode 100644
index ebee5c4..0000000
--- a/games-fps/etqw-data/Manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-EBUILD etqw-data-1.0.ebuild 1242 RMD160 b5f29633119f2e5bbc90670fed6c75c83fefd737 SHA1 e794bed7c5bbfe7b6c4ea35158425e5728c91bc3 SHA256 39d8c4eef47546fa53e5199eb5571a00b67510aee9c4a4fedd536c9c25420834
-MISC ChangeLog 397 RMD160 520081dcf216d5223144b34f0960fafbaf5e6c74 SHA1 07646d3b325776c16675e645e7c1bc9bbe381e28 SHA256 fe91244aa35babe92f9a5271a5dd47774078c0cd5cc420f9fd93ef95ad000311
-MISC metadata.xml 254 RMD160 877a1dc36df2be58926bc51041093feafdefe429 SHA1 45f0334cd127c4a1b4ece41f7098ab70046e378a SHA256 2916aab684ec3908fffb515065eeb2c481cde563380b682646add582bed5f535
diff --git a/games-fps/etqw-data/etqw-data-1.0.ebuild b/games-fps/etqw-data/etqw-data-1.0.ebuild
deleted file mode 100644
index 143ee73..0000000
--- a/games-fps/etqw-data/etqw-data-1.0.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2.ebuild,v 1.2 2007/08/20 17:23:52 wolf31o2 Exp $
-
-inherit eutils games
-
-DESCRIPTION="Enemy Territory: Quake Wars Data Files"
-HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
-SRC_URI=""
-
-#LICENSE="ETQW"
-SLOT="0"
-KEYWORDS="amd64 x86"
-RESTRICT=""
-IUSE="videos"
-
-S=${WORKDIR}
-dir=${GAMES_PREFIX_OPT}/etqw
-Ddir=${D}/${dir}
-
-#GAMES_CHECK_LICENSE="yes"
-
-pkg_setup() {
- export CDROM_NAME_SET=("Existing Install" "Quake Wars CD")
- cdrom_get_cds pak004.pk4:Setup/Data/base/zpak_english000.pk4
-
- if [[ $CDROM_SET -ne 0 && $CDROM_SET -ne 1 ]] ; then
- die "Error locating data files.";
- fi
-}
-
-src_install() {
- insinto "${dir}"/base
-
- if [[ $CDROM_SET -eq 1 ]] ; then
- ZPATH=${CDROM_ROOT}/Setup/Data/base/
- else
- ZPATH=${CDROM_ROOT}/
- fi
-
- for i in zpak_english000.pk4 megatextures pak00*.pk4
- do
- einfo "Copying ${i}..."
- doins -r ${ZPATH}/${i} || die "unable to find/copy ${i}."
- done
-
- if use videos ; then
- einfo "Copying video..."
- doins -r ${ZPATH}/video || die "unable to find/copy video file."
- fi
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
-}
-
diff --git a/games-fps/etqw-data/metadata.xml b/games-fps/etqw-data/metadata.xml
deleted file mode 100644
index fe08918..0000000
--- a/games-fps/etqw-data/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>games</herd>
-<maintainer>
- <email>wolf31o2@gentoo.org</email>
- <name>Chris Gianelloni</name>
-</maintainer>
-</pkgmetadata>
diff --git a/games-roguelike/nethack/ChangeLog b/games-roguelike/nethack/ChangeLog
deleted file mode 100644
index bdd424a..0000000
--- a/games-roguelike/nethack/ChangeLog
+++ /dev/null
@@ -1,208 +0,0 @@
-# ChangeLog for games-roguelike/nethack
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/nethack/ChangeLog,v 1.28 2008/03/07 20:15:59 wolf31o2 Exp $
-
- 13 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
- nethack-3.4.3-r2.ebuild:
- Make sure the nethack executable is group scores.
-
- 13 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
- nethack-3.4.3-r2.ebuild:
- We need to make sure that the nethack executable is 2755 here, rather than
- in the eclass.
-
- 13 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
- +files/3.4.3-topten-scanf-fix.patch:
- Added 3.4.3-topten-scanf-fix.patch patch from bug #125902.
-
- 13 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
- +files/3.4.3-GNOME-support.patch, +files/3.4.3-QT-GNOME-support.patch,
- +files/3.4.3-QT-support.patch, +files/3.4.3-X-support.patch,
- +files/3.4.3-bison.patch, +files/3.4.3-macos.patch,
- +files/3.4.3-default-options.patch, +files/3.4.3-gentoo-paths.patch,
- +files/dot.nethackrc, +metadata.xml:
- Added a -r2 ebuild which uses GAMES_SCORES_FILES for testing for bug #125902.
-
- 07 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- QA cleanup: Fix quoting.
-
- 14 Jan 2008; Fabian Groffen <grobian@gentoo.org> nethack-3.4.3-r1.ebuild:
- Dropped ppc-macos keyword, see you in prefix
-
- 01 Apr 2007; Michael Sterrett <mr_bones_@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- fix deps for bug #172945
-
- 12 Mar 2007; Marius Mauch <genone@gentoo.org> nethack-3.4.3-r1.ebuild:
- Replacing einfo with elog
-
- 07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- Change all instances of [ to [[.
-
- 18 Nov 2006; Saleem Abdulrasool <compnerd@gentoo.org> nethack-3.4.3-r1.ebuild:
- drop gnome useflag for gnome-1.x removal
-
- 24 Jun 2006; Doug Goldstein <cardoe@gentoo.org> nethack-3.4.3-r1.ebuild:
- USE flag change qt->qt3/qt4 bug #137785
-
- 22 May 2006; Diego Pettenò <flameeyes@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- Add ~x86-fbsd keyword, after setting GAMEUID and GAMEGRP (to install clean
- on FreeBSD) and set CC on last make call (bug #134054).
-
- 24 Jan 2006; Chris Gianelloni <wolf31o2@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- Added modular X dependencies and closing bug #119031.
-
- 22 Nov 2005; Fabian Groffen <grobian@gentoo.org> +files/3.4.3-macos.patch,
- nethack-3.4.3-r1.ebuild:
- Adding small patch for OSX and compilation helper. Marked ~ppc-macos (bug
- #106117)
-
- 22 Nov 2005; <jer@gentoo.org> nethack-3.4.3-r1.ebuild:
- Added ~hppa keyword (bug 109191).
-
- 16 Oct 2005; Chris Gianelloni <wolf31o2@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- Added desktop entry using make_desktop_entry and closing bug #100788.
-
- 28 Jul 2005; Caleb Tennis <caleb@gentoo.org> nethack-3.4.3-r1.ebuild:
- made qt dep qt3 explicit per bug #100235
-
- 17 May 2005; Chris Gianelloni <wolf31o2@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- Cleanup for bug #92745.
-
- 28 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
- Change encoding to UTF-8 for GLEP 31 compliance
-
- 24 Sep 2004; Michael Sterrett <mr_bones_@gentoo.org>
- nethack-3.4.3-r1.ebuild:
- Bring the help functionality back when using the external pager (bug #57410)
- sed patch from Benoit Boissinot
-
- 10 Sep 2004; Michael Sterrett <mr_bones_@gentoo.org> -nethack-3.4.2.ebuild,
- nethack-3.4.3-r1.ebuild, -nethack-3.4.3.ebuild:
- clean older ebuilds; fix deps
-
- 31 Aug 2004; Chris Gianelloni <wolf31o2@gentoo.org>
- +files/3.4.3-bison.patch, nethack-3.4.3-r1.ebuild:
- Added bison patch and closing bug #61140.
-
-*nethack-3.4.3-r1 (10 Jul 2004)
-
- 10 Jul 2004; Michael Sterrett <mr_bones_@gentoo.org>
- +nethack-3.4.3-r1.ebuild:
- Work around buggy makefiles so we get to use emake
- Set DEF_PAGER from $PAGER (bug #52122)
- Use ${GAMES_STATEDIR} saving code in games.eclass instead of hacking it
- in the ebuild.
- Error check ; tidy
-
- 30 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> nethack-3.4.2.ebuild,
- nethack-3.4.3.ebuild:
- virtual/x11; use flag cleanup; error check sed
-
- 20 Jan 2004; Jon Portnoy <avenj@gentoo.org> :
- AMD64 keywords.
-
-*nethack-3.4.3 (01 Jan 2003)
-
- 01 Jan 2003; Mike Frysinger <vapier@gentoo.org> :
- Version bump #35558.
-
-*nethack-3.4.2 (15 Sep 2003)
-
- 17 Sep 2003; Chuck Short <zul@gentoo.org> nethack-3.4.2.ebuild:
- Marked stable for sparc, closes bug #28449.
-
- 15 Sep 2003; Mike Frysinger <vapier@gentoo.org> :
- Version bump #27875 + saved games fix #28104 + new qt ver #23149.
-
-*nethack-3.4.1-r1 (07 Aug 2003)
-
- 07 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
- Fix file permissions/writable file locations #26085
-
-*nethack-3.4.1 (03 Mar 2003)
-
- 11 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
- Don't overwrite saved games and stuff ... #16428
-
- 22 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
- Cleaned up ebuild ... move most sed statements to patches. #16436 #16827
-
- 05 Mar 2003; Bartosch Pixa <darkspecter@gentoo.org> nethack-3.4.1.ebuild:
- set ~ppc in keywords
-
- 03 Mar 2003; Daniel Ahlberg <aliz@gentoo.org> :
- Version bump.
-
-*nethack-3.4.0-r7 (26 Feb 2003)
-
- 26 Feb 2003; Mike Frysinger <vapier@gentoo.org> :
- Added errno patch to fix #16436 (#16267).
-
-*nethack-3.4.0-r6 (18 Feb 2003)
-
- 18 Feb 2003; Daniel Ahlberg <aliz@gentoo.org> :
- Security update.
-
-*nethack-3.4.0-r5 (22 Dec 2002)
-
- 22 Dec 2002; J.Alberto Suarez L. <bass@gentoo.org> :
- Fix bug #12576
-
-*nethack-3.4.0-r4 (16 Dec 2002)
-
- 16 Dec 2002; Mike Frysinger <vapier@gentoo.org> :
- Added games.eclass support and fix for #9147.
-
-*nethack-3.4.0-r3 (23 Apr 2002)
-
- 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> nethack-3.4.0-r3.ebuild :
- Added LICENSE, KEYWORDS, SLOT.
-
- 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> nethack-3.4.0.ebuild :
- Added LICENSE, KEYWORDS, SLOT.
- 23 Apr 2002; Spider <spider@gentoo.org> nethack-3.4.0-r3.ebuild:
- Fix qt dependency
-
-*nethack-3.4.0-r2 (17 Apr 2002)
-
- 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> nethack-3.4.0-r2.ebuild :
- Added LICENSE, KEYWORDS, SLOT.
- 17 Apr 2002; Spider <spider@gentoo.org> nethack-3.4.0-r2.ebuild:
- Here is the bulk message from Jason Ritchie <jasonr@myrealbox.com>
- This version I wrote from scratch, but after I got stuck I got a lot of
- good info from the existing nethack ebuilds. I have included a
- CREDITS.gentoo.
-
- On to the meat. This ebuild supports USE flags X, qt, and gnome. I
- have also included a default .nethackrc file and a FAQ-ish thing about
- why I made some decisions. It removes the need for /usr/games as this is to be avoided
- from what I hear. It will emerge with qt2 or 3 installed, but it will only
- use 2. I have tested tty, X, qt, and gnome window types and it seems to run very
- nicely.
-
- The whole setup process should be:
- emerge nethack
- cp /usr/share/nethackdir/dot.nethackrc ~/.nethackrc
- nethack
-
- This was such a fun project. Let me know if I screwed the pooch.
-
-*nethack-3.4.0-r1 (13 Apr 2002)
-
- 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> nethack-3.4.0-r1.ebuild :
- Added LICENSE, KEYWORDS, SLOT.
- 13 Apr 2002; Spider <spider@gentoo.org> nethack-3.4.0-r1.ebuild :
- Adding comment on how to get colour support thanks to Ryan Phillips
- Update dodoc line
-
- *nethack-3.4.0 (09 Apr 2002)
- 9 Apr 2002; Spider <spider@gentoo.org> nethack-3.4.0.ebuild :
- Second release of nethack really, only including the 3.4.0 release though.
- initial commit to cvs/portage
diff --git a/games-roguelike/nethack/Manifest b/games-roguelike/nethack/Manifest
deleted file mode 100644
index 1ee25cd..0000000
--- a/games-roguelike/nethack/Manifest
+++ /dev/null
@@ -1,14 +0,0 @@
-AUX 3.4.3-GNOME-support.patch 1316 RMD160 22bbef5460eded0faa3d06e7b2db45334783bf10 SHA1 b94442d65c13310e36f35e34ad48760206453c78 SHA256 7298bc971292db8ee2147a5ed04f71e21411bb51c169cc60634633dd1aecbaed
-AUX 3.4.3-QT-GNOME-support.patch 1507 RMD160 3344bda39533bceb9c6a95102b4b5146aad862c6 SHA1 288568ecec759c910243adf6b8fc846413278be1 SHA256 f5d5728a7cf3a32910741d2a89b228a5fa0f0f042c6ef0918d4be06d9206ab47
-AUX 3.4.3-QT-support.patch 792 RMD160 2338e103a24a2284ac1af33f22dc914f506d13e7 SHA1 d1789562e39ba5f101939c2bd3974c0b74f35398 SHA256 2e3a72bb31c8b0fe3afaa9933f64cd1858b4f32d6188273586062953b92ae97a
-AUX 3.4.3-X-support.patch 920 RMD160 1cad76af263fa640097ef6f67f1298886df098ea SHA1 3fe24974e6e1df078a4a0992c9313f59e2f0c662 SHA256 e1d3a7110c97b80b1d3e3bd4204f1ea018fbbc03d2a937efdb292cc1f611f525
-AUX 3.4.3-bison.patch 603 RMD160 0fd71789e69640ac8c14183edd5974938d5e6f66 SHA1 2705d64f5c2692a4f1f561c90b816dce5dbe27b0 SHA256 8b8eab414c4dfeb20ab60dc543eb023eac90da0a9e1c8a2375833fdf61baec7f
-AUX 3.4.3-default-options.patch 1262 RMD160 10bdb2cbe10a7396a8f88052d6a61e62629c26d8 SHA1 678a7d263649b77b25a55290f68074042a64961a SHA256 5ba428f0c4d476c41b5ab94fb52737e39d32b7944d46755195745d97f14f38bd
-AUX 3.4.3-gentoo-paths.patch 576 RMD160 84319d80353e1c029d4130a73ae65b18680f2c91 SHA1 b8cc137b8b5c04071d81c741635fd261250490b6 SHA256 09b96c2659aab5749e5f16ceedfba40597938c9aa06e6bfc05e6b5f029a2ffb1
-AUX 3.4.3-macos.patch 307 RMD160 460ef1f4279e5c0e09de3cfe77b7984fbab0dede SHA1 a96ef11b97a9cbf08c9207144986d4355a27e6b1 SHA256 2df99fde20c8ff4b919da95bb4a36222b9eac564cfc2e02233da95dcbc25bb17
-AUX 3.4.3-topten-scanf-fix.patch 1395 RMD160 6a565ad1064bd05a71555eae583b61d30627290f SHA1 5bbd1d2338599571aac88f4defd64fcedf3fa866 SHA256 3283ff4be1221839c70025ec8668b031a129ef20266176f85c030f6734f8e6a8
-AUX dot.nethackrc 2717 RMD160 0e9868a1b8f017337d8c37e740399e25512bdb5b SHA1 27c973b8c336355012e2e2c4f0007bce9cce9f84 SHA256 19d692014e1b053439f5f818291e32a971942490ca7e3d2b7912b43a4563f98c
-DIST nethack-343-src.tgz 3497458 RMD160 42f600d24715a0b7e631b357c135761410b3ca95 SHA1 c26537093c38152bc0fbcec20468d975b35f59fd SHA256 bb39c3d2a9ee2df4a0c8fdde708fbc63740853a7608d2f4c560b488124866fe4
-EBUILD nethack-3.4.3-r2.ebuild 5303 RMD160 1600a85c441fb1b0c8eadbc37013e176ae1d836d SHA1 9cca316dfdc216f41a8f9fdaac007ddcd2c5cf9a SHA256 4c6056bb5be868839f341152c43787203141b7e88925cc0eaf0b86d527e0be10
-MISC ChangeLog 7434 RMD160 b55156da1d23dc01bacffbcb7b3f191949e47b7f SHA1 af2d56a19292da02d237dd374010f5bf25117f63 SHA256 49c2f9fa981eb72907b8e64e5acfe648ba1f0e9bf483d31d40a6903002e44a81
-MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-roguelike/nethack/files/3.4.3-GNOME-support.patch b/games-roguelike/nethack/files/3.4.3-GNOME-support.patch
deleted file mode 100644
index 3a18fae..0000000
--- a/games-roguelike/nethack/files/3.4.3-GNOME-support.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- include/config.h.orig 2003-06-21 21:06:38.000000000 -0400
-+++ include/config.h 2003-06-21 21:12:00.000000000 -0400
-@@ -48 +48 @@
--/* #define GNOME_GRAPHICS */ /* Gnome interface */
-+#define GNOME_GRAPHICS
-@@ -96 +95,0 @@
--# define USE_XPM /* Use XPM format for images (required) */
---- Makefile.orig 2003-06-21 21:06:38.000000000 -0400
-+++ Makefile 2003-06-21 21:13:02.000000000 -0400
-@@ -43 +43 @@
--VARDATND = x11tiles pet_mark.xbm rip.xpm
-+VARDATND = x11tiles pet_mark.xbm rip.xpm mapbg.xpm
---- src/Makefile.orig 2003-06-21 21:06:38.000000000 -0400
-+++ src/Makefile 2003-06-21 21:17:33.000000000 -0400
-@@ -142 +142 @@
--GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome
-+GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-@@ -191 +191 @@
-- gnyesno.o gnworn.o tile.o
-+ gnyesno.o gnworn.o
-@@ -207,2 +207,2 @@
--WINSRC = $(WINTTYSRC) $(WINX11SRC)
--WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
-+WINSRC = $(WINTTYSRC) $(WINX11SRC) $(WINGNOMESRC)
-+WINOBJ = $(WINTTYOBJ) $(WINX11OBJ) $(WINGNOMEOBJ)
-@@ -248 +248 @@
--WINLIB = $(WINTTYLIB) $(WINX11LIB)
-+WINLIB = $(WINTTYLIB) $(WINX11LIB) $(WINGNOMELIB)
diff --git a/games-roguelike/nethack/files/3.4.3-QT-GNOME-support.patch b/games-roguelike/nethack/files/3.4.3-QT-GNOME-support.patch
deleted file mode 100644
index 2a610d6..0000000
--- a/games-roguelike/nethack/files/3.4.3-QT-GNOME-support.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- include/config.h.orig 2003-06-21 21:06:38.000000000 -0400
-+++ include/config.h 2003-06-21 21:12:00.000000000 -0400
-@@ -48 +48 @@
--/* #define GNOME_GRAPHICS */ /* Gnome interface */
-+#define GNOME_GRAPHICS
---- Makefile.orig 2003-06-21 21:06:38.000000000 -0400
-+++ Makefile 2003-06-21 21:13:02.000000000 -0400
-@@ -43 +43 @@
--VARDATND = x11tiles pet_mark.xbm rip.xpm
-+VARDATND = x11tiles pet_mark.xbm rip.xpm mapbg.xpm
---- src/Makefile.orig 2003-06-21 21:06:38.000000000 -0400
-+++ src/Makefile 2003-06-21 21:17:33.000000000 -0400
-@@ -142 +142 @@
--GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome
-+GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-@@ -191 +191 @@
-- gnyesno.o gnworn.o tile.o
-+ gnyesno.o gnworn.o
-@@ -207,2 +207,2 @@
--WINSRC = $(WINTTYSRC) $(WINX11SRC) $(WINQTSRC)
--WINOBJ = $(WINTTYOBJ) $(WINX11OBJ) $(WINQTOBJ)
-+WINSRC = $(WINTTYSRC) $(WINX11SRC) $(WINQTSRC) $(WINGNOMESRC)
-+WINOBJ = $(WINTTYOBJ) $(WINX11OBJ) $(WINQTOBJ) $(WINGNOMEOBJ)
-@@ -248 +248 @@
--WINLIB = $(WINTTYLIB) $(WINX11LIB) $(WINQTLIB)
-+WINLIB = $(WINTTYLIB) $(WINX11LIB) $(WINQTLIB) $(WINGNOMELIB)
---- include/config.h.orig 2003-06-21 22:04:25.000000000 -0400
-+++ include/config.h 2003-06-21 22:04:31.000000000 -0400
-@@ -96 +95,0 @@
--# define USE_XPM /* Use XPM format for images (required) */
diff --git a/games-roguelike/nethack/files/3.4.3-QT-support.patch b/games-roguelike/nethack/files/3.4.3-QT-support.patch
deleted file mode 100644
index 8f8d867..0000000
--- a/games-roguelike/nethack/files/3.4.3-QT-support.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- include/config.h.orig 2003-06-21 21:03:14.000000000 -0400
-+++ include/config.h 2003-06-21 21:03:20.000000000 -0400
-@@ -47 +47 @@
--/* #define QT_GRAPHICS */ /* Qt interface */
-+#define QT_GRAPHICS
-@@ -91 +90,0 @@
--# define USE_XPM /* Use XPM format for images (required) */
---- src/Makefile.orig 2003-06-21 21:04:41.000000000 -0400
-+++ src/Makefile 2003-06-21 21:04:58.000000000 -0400
-@@ -189 +189 @@
--WINQTOBJ = qt_win.o qt_clust.o qttableview.o tile.o
-+WINQTOBJ = qt_win.o qt_clust.o qttableview.o
-@@ -217,2 +217,2 @@
--WINSRC = $(WINTTYSRC) $(WINX11SRC)
--WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
-+WINSRC = $(WINTTYSRC) $(WINX11SRC) $(WINQTSRC)
-+WINOBJ = $(WINTTYOBJ) $(WINX11OBJ) $(WINQTOBJ)
-@@ -258 +258 @@
--WINLIB = $(WINTTYLIB) $(WINX11LIB)
-+WINLIB = $(WINTTYLIB) $(WINX11LIB) $(WINQTLIB)
diff --git a/games-roguelike/nethack/files/3.4.3-X-support.patch b/games-roguelike/nethack/files/3.4.3-X-support.patch
deleted file mode 100644
index 6687f88..0000000
--- a/games-roguelike/nethack/files/3.4.3-X-support.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- include/config.h.orig 2003-06-21 20:58:57.000000000 -0400
-+++ include/config.h 2003-06-21 20:59:44.000000000 -0400
-@@ -46 +46 @@
--/* #define X11_GRAPHICS */ /* X11 interface */
-+#define X11_GRAPHICS 1
-@@ -127 +127 @@
--/* # define USE_XPM */ /* Disable if you do not have the XPM library */
-+# define USE_XPM 1
---- Makefile.orig 2003-06-21 21:01:03.000000000 -0400
-+++ Makefile 2003-06-21 21:01:16.000000000 -0400
-@@ -43 +43 @@
--VARDATND =
-+VARDATND = x11tiles pet_mark.xbm rip.xpm
---- src/Makefile.orig 2003-06-21 21:02:01.000000000 -0400
-+++ src/Makefile 2003-06-21 21:02:11.000000000 -0400
-@@ -207,2 +207,2 @@
--WINSRC = $(WINTTYSRC)
--WINOBJ = $(WINTTYOBJ)
-+WINSRC = $(WINTTYSRC) $(WINX11SRC)
-+WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
-@@ -228 +228 @@
--WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
-+WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
-@@ -248 +248 @@
--WINLIB = $(WINTTYLIB)
-+WINLIB = $(WINTTYLIB) $(WINX11LIB)
diff --git a/games-roguelike/nethack/files/3.4.3-bison.patch b/games-roguelike/nethack/files/3.4.3-bison.patch
deleted file mode 100644
index 0bec63a..0000000
--- a/games-roguelike/nethack/files/3.4.3-bison.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- nethack-3.4.3/util/Makefile 2004-08-21 01:09:06.724326360 +0200
-+++ nethack-3.4.3.new//util/Makefile 2004-08-21 01:08:03.852884272 +0200
-@@ -101,11 +101,11 @@
-
- # yacc/lex programs to use to generate *_comp.h, *_lex.c, and *_yacc.c.
- # if, instead of yacc/lex you have bison/flex, comment/uncomment the following.
--YACC = yacc
--LEX = lex
--# YACC = bison -y
-+#YACC = yacc
-+#LEX = lex
-+ YACC = bison -y
- # YACC = byacc
--# LEX = flex
-+ LEX = flex
-
- # these are the names of the output files from YACC/LEX. Under MS-DOS
- # and similar systems, they may differ
diff --git a/games-roguelike/nethack/files/3.4.3-default-options.patch b/games-roguelike/nethack/files/3.4.3-default-options.patch
deleted file mode 100644
index 83ab94a..0000000
--- a/games-roguelike/nethack/files/3.4.3-default-options.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- include/config.h.orig 2003-06-21 20:44:00.000000000 -0400
-+++ include/config.h 2003-06-21 20:46:42.000000000 -0400
-@@ -172,2 +172,2 @@
--#define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */
--#define COMPRESS_EXTENSION ".Z" /* compress's extension */
-+#define COMPRESS "/bin/bzip2" /* Lempel-Ziv compression */
-+#define COMPRESS_EXTENSION ".bz2" /* compress's extension */
-@@ -188 +188 @@
--/* #define DLB */ /* not supported on all platforms */
-+#define DLB 1 /* not supported on all platforms */
-@@ -207 +207 @@
--# define HACKDIR "/usr/games/lib/nethackdir"
-+# define HACKDIR "GENTOO_HACKDIR"
-@@ -303 +303 @@
--/* #define VISION_TABLES */ /* use vision tables generated at compile time */
-+#define VISION_TABLES 1 /* use vision tables generated at compile time */
---- include/unixconf.h.orig 2003-06-21 20:47:54.000000000 -0400
-+++ include/unixconf.h 2003-06-21 20:48:39.000000000 -0400
-@@ -40 +40 @@
--/* #define LINUX */ /* Another Unix clone */
-+#define LINUX 1 /* Another Unix clone */
-@@ -135 +135 @@
--/* #define TIMED_DELAY */ /* usleep() */
-+#define TIMED_DELAY 1
---- src/Makefile.orig 2003-06-21 20:55:36.000000000 -0400
-+++ src/Makefile 2003-06-21 20:55:49.000000000 -0400
-@@ -234 +234 @@
--WINTTYLIB = -ltermlib
-+WINTTYLIB = -lncurses
diff --git a/games-roguelike/nethack/files/3.4.3-gentoo-paths.patch b/games-roguelike/nethack/files/3.4.3-gentoo-paths.patch
deleted file mode 100644
index af86cd1..0000000
--- a/games-roguelike/nethack/files/3.4.3-gentoo-paths.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- include/unixconf.h.orig 2003-08-07 23:18:03.070299152 -0400
-+++ include/unixconf.h 2003-08-07 23:18:39.699730632 -0400
-@@ -96,13 +96,13 @@
- */
-
- /* #define NO_FILE_LINKS */ /* if no hard links */
--/* #define LOCKDIR "/usr/games/lib/nethackdir" */ /* where to put locks */
-+#define LOCKDIR "GENTOO_STATEDIR"
-
- /*
- * If you want the static parts of your playground on a read-only file
- * system, define VAR_PLAYGROUND to be where the variable parts are kept.
- */
--/* #define VAR_PLAYGROUND "/var/lib/games/nethack" */
-+#define VAR_PLAYGROUND "GENTOO_STATEDIR"
-
-
- /*
diff --git a/games-roguelike/nethack/files/3.4.3-macos.patch b/games-roguelike/nethack/files/3.4.3-macos.patch
deleted file mode 100644
index d5aad38..0000000
--- a/games-roguelike/nethack/files/3.4.3-macos.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- nethack-3.4.3/win/Qt/qt_win.cpp.orig 2005-11-22 21:24:03.000000000 +0100
-+++ nethack-3.4.3/win/Qt/qt_win.cpp 2005-11-22 21:25:26.000000000 +0100
-@@ -102,7 +102,7 @@
- #include "qt_xpms.h"
-
- #include <dirent.h>
--#ifdef Q_WS_MACX
-+#ifdef __APPLE__
- # include <sys/malloc.h>
- #else
- # include <malloc.h>
diff --git a/games-roguelike/nethack/files/3.4.3-topten-scanf-fix.patch b/games-roguelike/nethack/files/3.4.3-topten-scanf-fix.patch
deleted file mode 100644
index d700b31..0000000
--- a/games-roguelike/nethack/files/3.4.3-topten-scanf-fix.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- ../nethack-3.4.3-orig/src/topten.c 2003-12-08 08:39:13 +0900
-+++ src/topten.c 2007-12-28 17:29:15 +0900
-@@ -30,6 +30,7 @@
-
- #define newttentry() (struct toptenentry *) alloc(sizeof(struct toptenentry))
- #define dealloc_ttentry(ttent) free((genericptr_t) (ttent))
-+/* IMPORTANT: if you change any of these, update the scanf() strings below */
- #define NAMSZ 10
- #define DTHSZ 100
- #define ROLESZ 3
-@@ -129,12 +130,16 @@
- {
- #ifdef NO_SCAN_BRACK /* Version_ Pts DgnLevs_ Hp___ Died__Born id */
- static const char fmt[] = "%d %d %d %ld %d %d %d %d %d %d %ld %ld %d%*c";
-- static const char fmt32[] = "%c%c %s %s%*c";
-- static const char fmt33[] = "%s %s %s %s %s %s%*c";
-+ /* NOTE: "3" in "%3s" here MUST be equal to ROLESZ */
-+ static const char fmt32[] = "%c%c %3s %3s%*c";
-+ /* NOTE: in order, ROLESZ ROLESZ ROLESZ ROLESZ NAMSZ DTHSZ */
-+ static const char fmt33[] = "%3s %3s %3s %3s %10s %100s%*c";
- #else
- static const char fmt[] = "%d.%d.%d %ld %d %d %d %d %d %d %ld %ld %d ";
-- static const char fmt32[] = "%c%c %[^,],%[^\n]%*c";
-- static const char fmt33[] = "%s %s %s %s %[^,],%[^\n]%*c";
-+ /* NOTE: "3" in "%3[...]" here MUST be equal to ROLESZ */
-+ static const char fmt32[] = "%c%c %3[^,],%3[^\n]%*c";
-+ /* NOTE: in order, ROLESZ ROLESZ ROLESZ ROLESZ NAMSZ DTHSZ */
-+ static const char fmt33[] = "%3s %3s %3s %3s %10[^,],%100[^\n]%*c";
- #endif
-
- #ifdef UPDATE_RECORD_IN_PLACE
diff --git a/games-roguelike/nethack/files/dot.nethackrc b/games-roguelike/nethack/files/dot.nethackrc
deleted file mode 100644
index 5589933..0000000
--- a/games-roguelike/nethack/files/dot.nethackrc
+++ /dev/null
@@ -1,92 +0,0 @@
-#
-# Nethack configuration file.
-#
-# Please read the Guidebook in /usr/share/doc/nethack or at www.nethack.org.
-#
-# Naming this file $(HOME)/.nethackrc or setting the environment
-# variable NETHACKOPTIONS to point to its full path name elsewhere tells
-# NetHack to use X11 windowing (provided the executable was compiled with
-# that ability).
-#
-# SET YOUR WINDOW TYPE
-# Your windowtype choices are: GENTOO_WINDOWTYPES
-#
-OPTIONS=windowtype:GENTOO_DEFWINDOWTYPE
-#OPTIONS=color
-#OPTIONS=name:player
-#OPTIONS=gender:male
-#OPTIONS=fruit:mango
-#OPTIONS=dogname:Izchak
-#OPTIONS=catname:Chun-Li
-#OPTIONS=horsename:Marlon
-
-# Suggested for qt:
-#OPTIONS=number_pad,menustyle:partial,!time,showexp
-#OPTIONS=hilite_pet,toptenwin,msghistory:200,windowtype:Qt
-
-# The font settings below are for X11 untiled
-#
-# There are 17 object symbols and various graphics symbols.
-# The descriptions of these symbols can be found in dat/opthelp.
-#
-#
-# Font: nh10 (10x20)
-#
-#OBJECTS= 180 183 188 192 181 184 182 189 190 196 \
-# 191 194 193 187 185 186 195
-#
-#DUNGEON= 032 025 018 013 012 014 011 015 023 024 \
-# 022 021 128 129 130 131 132 035 035 133 \
-# 134 135 136 137 145 146 144 124 143 142 \
-# 141 140 149 150 031 031 147 148 031 161 \
-# 140
-#
-#TRAPS= 138 138 138 138 138 138 138 138 138 138 \
-# 138 138 138 138 138 139 138 138 138 138 \
-# 138 138
-#
-#EFFECTS= 151 152 153 154 155 156 157 158 \
-# 159 160 161 162 \
-# 163 164 165 166 167 168 169 170 \
-# 171 172 173 174 175 176 177 178 179
-#
-#
-# Font: ibm (8x14)
-#
-#OBJECTS= 207 210 215 219 208 211 209 216 217 223 \
-# 218 221 220 214 212 213 222
-#
-#DUNGEON= 032 128 129 130 131 132 133 134 135 136 \
-# 137 138 139 045 124 142 143 035 035 144 \
-# 145 146 147 148 155 156 227 124 154 153 \
-# 152 151 159 160 200 200 157 158 250 170 \
-# 151
-#
-#TRAPS= 149 149 149 149 149 149 149 149 149 149 \
-# 149 149 149 149 149 150 149 149 149 149 \
-# 149 149
-#
-#EFFECTS= 161 162 163 164 165 166 167 168 \
-# 169 170 171 172 \
-# 173 174 175 176 177 178 179 180 \
-# 181 182 183 184 185 186 187 188 189
-#
-#
-# Font: a "standard" font like 6x13
-# Note that this version is unlikely to work on a tty on a Unix system because
-# many of these characters are also control characters.
-#
-#DUNGEON = 032 025 018 013 012 014 011 015 023 024 \
-# 022 021 031 045 124 043 043 035 035 031 \
-# 035 001 060 062 060 062 019 124 092 035 \
-# 123 125 031 125 046 046 035 035 046 127 \
-# 125
-#
-#TRAPS= 094 094 094 094 094 094 094 094 094 094 \
-# 094 094 094 094 094 002 094 094 094 094 \
-# 094 094
-#
-#EFFECTS= 124 045 092 047 042 033 041 040 \
-# 048 035 064 042 \
-# 047 045 092 124 124 092 045 047 \
-# 047 064 092 064 064 064 092 064 047
diff --git a/games-roguelike/nethack/metadata.xml b/games-roguelike/nethack/metadata.xml
deleted file mode 100644
index d3c2cc9..0000000
--- a/games-roguelike/nethack/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?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-roguelike/nethack/nethack-3.4.3-r2.ebuild b/games-roguelike/nethack/nethack-3.4.3-r2.ebuild
deleted file mode 100644
index 401f20f..0000000
--- a/games-roguelike/nethack/nethack-3.4.3-r2.ebuild
+++ /dev/null
@@ -1,192 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/nethack/nethack-3.4.3-r1.ebuild,v 1.21 2008/03/07 20:15:59 wolf31o2 Exp $
-
-inherit eutils toolchain-funcs flag-o-matic games
-
-MY_PV=${PV//.}
-DESCRIPTION="The ultimate old-school single player dungeon exploration game"
-HOMEPAGE="http://www.nethack.org/"
-SRC_URI="mirror://sourceforge/nethack/${PN}-${MY_PV}-src.tgz"
-#SRC_URI="ftp://ftp.nethack.org/pub/nethack/nh340/src/nethack-340.tgz"
-
-LICENSE="nethack"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
-IUSE="X qt3"
-
-RDEPEND="virtual/libc
- >=sys-libs/ncurses-5.2-r5
- X? (
- x11-libs/libXaw
- x11-libs/libXpm
- x11-libs/libXt
- )
- qt3? ( =x11-libs/qt-3* )"
-DEPEND="${RDEPEND}
- X? (
- x11-proto/xproto
- x11-apps/bdftopcf
- x11-apps/mkfontdir
- )"
-
-HACKDIR="${GAMES_DATADIR}/${PN}"
-GAMES_SCORES_FILES="${GAMES_STATEDIR}/${PN}/logfile
- ${GAMES_STATEDIR}/${PN}/perm
- ${GAMES_STATEDIR}/${PN}/record"
-
-
-src_unpack() {
- unpack ${A}
-
- # This copies the /sys/unix Makefile.*s to their correct places for
- # seding and compiling.
- cd "${S}/sys/unix"
- source setup.sh || die
-
- cd "${S}"
- epatch \
- "${FILESDIR}"/${PV}-gentoo-paths.patch \
- "${FILESDIR}"/${PV}-default-options.patch \
- "${FILESDIR}"/${PV}-bison.patch \
- "${FILESDIR}"/${PV}-macos.patch \
- "${FILESDIR}"/${PV}-topten-scanf-fix.patch
-
- sed -i \
- -e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" include/unixconf.h \
- || die "setting statedir"
- sed -i \
- -e "s:GENTOO_HACKDIR:${HACKDIR}:" include/config.h \
- || die "setting hackdir"
- # set the default pager from the environment bug #52122
- if [[ -n "${PAGER}" ]] ; then
- sed -i \
- -e "115c\#define DEF_PAGER \"${PAGER}\"" \
- include/unixconf.h \
- || die "setting statedir"
- # bug #57410
- sed -i \
- -e "s/^DATNODLB =/DATNODLB = \$(DATHELP)/" Makefile \
- || die "sed Makefile failed"
- fi
-
- if use X ; then
- epatch "${FILESDIR}/${PV}-X-support.patch"
- if use qt3 ; then
- epatch "${FILESDIR}/${PV}-QT-support.patch"
- fi
- fi
-}
-
-src_compile() {
- local qtver=
- local lflags="-L/usr/X11R6/lib"
-
- has_version =x11-libs/qt-3* \
- && qtver=3 \
- || qtver=2
- cd "${S}"/src
- append-flags -I../include
-
- emake \
- QTDIR=/usr/qt/${qtver} \
- CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
- LFLAGS="${lflags}" \
- ../util/makedefs \
- || die "initial makedefs build failed"
- emake \
- QTDIR=/usr/qt/${qtver} \
- CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
- LFLAGS="${lflags}" \
- || die "main build failed"
- cd "${S}"/util
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" recover || die "util build failed"
-}
-
-src_install() {
- make \
- CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
- LFLAGS="-L/usr/X11R6/lib" \
- GAMEPERM=0755 \
- GAMEUID="${GAMES_USER}" GAMEGRP="${GAMES_GROUP}" \
- PREFIX="${D}/usr" \
- GAMEDIR="${D}${HACKDIR}" \
- SHELLDIR="${D}/${GAMES_BINDIR}" \
- install \
- || die "make install failed"
-
- # We keep this stuff in ${GAMES_STATEDIR} instead so tidy up.
- rm -rf "${D}/usr/share/games/nethack/save"
-
- newgamesbin util/recover recover-nethack || die "newgamesbin failed"
-
- # The final nethack is a sh script. This fixes the hard-coded
- # HACKDIR directory so it doesn't point to ${D}/usr/share/nethackdir
- sed -i \
- -e "s:^\(HACKDIR=\).*:\1${HACKDIR}:" \
- "${D}${GAMES_BINDIR}/nethack" \
- || die "sed ${GAMES_BINDIR}/nethack failed"
-
- doman doc/*.6
- dodoc doc/*.txt
-
- # Can be copied to ~/.nethackrc to set options
- # Add this to /etc/.skel as well, thats the place for default configs
- insinto "${HACKDIR}"
- doins "${FILESDIR}/dot.nethackrc"
-
- local windowtypes="tty"
- use qt3 && windowtypes="${windowtypes} qt"
- use X && windowtypes="${windowtypes} x11"
- set -- ${windowtypes}
- sed -i \
- -e "s:GENTOO_WINDOWTYPES:${windowtypes}:" \
- -e "s:GENTOO_DEFWINDOWTYPE:$1:" \
- "${D}${HACKDIR}/dot.nethackrc" \
- || die "sed ${HACKDIR}/dot.nethackrc failed"
- insinto /etc/skel
- newins "${D}/${HACKDIR}/dot.nethackrc" .nethackrc
-
- if use X ; then
- # install nethack fonts
- cd "${S}/win/X11"
- bdftopcf -o nh10.pcf nh10.bdf || die "Converting fonts failed"
- bdftopcf -o ibm.pcf ibm.bdf || die "Converting fonts failed"
- insinto "${HACKDIR}/fonts"
- doins *.pcf
- cd "${D}/${HACKDIR}/fonts"
- mkfontdir || die "The action mkfontdir ${HACKDIR}/fonts failed"
-
- # copy nethack x application defaults
- cd "${S}/win/X11"
- insinto /etc/X11/app-defaults
- newins NetHack.ad NetHack || die "Failed to install NetHack X app defaults"
- sed -i \
- -e 's:^!\(NetHack.tile_file.*\):\1:' \
- "${D}/etc/X11/app-defaults/NetHack" \
- || die "sed /etc/X11/app-defaults/NetHack failed"
- fi
-
- local statedir="${GAMES_STATEDIR}/${PN}"
- keepdir "${statedir}/save"
- mv "${D}/${HACKDIR}/"{record,logfile,perm} "${D}/${statedir}/"
- make_desktop_entry nethack "Nethack"
-
- prepgamesdirs
- chmod -R 660 "${D}/${statedir}"
- chmod 770 "${D}/${statedir}" "${D}/${statedir}/save"
- chown ${GAMES_USER}:${GAMES_SCORES_USER} "${D}/${HACKDIR}/nethack"
- chmod 2775 "${D}/${HACKDIR}/nethack"
-}
-
-pkg_postinst() {
- games_pkg_postinst
- if use qt3 && has_version '=x11-libs/qt-3.1*' ; then
- ewarn "the qt frontend may be a little unstable with this version of qt"
- ewarn "please see Bug 32629 for more information"
- fi
- elog "You may want to look at /etc/skel/.nethackrc for interesting options"
-}
diff --git a/profiles/categories b/profiles/categories
deleted file mode 100644
index cdcad81..0000000
--- a/profiles/categories
+++ /dev/null
@@ -1,3 +0,0 @@
-games-arcade
-games-fps
-games-roguelike