summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-09-05 15:43:44 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-09-05 15:43:44 +0000
commit452d60a7143b3cb6c5f4dd38081efa7a5440a0ed (patch)
treee12d37daebecae0fc9935b39a224c6a8fbf4700f /games-strategy
parentInitial commit, bug #194788. gtk2-ssh-askpass replacement (diff)
downloadgentoo-2-452d60a7143b3cb6c5f4dd38081efa7a5440a0ed.tar.gz
gentoo-2-452d60a7143b3cb6c5f4dd38081efa7a5440a0ed.tar.bz2
gentoo-2-452d60a7143b3cb6c5f4dd38081efa7a5440a0ed.zip
reworked ebuild and wrapper script from Scarabeus
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/savage-bin/ChangeLog6
-rw-r--r--games-strategy/savage-bin/files/savage28
-rw-r--r--games-strategy/savage-bin/savage-bin-2.00e.ebuild82
3 files changed, 64 insertions, 52 deletions
diff --git a/games-strategy/savage-bin/ChangeLog b/games-strategy/savage-bin/ChangeLog
index a63ce76e2aba..91c2cf927c79 100644
--- a/games-strategy/savage-bin/ChangeLog
+++ b/games-strategy/savage-bin/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-strategy/savage-bin
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage-bin/ChangeLog,v 1.6 2008/08/01 08:49:07 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage-bin/ChangeLog,v 1.7 2008/09/05 15:43:44 mr_bones_ Exp $
+
+ 05 Sep 2008; Michael Sterrett <mr_bones_@gentoo.org> +files/savage,
+ savage-bin-2.00e.ebuild:
+ reworked ebuild and wrapper script from Scarabeus
01 Aug 2008; Chris Gianelloni <wolf31o2@gentoo.org> metadata.xml:
Removing myself as maintainer since I'm retiring.
diff --git a/games-strategy/savage-bin/files/savage b/games-strategy/savage-bin/files/savage
new file mode 100644
index 000000000000..de9640de1fa3
--- /dev/null
+++ b/games-strategy/savage-bin/files/savage
@@ -0,0 +1,28 @@
+#!/usr/bin/env sh
+games_prefix_opt="%GAMES_PREFIX_OPT%"
+if [ -n "${games_prefix_opt}/savage/libs" ] ; then
+ if [ "${LD_LIBRARY_PATH+set}" = "set" ] ; then
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${games_prefix_opt}/savage/libs"
+ else
+ export LD_LIBRARY_PATH="${games_prefix_opt}/savage/libs"
+ fi
+fi
+if [[ ! -e ~/.savage/savage-bin/silverback.bin ]] ; then
+ echo "setting game environment in ~/.savage/savage-bin"
+ mkdir -p ~/.savage/savage-bin/game
+ cd ~/.savage/savage-bin/ || die "squirells hate us"
+ ln -s "${games_prefix_opt}"/savage/silverback.bin ./
+ ln -s "${games_prefix_opt}"/savage/autoupdater ./
+ ln -s "${games_prefix_opt}"/savage/libs ./
+ cd game
+ ln -s "${games_prefix_opt}"/savage/game/* ./
+ rm -f screenshots settings buddylist ignorelist *.cfg *.txt world
+ cp "${games_prefix_opt}"/savage/game/*.cfg ./
+ mkdir screenshots settings world
+ cd settings
+ cp "${games_prefix_opt}"/savage/game/settings/* ./
+ cd ../world
+ ln -s "${games_prefix_opt}"/savage/game/world/* ./
+fi
+cd ~/.savage/savage-bin/
+exec ./silverback.bin set mod game "${@}"
diff --git a/games-strategy/savage-bin/savage-bin-2.00e.ebuild b/games-strategy/savage-bin/savage-bin-2.00e.ebuild
index 3045e2abef6a..5f03867c4ca3 100644
--- a/games-strategy/savage-bin/savage-bin-2.00e.ebuild
+++ b/games-strategy/savage-bin/savage-bin-2.00e.ebuild
@@ -1,84 +1,64 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage-bin/savage-bin-2.00e.ebuild,v 1.3 2008/03/11 06:18:58 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/savage-bin/savage-bin-2.00e.ebuild,v 1.4 2008/09/05 15:43:44 mr_bones_ Exp $
-inherit eutils games
-
-SEP_URI="http://www.notforidiots.com/autoupdater/"
-BASE_URI="http://downloads.s2games.com/online_orders/"
+inherit games
DESCRIPTION="Unique mix of strategy and FPS"
-HOMEPAGE="http://www.s2games.com/savage/"
-#SRC_URI="${BASE_URI}/savage_linux.sh.gz
-# mirror://liflg/savage_${PV}-english.update.run
-# ${SEP_URI}/SEP-3T.tar.gz
-SRC_URI="http://www.happypuppy.com/s2games/Savage_with_sep3t.run
- ${SEP_URI}/SEP-3T_3T+-r2.tar.gz
- !sse? ( ${SEP_URI}/SEP-2C-noSSE.tar.gz )"
-# doc? (${MANUAL_URI})"
+HOMEPAGE="http://www.s2games.com/savage/
+ http://www.notforidiots.com/SFE/"
+SRC_URI="http://www.notforidiots.com/SFE/SFE-Standalone.tar.gz"
LICENSE="as-is"
SLOT="0"
-KEYWORDS="~x86"
-IUSE="sse" #dedicated
+KEYWORDS="~amd64 ~x86"
+IUSE=""
RESTRICT="mirror strip"
-DEPEND=""
-RDEPEND=""
+RDEPEND="virtual/opengl
+ media-libs/libsdl
+ media-libs/jpeg
+ >=media-libs/freetype-2"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/savage
-Ddir=${D}/${dir}
QA_TEXTRELS="${dir:1}/libs/libfmod.so
- ${dir:1}/libs/libfmod-3.63.so
${dir:1}/libs/libfmod-3.75.so"
QA_EXECSTACK="${dir:1}/libs/libfmod.so
${dir:1}/libs/libfmod-3.75.so"
src_unpack() {
- unpack_makeself Savage_with_sep3t.run
- unpack ./savage.tar.bz2
- unpack ./graveyard.tar.bz2
- unpack SEP-3T_3T+-r2.tar.gz
- if use !sse;then
- unpack SEP-2C-noSSE.tar.gz
- fi
- rm -rf bin setup.* savage.tar.bz2 graveyard.tar.bz2 autoupdater update*
+ unpack ${A}
+ cd "${S}"
+ rm -f graveyard/game.dll *.sh
+ sed \
+ -e "s:%GAMES_PREFIX_OPT%:${GAMES_PREFIX_OPT}:" \
+ "${FILESDIR}"/savage > "${T}"/savage \
+ || die "sed failed"
}
src_install() {
- exeinto "${dir}"
insinto "${dir}"
- doins -r "${S}"/*
- doexe silverback.bin dedicated_server.bin
- touch "${Ddir}"/scripts.log
- fperms ug+w "${dir}"/scripts.log
-
- # Here, we default to the best resolution.
- sed -i \
- 's/setsave vid_mode 4/setsave vid_mode 1/' \
- "${Ddir}"/game/startup.cfg
-
- newicon icon.xpm savage.xpm
- games_make_wrapper savage "./silverback.bin set mod game" "${dir}" "${dir}"/libs
- make_desktop_entry savage "Savage: Battle For Newerth" savage
-
- games_make_wrapper savage-editor "./silverback.bin set mod editor" "${dir}" "${dir}"/libs
- make_desktop_entry savage-editor "Savage Editor" savage
+ doins -r * || die "doins failed"
+ fperms g+x "${dir}"/silverback.bin || die "fperms failed"
+ dosym /dev/null "${dir}"/scripts.log || die "dosym failed"
+
+ dogamesbin "${T}"/savage
+ make_desktop_entry savage "Savage: The Battle For Newerth"
- games_make_wrapper savage-graveyard "./silverback.bin set mod graveyard" "${dir}" "${dir}"/libs
- make_desktop_entry savage-graveyard "Savage: Graveyard Mod" savage
+ games_make_wrapper savage-graveyard "./silverback.bin set mod graveyard" \
+ "${dir}" "${dir}"/libs
+ make_desktop_entry savage-graveyard "Savage: Graveyard"
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
- elog " USE CDKEY:00000000000000000000 to activate the game"
- echo
- elog "To play the game, use:"
- elog " savage"
- echo
+ elog "In order to play \"Savage: The Battle For Newerth\", use:"
+ elog "savage"
+ elog "In order to start Editor, use:"
+ elog "savage-graveyard"
}