Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/quake4-bin: quake4-bin-1.4.2-r1.ebuild ChangeLog
Date: Wed, 09 Jul 2014 19:48:21
Message-Id: 20140709194817.2D5D62004E@flycatcher.gentoo.org
1 axs 14/07/09 19:48:17
2
3 Modified: ChangeLog
4 Added: quake4-bin-1.4.2-r1.ebuild
5 Log:
6 Bumped EAPI to 5, adjusted deps for gx86-multilib, added s3tc support message and dep, made USE=dedicated install only the server as it should
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
9
10 Revision Changes Path
11 1.41 games-fps/quake4-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake4-bin/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake4-bin/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake4-bin/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -u -r1.40 -r1.41
23 --- ChangeLog 8 Feb 2012 21:20:12 -0000 1.40
24 +++ ChangeLog 9 Jul 2014 19:48:17 -0000 1.41
25 @@ -1,6 +1,13 @@
26 # ChangeLog for games-fps/quake4-bin
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/ChangeLog,v 1.40 2012/02/08 21:20:12 vapier Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/ChangeLog,v 1.41 2014/07/09 19:48:17 axs Exp $
31 +
32 +*quake4-bin-1.4.2-r1 (09 Jul 2014)
33 +
34 + 09 Jul 2014; Ian Stakenvicius (_AxS_) <axs@g.o>
35 + +quake4-bin-1.4.2-r1.ebuild:
36 + Bumped EAPI to 5, adjusted deps for gx86-multilib, added s3tc support message
37 + and dep, made USE=dedicated install only the server as it should
38
39 08 Feb 2012; Mike Frysinger <vapier@g.o> quake4-bin-1.3.2.ebuild,
40 quake4-bin-1.4.2.ebuild:
41 @@ -184,4 +191,3 @@
42 24 Oct 2005; Chris Gianelloni <wolf31o2@g.o> +metadata.xml,
43 +quake4-bin-1.0.2147.12.ebuild:
44 Initial import. Ebuilds by me. Closing bug #109825.
45 -
46
47
48
49 1.1 games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild?rev=1.1&content-type=text/plain
53
54 Index: quake4-bin-1.4.2-r1.ebuild
55 ===================================================================
56 # Copyright 1999-2014 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild,v 1.1 2014/07/09 19:48:17 axs Exp $
59
60 EAPI=5
61 inherit eutils unpacker games
62
63 DESCRIPTION="Sequel to Quake 2, an id Software 3D first-person shooter"
64 HOMEPAGE="http://www.quake4game.com/"
65 SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run"
66
67 LICENSE="QUAKE4"
68 SLOT="0"
69 KEYWORDS="-* ~amd64 ~x86"
70 IUSE="cdinstall dedicated linguas_cs linguas_fr linguas_it linguas_pl linguas_ru"
71 RESTRICT="strip"
72
73 # QUAKE4 NEEDS s3tc support, which can be obtained for OSS drivers via
74 # media-libs/libtxc_dxtn and is built into the proprietary drivers.
75 # depend optionally on them but elog too, in case a user has both
76 # proprietary and OSS drivers installed and sees the segfault.
77
78 RDEPEND="sys-libs/glibc
79 amd64? ( sys-libs/glibc[multilib] )
80 || (
81 sys-libs/zlib[abi_x86_32(-)]
82 app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
83 )
84 dedicated? ( app-misc/screen )
85 !dedicated? (
86 || (
87 >=media-libs/libtxc_dxtn-1.0.1-r1[abi_x86_32(-)]
88 x11-drivers/nvidia-drivers
89 >=x11-drivers/ati-drivers-8.8.25-r1
90 )
91 || (
92 (
93 >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
94 >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
95 >=media-libs/libsdl-1.2.15-r4[X,opengl,sound,abi_x86_32(-)]
96 )
97 (
98 app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
99 app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
100 app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
101 )
102 )
103 )
104 cdinstall? ( games-fps/quake4-data )"
105
106 S=${WORKDIR}
107 dir=${GAMES_PREFIX_OPT}/quake4
108 Ddir=${D}/${dir}
109
110 QA_TEXTRELS="${dir:1}/pb/pbag.so
111 ${dir:1}/pb/pbags.so
112 ${dir:1}/pb/pbcl.so
113 ${dir:1}/pb/pbcls.so
114 ${dir:1}/pb/pbsv.so
115 ${dir:1}/libSDL-1.2.id.so.0"
116 QA_EXECSTACK="${dir:1}/quake4.x86
117 ${dir:1}/quake4smp.x86
118 ${dir:1}/q4ded.x86
119 ${dir:1}/libSDL-1.2.id.so.0"
120
121 zpaklang() {
122 if ! use linguas_${1} ; then
123 einfo "Removing ${2} zpak files"
124 rm -f q4base/zpak_${2}*
125 fi
126 }
127
128 src_unpack() {
129 unpack_makeself ${A}
130
131 mv q4icon.bmp quake4.bmp || die
132
133 # Am including the Spanish files because Spanish is the default language
134 #zpaklang es spanish
135 zpaklang cs czech
136 zpaklang fr french
137 zpaklang it italian
138 zpaklang pl polish
139 zpaklang ru russian
140
141 # Rename the .off files, so they will be used
142 cd q4base
143 if [[ ! -z $(ls *.off 2> /dev/null) ]] ; then
144 local f
145 for f in *.off ; do
146 einfo "Renaming ${f}"
147 mv "${f}" "${f%.off}" || die "mv ${f}"
148 done
149 fi
150 }
151
152 src_install() {
153 insinto "${dir}"
154 doins CHANGES* License.txt sdl.patch.1.2.10 us/version.info
155 doins -r pb q4mp
156 dodoc README*
157
158 insinto "${dir}"/q4base
159 doins q4base/* us/q4base/* || die "doins q4base"
160 games_make_wrapper quake4-ded ./q4ded.x86 "${dir}" "${dir}"
161
162 exeinto "${dir}"
163 doexe openurl.sh bin/Linux/x86/q4ded.x86
164
165 if ! use dedicated ; then
166 doexe bin/Linux/x86/{quake4{,smp}.x86,*.id.so.?}
167 doicon quake4.bmp || die "doicon"
168 games_make_wrapper quake4 "./quake4.x86" "${dir}" "${dir}"
169 games_make_wrapper quake4-smp ./quake4smp.x86 "${dir}" "${dir}"
170 icon_path="quake4"
171 if [ -e "${FILESDIR}"/quake4.png ]
172 then
173 doicon "${FILESDIR}"/quake4.png || die "copying icon"
174 elif [ -e "${DISTDIR}"/quake4.png ]
175 then
176 doicon "${DISTDIR}"/quake4.png || die "copying icon"
177 else
178 icon_path=/usr/share/pixmaps/quake4.bmp
179 fi
180 make_desktop_entry quake4 "Quake IV" ${icon_path}
181 make_desktop_entry quake4-smp "Quake IV (SMP)" ${icon_path}
182 fi
183
184 prepgamesdirs
185 }
186
187 pkg_postinst() {
188 games_pkg_postinst
189
190 if ! use cdinstall ; then
191 elog "You need to copy pak001.pk4 through pak012.pk4, along with"
192 elog "zpak*.pk4 from either your installation media or your hard drive"
193 elog "to ${dir}/q4base before running the game."
194 echo
195 fi
196 if ! use dedicated ; then
197 elog "To play the game, run: quake4"
198 elog
199 # The default language is Spanish!
200 elog "To reset the language from Spanish to English, run:"
201 elog " sed -i 's:spanish:english:' ~/.quake4/q4base/Quake4Config.cfg"
202 elog
203 elog "Saved games from previous Quake 4 versions might not be compatible."
204 elog
205 elog "If you get a segmentation fault or an error regarding"
206 elog "'GL_EXT_texture_compression_s3tc', you can obtain the"
207 elog "necessary support for your mesa drivers by installing"
208 elog "media-libs/libtxc_dxtn (for abi_x86_32 if multilib)."
209 echo
210 fi
211 elog "To start the dedicated server, run: quake4-ded"
212 }