/[gentoo-x86]/games-fps/unreal-tournament-goty/unreal-tournament-goty-436.ebuild
Gentoo

Contents of /games-fps/unreal-tournament-goty/unreal-tournament-goty-436.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Sun Jun 14 17:25:09 2015 UTC (3 years, 1 month ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +7 -15 lines
[QA] Remove emul-linux-x86-* from dependencies.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/unreal-tournament-goty/unreal-tournament-goty-436.ebuild,v 1.17 2014/10/15 11:42:52 pacho Exp $
4
5 EAPI=5
6
7 inherit eutils unpacker cdrom games
8
9 DESCRIPTION="Futuristic FPS (Game Of The Year edition)"
10 HOMEPAGE="http://www.unrealtournament.com/"
11 SRC_URI="ftp://ftp.lokigames.com/pub/beta/ut/ut-install-${PV}-GOTY.run
12 ftp://ftp.lokigames.com/pub/patches/ut/IpDrv-${PV}-Linux-08-20-02.zip"
13
14 LICENSE="all-rights-reserved"
15 SLOT="0"
16 KEYWORDS="x86"
17 IUSE="3dfx S3TC nls opengl"
18 RESTRICT="mirror bindist"
19
20 DEPEND="!games-fps/unreal-tournament
21 app-arch/unzip
22 "
23 RDEPEND="
24 opengl? ( virtual/opengl[abi_x86_32(-)] )
25 x11-libs/libXext[abi_x86_32(-)]
26 x11-libs/libX11[abi_x86_32(-)]
27 x11-libs/libXau[abi_x86_32(-)]
28 x11-libs/libXdmcp[abi_x86_32(-)]
29 "
30
31 S=${WORKDIR}
32
33 src_unpack() {
34 cdrom_get_cds System/ Help/chaosut
35 unpack_makeself ut-install-${PV}-GOTY.run
36 unpack IpDrv-${PV}-Linux-08-20-02.zip
37 }
38
39 src_install() {
40 local dir=${GAMES_PREFIX_OPT}/${PN/-goty/}
41 local Ddir=${D}/${dir}
42 dodir "${dir}"
43
44 ###########
45 ### PRE ###
46 # System
47 if use 3dfx ; then
48 tar -zxf Glide.ini.tar.gz -C "${Ddir}" || die "install Glide ini"
49 else
50 tar -zxf OpenGL.ini.tar.gz -C "${Ddir}" || die "install OpenGL ini"
51 fi
52 tar -zxf data.tar.gz -C "${Ddir}" || die "extract System data"
53
54 # the most important things, ucc & ut :)
55 exeinto "${dir}"
56 doexe bin/x86/{ucc,ut} || die "install ucc/ut"
57 sed -i -e "s:\`FindPath \$0\`:${dir}:" "${ED}/${dir}"/ucc || die
58
59 # export some symlinks so ppl can run
60 dodir "${GAMES_BINDIR}"
61 dosym "${dir}"/ucc "${GAMES_BINDIR}"/ucc
62 dosym "${dir}"/ut "${GAMES_BINDIR}"/ut
63 ### PRE ###
64 ###########
65
66 ###########
67 ### CD1 ###
68 # Help, Logs, Music, Sounds, Textures, Web
69 cp -rf "${CDROM_ROOT}"/{Help,Logs,Music,Textures,Web} "${Ddir}"/ || die "copy Help, Logs, Music, Textures, Web CD1"
70 dodir "${dir}"/Sounds
71 if use nls ; then
72 cp -rf "${CDROM_ROOT}"/Sounds/* "${Ddir}"/Sounds/ || die "copy Sounds CD1"
73 else
74 cp -rf "${CDROM_ROOT}"/Sounds/*.uax "${Ddir}"/Sounds/ || die "copy Sounds CD1"
75 fi
76
77 # System
78 dodir "${dir}"/System
79 if use nls ; then
80 cp "${CDROM_ROOT}"/System/*.{est,frt,itt,int,u} "${Ddir}"/System/ || die "copy System data CD1"
81 else
82 cp "${CDROM_ROOT}"/System/*.{int,u} "${Ddir}"/System/ || die "copy System data CD1"
83 fi
84
85 # now we uncompress the maps
86 einfo "Uncompressing CD1 Maps ... this may take some time"
87 dodir "${dir}"/Maps
88 cd "${Ddir}"
89 export HOME=${T}
90 export UT_DATA_PATH="${Ddir}"/System
91 for f in `find "${CDROM_ROOT}"/Maps/ -name '*.uz' -printf '%f '` ; do
92 ./ucc decompress "${CDROM_ROOT}"/Maps/${f} -nohomedir || die "uncompressing map CD1 ${f}"
93 mv System/${f:0:${#f}-3} Maps/ || die "copy map CD1 ${f}"
94 done
95 ### CD1 ###
96 ###########
97
98 ### Have user switch cds if need be ###
99 cdrom_load_next_cd
100
101 ###########
102 ### CD2 ###
103 # Help, Sounds
104 cp -rf "${CDROM_ROOT}"/{Help,Sounds} "${Ddir}"/ || die "copy Help, Sounds CD2"
105
106 # S3TC Textures
107 if use S3TC ; then
108 cp -rf "${CDROM_ROOT}"/Textures "${Ddir}"/ || die "copy S3TC Textures CD2"
109 else
110 cp -rf "${CDROM_ROOT}"/Textures/{JezzTex,Jezztex2,SnowDog,chaostex{,2}}.utx "${Ddir}"/Textures/ || die "copy Textures CD2"
111 fi
112
113 # System
114 cp -rf "${CDROM_ROOT}"/System/*.{u,int} "${Ddir}"/System/ || die "copy System CD2"
115
116 # now we uncompress the maps
117 einfo "Uncompressing CD2 Maps ... this may take some time"
118 dodir "${dir}"/Maps
119 cd "${Ddir}"
120 export HOME=${T}
121 export UT_DATA_PATH="${Ddir}"/System
122 for f in `find "${CDROM_ROOT}"/maps/ -name '*.uz' -printf '%f '` ; do
123 ./ucc decompress "${CDROM_ROOT}"/maps/${f} -nohomedir || die "uncompressing map CD2 ${f}"
124 mv System/${f:0:${#f}-3} Maps/ || die "copy map CD2 ${f}"
125 done
126 ### CD2 ###
127 ###########
128
129 ###########
130 ### END ###
131 cd "${S}"
132
133 # Textures
134 tar -zxf Credits.tar.gz -C "${Ddir}" || die "extract credits texture"
135 # NetGamesUSA.com
136 tar -zxf NetGamesUSA.com.tar.gz -C "${Ddir}"/ || die "extract NetGamesUSA.com"
137
138 # Patch UT-GOTY
139 cd setup.data
140 cp patch.dat{,.orig} || die "cp failed"
141 sed -e 's:sh uz-maps.sh:echo:' patch.dat.orig > patch.dat || die "sed failed"
142 ./bin/Linux/x86/loki_patch patch.dat "${Ddir}" || die "failed to patch"
143 cd "${S}"
144
145 # now we install the IpDrv.so patch
146 insinto "${dir}"/System
147 doins IpDrv.so || die "install IpDrv.so patch"
148
149 # install a few random files
150 insinto "${dir}"
151 doins README icon.{bmp,xpm} || die "installing random files"
152
153 # now, since these files are coming off a cd, the times/sizes/md5sums wont
154 # be different ... that means portage will try to unmerge some files (!)
155 # we run touch on ${D} so as to make sure portage doesnt do any such thing
156 find "${Ddir}" -exec touch '{}' \;
157 ### END ###
158 ###########
159
160 prepgamesdirs
161 }
162
163 pkg_postinst() {
164 games_pkg_postinst
165 elog "You might want to install the bonus packs too."
166 elog "Many servers on the internet use them, and the"
167 elog "majority of players do too."
168 elog
169 elog "Just run: emerge unreal-tournament-bonuspacks"
170 }

  ViewVC Help
Powered by ViewVC 1.1.20