blob: 54bbfb6b136cee9f45442732c0070ddb5a81be48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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.6 2008/12/06 14:57:20 nyhm Exp $
inherit eutils games
DESCRIPTION="Unique mix of strategy and FPS"
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="~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="virtual/opengl
media-libs/libsdl
media-libs/jpeg
>=media-libs/freetype-2"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/savage
QA_TEXTRELS="${dir:1}/libs/libfmod.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 ${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() {
insinto "${dir}"
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"
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "In order to play \"Savage: The Battle For Newerth\", use:"
elog "savage"
elog "In order to start Editor, use:"
elog "savage-graveyard"
}
|