blob: d17e4baee1a45eaef6aa9c2ccc65e2a15f428dda (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-demo/ut2004-demo-3334.ebuild,v 1.20 2012/02/05 06:09:22 vapier Exp $
inherit eutils unpacker games
MY_P="ut2004-lnx-demo${PV}.run"
DESCRIPTION="Demo for the critically-acclaimed first-person shooter"
HOMEPAGE="http://www.unrealtournament.com/"
SRC_URI="http://dev.gentoo.org/~tupone/${MY_P}"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* x86 amd64"
RESTRICT="strip"
IUSE=""
DEPEND=""
RDEPEND="virtual/opengl
=virtual/libstdc++-3.3
x86? (
x11-libs/libX11
x11-libs/libXext )
amd64? (
app-emulation/emul-linux-x86-xlibs )"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
src_unpack() {
unpack_makeself
unpack ./setupstuff.tar.gz
}
src_install() {
dodir "${dir}"
tar xjf ut2004demo.tar.bz2 -C "${Ddir}" || die "unpacking ut2004 failed"
if use x86
then
tar xjf linux-x86.tar.bz2 || die "unpacking exe"
fi
if use amd64
then
tar xjf linux-amd64.tar.bz2 || die "unpacking exe"
fi
insinto "${dir}"
doins README.linux ut2004.xpm
newicon ut2004.xpm ut2004-demo.xpm
exeinto "${dir}"
doexe bin/ut2004-demo
exeinto "${dir}"/System
doexe System/{libSDL-1.2.so.0,openal.so,ucc-bin,ut2004-bin}
dodir
games_make_wrapper ut2004-demo ./ut2004-demo "${dir}" "${dir}"
make_desktop_entry ut2004-demo "Unreal Tournament 2004 (Demo)" ut2004-demo
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
echo
elog "For Text To Speech:"
elog " 1) emerge festival speechd"
elog " 2) Edit your ~/.ut2004demo/System/UT2004.ini file."
elog " In the [SDLDrv.SDLClient] section, add:"
elog " TextToSpeechFile=/dev/speech"
elog " 3) Start speechd."
elog " 4) Start the game. Be sure to go into the Audio"
elog " options and enable Text To Speech."
echo
elog "To test, pull down the console (~) and type:"
elog " TTS this is a test."
echo
elog "You should hear something that sounds like 'This is a test.'"
echo
}
|