blob: a0258858ff3f82981b87a9ea42e2d5b9062d2225 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/unreal/unreal-226.ebuild,v 1.15 2006/10/29 03:48:04 vapier Exp $
inherit eutils games
DESCRIPTION="Futuristic FPS (a hack that runs on top of Unreal Tournament)"
HOMEPAGE="http://www.unreal.com/ http://icculus.org/~chunky/ut/unreal/"
SRC_URI="http://www.icculus.org/%7Echunky/ut/unreal/unreali-install.run
ftp://ftp.lokigames.com/pub/patches/ut/ut-install-436.run
ftp://ftp.lokigames.com/pub/patches/ut/IpDrv-436-Linux-08-20-02.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* x86"
IUSE="X opengl"
DEPEND="sys-libs/lib-compat
app-arch/unzip"
RDEPEND="!amd64? (
|| (
(
x11-libs/libXext
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp )
virtual/x11 )
=media-libs/libsdl-1.2*
opengl? ( virtual/opengl ) )
amd64? ( app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-xlibs )"
S=${WORKDIR}
src_unpack() {
export CDROM_NAME_1="Unreal CD"
export CDROM_NAME_2="Unreal Tournament CD"
cdrom_get_cds System/Unreal.ini System/UnrealTournament.ini
unpack_makeself unreali-install.run
mkdir ut
cd ut
unpack_makeself ut-install-436.run
unpack IpDrv-436-Linux-08-20-02.zip
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/unreal
dodir "${dir}"
tar -zxf ut/data.tar.gz -C "${D}/${dir}"
tar -zxf ut/OpenGL.ini.tar.gz -C "${D}/${dir}"
tar -zxf System.tar.gz -C "${D}/${dir}"
insinto "${dir}"/System
doins ut/IpDrv.so
cp -rf "${CDROM_ROOT}"/{Maps,Music,Sounds} "${D}/${dir}/"
for f in "${D}/${dir}"/Maps/Dm*.unr ; do
mv "${f}" "${f/Dm/DM-}"
done
dosym Maps "${dir}"/maps
if has_version '<games-fps/unreal-tournament-451' \
|| has_version '<games-fps/unreal-tournament-goty-451' ; then
CDROM_ROOT="${GAMES_PREFIX_OPT}/unreal-tournament"
else
cdrom_load_next_cd
fi
insinto "${dir}"/Textures
doins "${CDROM_ROOT}"/Textures/*.utx
insinto "${dir}"/Sounds
doins "${CDROM_ROOT}"/Sounds/*.uax
insinto "${dir}"/System
doins "${CDROM_ROOT}"/System/*.u
insinto "${dir}"/Music
doins "${CDROM_ROOT}"/Music/*.umx
insinto "${dir}"
doins icon.* README*
exeinto "${dir}"
doexe bin/x86/unreal
games_make_wrapper unreal ./unreal "${dir}" "${dir}"
prepgamesdirs
}
|