blob: 17c760430db1ce1a6765fa81cb5bad4f9290be2a (
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
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/rune/rune-1.07.ebuild,v 1.2 2005/10/27 22:39:43 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="Viking hack and slay game"
HOMEPAGE="http://www.runegame.com"
SRC_URI=""
LICENSE="LOKI-EULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="virtual/x11
!amd64? ( =media-libs/libsdl-1.2* )
opengl? ( virtual/opengl )
amd64? ( app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-sdl )"
DEPEND=""
S=${WORKDIR}
GAMES_CHECK_LICENSE="yes"
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
pkg_setup() {
games_pkg_setup
cdrom_get_cds System/rune-bin
}
src_unpack() {
# unpack the data files
dodir "${dir}"
tar xzf "${CDROM_ROOT}"/data.tar.gz || die "Could not unpack data.tar.gz"
}
src_install() {
insinto "${dir}"
exeinto "${dir}"
einfo "Copying files... this may take a while..."
for j in Help Maps Meshes Sounds System Textures Web
do
doins -r ${j} || die "copying ${j}"
done
# copy linux specific files
doins -r "${CDROM_ROOT}"/System \
|| die "Could not copy Linux specific files"
# the most important things: rune and ucc :)
doexe "${CDROM_ROOT}"/bin/x86/rune \
|| die "Could not install rune executable"
fperms 750 ${dir}/System/{ucc{,-bin},rune-bin} \
|| die "Could not make executables executable"
use amd64 && mv ${Ddir}/System/libSDL-1.2.so.0 \
${Ddir}/System/libSDL-1.2.so.0.backup
games_make_wrapper rune ./rune "${dir}" "${dir}"
# installing documentation/icon
dodoc "${CDROM_ROOT}"/{README,CREDITS} || die "Could not dodoc README.linux"
newicon "${CDROM_ROOT}"/icon.xpm rune.xpm || die "Could not copy pixmap"
make_desktop_entry rune "Rune" rune.xpm "Game;ActionGame"
find ${Ddir} -exec touch '{}' \;
prepgamesdirs
}
|