summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-01-24 18:01:43 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-01-24 18:01:43 +0000
commit855961012c68f45ec7ecd38d38e1841f224cd44f (patch)
treee0300792974a9c5f024910b8fab04b2917a61d3e /games-fps/rtcw
parentAdded more quoting and second dir entry on dedictated games_make_wrapper. (diff)
downloadgentoo-2-855961012c68f45ec7ecd38d38e1841f224cd44f.tar.gz
gentoo-2-855961012c68f45ec7ecd38d38e1841f224cd44f.tar.bz2
gentoo-2-855961012c68f45ec7ecd38d38e1841f224cd44f.zip
Added modular X dependencies and some general cleanup.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'games-fps/rtcw')
-rw-r--r--games-fps/rtcw/ChangeLog7
-rw-r--r--games-fps/rtcw/rtcw-1.41-r2.ebuild63
2 files changed, 43 insertions, 27 deletions
diff --git a/games-fps/rtcw/ChangeLog b/games-fps/rtcw/ChangeLog
index 0ba516b22e8d..7a1d68f0e393 100644
--- a/games-fps/rtcw/ChangeLog
+++ b/games-fps/rtcw/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-fps/rtcw
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/ChangeLog,v 1.24 2005/10/21 17:39:31 wolf31o2 Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/ChangeLog,v 1.25 2006/01/24 18:01:43 wolf31o2 Exp $
+
+ 24 Jan 2006; Chris Gianelloni <wolf31o2@gentoo.org> rtcw-1.41-r2.ebuild:
+ Added modular X dependencies and some general cleanup.
21 Oct 2005; Chris Gianelloni <wolf31o2@gentoo.org> rtcw-1.41-r2.ebuild:
Added addition dir variable to games_make_wrapper for bug #109793.
diff --git a/games-fps/rtcw/rtcw-1.41-r2.ebuild b/games-fps/rtcw/rtcw-1.41-r2.ebuild
index f8af4e1bc65a..0cebd1493273 100644
--- a/games-fps/rtcw/rtcw-1.41-r2.ebuild
+++ b/games-fps/rtcw/rtcw-1.41-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/rtcw-1.41-r2.ebuild,v 1.9 2005/10/21 17:39:31 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/rtcw/rtcw-1.41-r2.ebuild,v 1.10 2006/01/24 18:01:43 wolf31o2 Exp $
inherit eutils games
@@ -16,42 +16,55 @@ KEYWORDS="x86 amd64"
IUSE="opengl dedicated"
RESTRICT="nostrip nomirror"
-DEPEND="virtual/libc"
-RDEPEND="dedicated? ( app-misc/screen )
- !dedicated? ( virtual/opengl )
- opengl? ( virtual/opengl )
- amd64? ( app-emulation/emul-linux-x86-xlibs )"
+RDEPEND="sys-libs/glibc
+ dedicated? (
+ app-misc/screen )
+ !dedicated? (
+ virtual/opengl
+ || (
+ (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXau
+ x11-libs/libXdmcp )
+ virtual/x11 ) )
+ opengl? (
+ virtual/opengl
+ || (
+ (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXau
+ x11-libs/libXdmcp )
+ virtual/x11 ) )
+ amd64? (
+ app-emulation/emul-linux-x86-xlibs )"
S=${WORKDIR}
+GAMES_CHECK_LICENSE="yes"
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
-pkg_setup() {
- check_license RTCW
- games_pkg_setup
-}
-
src_unpack() {
unpack_makeself wolf-linux-goty-maps.x86.run
unpack_makeself wolf-linux-${PV}-3.x86.run
}
src_install() {
- dodir ${dir}
-
- cp -r main Docs pb ${Ddir}
+ insinto "${dir}"
+ doins -r main Docs pb
- exeinto ${dir}
- doexe bin/Linux/x86/*.x86 openurl.sh
+ exeinto "${dir}"
+ doexe bin/Linux/x86/*.x86 openurl.sh || die "copying exe"
- games_make_wrapper wolfmp ./wolf.x86 "${dir}" "${dir}"
- games_make_wrapper wolfsp ./wolfsp.x86 "${dir}" "${dir}"
+ games_make_wrapper rtcwmp ./wolf.x86 "${dir}" "${dir}"
+ games_make_wrapper rtcwsp ./wolfsp.x86 "${dir}" "${dir}"
if use dedicated; then
- games_make_wrapper wolf-ded ./wolfded.x86 ${dir}
+ games_make_wrapper wolf-ded ./wolfded.x86 "${dir}" "${dir}"
exeinto /etc/init.d
- newexe ${FILESDIR}/wolf-ded.rc wolf-ded
+ newexe "${FILESDIR}"/wolf-ded.rc wolf-ded
dosed "s:GENTOO_DIR:${dir}:" /etc/init.d/wolf-ded
fi
@@ -60,8 +73,8 @@ src_install() {
doicon WolfMP.xpm WolfSP.xpm
prepgamesdirs
- make_desktop_entry wolfmp "Return to Castle Wolfenstein (MP)" WolfMP.xpm
- make_desktop_entry wolfsp "Return to Castle Wolfenstein (SP)" WolfSP.xpm
+ make_desktop_entry rtcwmp "Return to Castle Wolfenstein (MP)" WolfMP.xpm
+ make_desktop_entry rtcwsp "Return to Castle Wolfenstein (SP)" WolfSP.xpm
}
pkg_postinst() {
@@ -75,8 +88,8 @@ pkg_postinst() {
einfo "sp_pak1.pk3 and sp_pak2.pk3 from a Window installation into ${dir}/main/"
echo
einfo "To play the game run:"
- einfo " wolfsp (single-player)"
- einfo " wolfmp (multi-player)"
+ einfo " rtcwsp (single-player)"
+ einfo " rtcwmp (multi-player)"
if use dedicated
then
echo