1 |
tetromino 14/06/29 00:42:47 |
2 |
|
3 |
Modified: ChangeLog wine-9999.ebuild |
4 |
Added: wine-1.7.21.ebuild |
5 |
Log: |
6 |
Version bump, see http://www.winehq.org/announce/1.7.21 for the announcement. Apply experimental gstreamer fix only when USE=gstreamer because it has been reported to cause crashes in Bioshock (thanks to David Heidelberger). |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
9 |
|
10 |
Revision Changes Path |
11 |
1.517 app-emulation/wine/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.517&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.517&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.516&r2=1.517 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v |
20 |
retrieving revision 1.516 |
21 |
retrieving revision 1.517 |
22 |
diff -u -r1.516 -r1.517 |
23 |
--- ChangeLog 18 Jun 2014 19:08:47 -0000 1.516 |
24 |
+++ ChangeLog 29 Jun 2014 00:42:47 -0000 1.517 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for app-emulation/wine |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.516 2014/06/18 19:08:47 mgorny Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.517 2014/06/29 00:42:47 tetromino Exp $ |
30 |
+ |
31 |
+*wine-1.7.21 (29 Jun 2014) |
32 |
+ |
33 |
+ 29 Jun 2014; Alexandre Rostovtsev <tetromino@g.o> +wine-1.7.21.ebuild, |
34 |
+ wine-9999.ebuild: |
35 |
+ Version bump, see http://www.winehq.org/announce/1.7.21 for the announcement. |
36 |
+ Apply experimental gstreamer fix only when USE=gstreamer because it has been |
37 |
+ reported to cause crashes in Bioshock (thanks to David Heidelberger). |
38 |
|
39 |
18 Jun 2014; Michał Górny <mgorny@g.o> wine-1.6.1.ebuild, |
40 |
wine-1.6.2.ebuild, wine-1.6.ebuild, wine-1.7.0.ebuild, wine-1.7.10.ebuild, |
41 |
|
42 |
|
43 |
|
44 |
1.172 app-emulation/wine/wine-9999.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.172&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.172&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?r1=1.171&r2=1.172 |
49 |
|
50 |
Index: wine-9999.ebuild |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v |
53 |
retrieving revision 1.171 |
54 |
retrieving revision 1.172 |
55 |
diff -u -r1.171 -r1.172 |
56 |
--- wine-9999.ebuild 18 Jun 2014 19:08:46 -0000 1.171 |
57 |
+++ wine-9999.ebuild 29 Jun 2014 00:42:47 -0000 1.172 |
58 |
@@ -1,6 +1,6 @@ |
59 |
# Copyright 1999-2014 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.171 2014/06/18 19:08:46 mgorny Exp $ |
62 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.172 2014/06/29 00:42:47 tetromino Exp $ |
63 |
|
64 |
EAPI="5" |
65 |
|
66 |
@@ -24,8 +24,8 @@ |
67 |
|
68 |
GV="2.24" |
69 |
MV="4.5.2" |
70 |
-PULSE_PATCHES="winepulse-patches-1.7.20" |
71 |
-COMPHOLIOV="1.7.20" |
72 |
+PULSE_PATCHES="winepulse-patches-1.7.21" |
73 |
+COMPHOLIOV="1.7.21" |
74 |
COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" |
75 |
WINE_GENTOO="wine-gentoo-2013.06.24" |
76 |
DESCRIPTION="Free implementation of Windows(tm) on Unix" |
77 |
@@ -320,7 +320,18 @@ |
78 |
use pulseaudio && PATCHES+=( |
79 |
"../${PULSE_PATCHES}"/*.patch #421365 |
80 |
) |
81 |
+ if use gstreamer; then |
82 |
+ # See http://bugs.winehq.org/show_bug.cgi?id=30557 |
83 |
+ ewarn "Applying experimental patch to fix GStreamer support. Note that" |
84 |
+ ewarn "this patch has been reported to cause crashes in certain games." |
85 |
+ |
86 |
+ PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch ) |
87 |
+ fi |
88 |
if use pipelight; then |
89 |
+ ewarn "Applying the unofficial Compholio patchset for Pipelight support," |
90 |
+ ewarn "which is unsupported by Wine developers. Please don't report bugs" |
91 |
+ ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" |
92 |
+ |
93 |
PATCHES+=( |
94 |
"../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 |
95 |
"../${COMPHOLIO_PATCHES}/patches/patch-list.patch" |
96 |
@@ -479,12 +490,6 @@ |
97 |
pkg_postinst() { |
98 |
gnome2_icon_cache_update |
99 |
fdo-mime_desktop_database_update |
100 |
- |
101 |
- if use pipelight; then |
102 |
- ewarn "You installed Wine with the unofficial Compholio patchset for Pipelight" |
103 |
- ewarn "support, which is unsupported by Wine developers. Please don't report" |
104 |
- ewarn "bugs to Wine bugzilla unless you can reproduce them with USE=-pipelight" |
105 |
- fi |
106 |
} |
107 |
|
108 |
pkg_postrm() { |
109 |
|
110 |
|
111 |
|
112 |
1.1 app-emulation/wine/wine-1.7.21.ebuild |
113 |
|
114 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.21.ebuild?rev=1.1&view=markup |
115 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.21.ebuild?rev=1.1&content-type=text/plain |
116 |
|
117 |
Index: wine-1.7.21.ebuild |
118 |
=================================================================== |
119 |
# Copyright 1999-2014 Gentoo Foundation |
120 |
# Distributed under the terms of the GNU General Public License v2 |
121 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.21.ebuild,v 1.1 2014/06/29 00:42:47 tetromino Exp $ |
122 |
|
123 |
EAPI="5" |
124 |
|
125 |
AUTOTOOLS_AUTORECONF=1 |
126 |
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW" |
127 |
PLOCALE_BACKUP="en" |
128 |
|
129 |
inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx |
130 |
|
131 |
if [[ ${PV} == "9999" ]] ; then |
132 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
133 |
inherit git-2 |
134 |
SRC_URI="" |
135 |
#KEYWORDS="" |
136 |
else |
137 |
MY_P="${PN}-${PV/_/-}" |
138 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
139 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
140 |
S=${WORKDIR}/${MY_P} |
141 |
fi |
142 |
|
143 |
GV="2.24" |
144 |
MV="4.5.2" |
145 |
PULSE_PATCHES="winepulse-patches-1.7.21" |
146 |
COMPHOLIOV="1.7.21" |
147 |
COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" |
148 |
WINE_GENTOO="wine-gentoo-2013.06.24" |
149 |
DESCRIPTION="Free implementation of Windows(tm) on Unix" |
150 |
HOMEPAGE="http://www.winehq.org/" |
151 |
SRC_URI="${SRC_URI} |
152 |
gecko? ( |
153 |
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) |
154 |
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
155 |
) |
156 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
157 |
pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz ) |
158 |
pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) |
159 |
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" |
160 |
|
161 |
LICENSE="LGPL-2.1" |
162 |
SLOT="0" |
163 |
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" |
164 |
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
165 |
test? ( abi_x86_32 ) |
166 |
elibc_glibc? ( threads ) |
167 |
gstreamer? ( pulseaudio ) |
168 |
mono? ( abi_x86_32 ) |
169 |
osmesa? ( opengl )" #286560 |
170 |
# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557 |
171 |
|
172 |
# FIXME: the test suite is unsuitable for us; many tests require net access |
173 |
# or fail due to Xvfb's opengl limitations. |
174 |
RESTRICT="test" |
175 |
|
176 |
NATIVE_DEPEND=" |
177 |
truetype? ( >=media-libs/freetype-2.0.0 ) |
178 |
capi? ( net-dialup/capi4k-utils ) |
179 |
ncurses? ( >=sys-libs/ncurses-5.2:= ) |
180 |
udisks? ( sys-apps/dbus ) |
181 |
fontconfig? ( media-libs/fontconfig:= ) |
182 |
gphoto2? ( media-libs/libgphoto2:= ) |
183 |
openal? ( media-libs/openal:= ) |
184 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
185 |
X? ( |
186 |
x11-libs/libXcursor |
187 |
x11-libs/libXext |
188 |
x11-libs/libXrandr |
189 |
x11-libs/libXi |
190 |
x11-libs/libXxf86vm |
191 |
) |
192 |
xinerama? ( x11-libs/libXinerama ) |
193 |
alsa? ( media-libs/alsa-lib ) |
194 |
cups? ( net-print/cups:= ) |
195 |
opencl? ( virtual/opencl ) |
196 |
opengl? ( |
197 |
virtual/glu |
198 |
virtual/opengl |
199 |
) |
200 |
gsm? ( media-sound/gsm:= ) |
201 |
jpeg? ( virtual/jpeg:0= ) |
202 |
ldap? ( net-nds/openldap:= ) |
203 |
lcms? ( media-libs/lcms:2= ) |
204 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
205 |
netapi? ( net-fs/samba[netapi(+)] ) |
206 |
nls? ( sys-devel/gettext ) |
207 |
odbc? ( dev-db/unixODBC:= ) |
208 |
osmesa? ( media-libs/mesa[osmesa] ) |
209 |
pipelight? ( sys-apps/attr ) |
210 |
pulseaudio? ( media-sound/pulseaudio ) |
211 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
212 |
scanner? ( media-gfx/sane-backends:= ) |
213 |
ssl? ( net-libs/gnutls:= ) |
214 |
png? ( media-libs/libpng:0= ) |
215 |
v4l? ( media-libs/libv4l ) |
216 |
xcomposite? ( x11-libs/libXcomposite )" |
217 |
|
218 |
COMMON_DEPEND=" |
219 |
!amd64? ( ${NATIVE_DEPEND} ) |
220 |
amd64? ( |
221 |
abi_x86_64? ( ${NATIVE_DEPEND} ) |
222 |
abi_x86_32? ( |
223 |
truetype? ( || ( |
224 |
>=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)] |
225 |
>=media-libs/freetype-2.5.0.1[abi_x86_32(-)] |
226 |
) ) |
227 |
ncurses? ( || ( |
228 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
229 |
>=sys-libs/ncurses-5.9-r3[abi_x86_32(-)] |
230 |
) ) |
231 |
udisks? ( || ( |
232 |
>=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)] |
233 |
>=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)] |
234 |
) ) |
235 |
fontconfig? ( || ( |
236 |
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] |
237 |
>=media-libs/fontconfig-2.10.92[abi_x86_32(-)] |
238 |
) ) |
239 |
gphoto2? ( || ( |
240 |
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] |
241 |
>=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)] |
242 |
) ) |
243 |
openal? ( || ( |
244 |
app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)] |
245 |
>=media-libs/openal-1.15.1[abi_x86_32(-)] |
246 |
) ) |
247 |
gstreamer? ( || ( |
248 |
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] |
249 |
( |
250 |
>=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)] |
251 |
>=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)] |
252 |
) |
253 |
) ) |
254 |
X? ( || ( |
255 |
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] |
256 |
( |
257 |
>=x11-libs/libXcursor-1.1.14[abi_x86_32(-)] |
258 |
>=x11-libs/libXext-1.3.2[abi_x86_32(-)] |
259 |
>=x11-libs/libXrandr-1.4.2[abi_x86_32(-)] |
260 |
>=x11-libs/libXi-1.7.2[abi_x86_32(-)] |
261 |
>=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)] |
262 |
) |
263 |
) ) |
264 |
xinerama? ( || ( |
265 |
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] |
266 |
>=x11-libs/libXinerama-1.1.3[abi_x86_32(-)] |
267 |
) ) |
268 |
alsa? ( || ( |
269 |
app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)] |
270 |
>=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] |
271 |
) ) |
272 |
cups? ( || ( |
273 |
app-emulation/emul-linux-x86-baselibs |
274 |
>=net-print/cups-1.7.1-r1[abi_x86_32(-)] |
275 |
) ) |
276 |
opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] ) |
277 |
opengl? ( || ( |
278 |
app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)] |
279 |
( |
280 |
>=virtual/glu-9.0-r1[abi_x86_32(-)] |
281 |
>=virtual/opengl-7.0-r1[abi_x86_32(-)] |
282 |
) |
283 |
) ) |
284 |
gsm? ( || ( |
285 |
app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] |
286 |
>=media-sound/gsm-1.0.13-r1[abi_x86_32(-)] |
287 |
) ) |
288 |
jpeg? ( || ( |
289 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
290 |
>=virtual/jpeg-0-r2:0[abi_x86_32(-)] |
291 |
) ) |
292 |
ldap? ( || ( |
293 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
294 |
>=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)] |
295 |
) ) |
296 |
lcms? ( || ( |
297 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
298 |
>=media-libs/lcms-2.5:2[abi_x86_32(-)] |
299 |
) ) |
300 |
mp3? ( || ( |
301 |
app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] |
302 |
>=media-sound/mpg123-1.15.4[abi_x86_32(-)] |
303 |
) ) |
304 |
netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] ) |
305 |
nls? ( || ( |
306 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
307 |
>=sys-devel/gettext-0.18.3.2[abi_x86_32(-)] |
308 |
) ) |
309 |
odbc? ( || ( |
310 |
app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)] |
311 |
>=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)] |
312 |
) ) |
313 |
osmesa? ( || ( |
314 |
>=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)] |
315 |
>=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)] |
316 |
) ) |
317 |
pipelight? ( || ( |
318 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
319 |
>=sys-apps/attr-2.4.47-r1[abi_x86_32(-)] |
320 |
) ) |
321 |
pulseaudio? ( || ( |
322 |
app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)] |
323 |
>=media-sound/pulseaudio-5.0[abi_x86_32(-)] |
324 |
) ) |
325 |
xml? ( || ( |
326 |
>=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)] |
327 |
( |
328 |
>=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)] |
329 |
>=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)] |
330 |
) |
331 |
) ) |
332 |
scanner? ( || ( |
333 |
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] |
334 |
>=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)] |
335 |
) ) |
336 |
ssl? ( || ( |
337 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
338 |
>=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)] |
339 |
) ) |
340 |
png? ( || ( |
341 |
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)] |
342 |
>=media-libs/libpng-1.6.10:0[abi_x86_32(-)] |
343 |
) ) |
344 |
v4l? ( || ( |
345 |
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)] |
346 |
>=media-libs/libv4l-0.9.5[abi_x86_32(-)] |
347 |
) ) |
348 |
xcomposite? ( || ( |
349 |
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)] |
350 |
>=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)] |
351 |
) ) |
352 |
) |
353 |
)" |
354 |
|
355 |
RDEPEND="${COMMON_DEPEND} |
356 |
dos? ( games-emulation/dosbox ) |
357 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
358 |
samba? ( >=net-fs/samba-3.0.25 ) |
359 |
selinux? ( sec-policy/selinux-wine ) |
360 |
udisks? ( sys-fs/udisks:2 ) |
361 |
pulseaudio? ( realtime? ( sys-auth/rtkit ) )" |
362 |
|
363 |
DEPEND="${COMMON_DEPEND} |
364 |
amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) |
365 |
X? ( |
366 |
x11-proto/inputproto |
367 |
x11-proto/xextproto |
368 |
x11-proto/xf86vidmodeproto |
369 |
) |
370 |
xinerama? ( x11-proto/xineramaproto ) |
371 |
prelink? ( sys-devel/prelink ) |
372 |
>=sys-kernel/linux-headers-2.6 |
373 |
virtual/pkgconfig |
374 |
virtual/yacc |
375 |
sys-devel/flex" |
376 |
|
377 |
# These use a non-standard "Wine" category, which is provided by |
378 |
# /etc/xdg/applications-merged/wine.menu |
379 |
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
380 |
usr/share/applications/wine-notepad.desktop |
381 |
usr/share/applications/wine-uninstaller.desktop |
382 |
usr/share/applications/wine-winecfg.desktop" |
383 |
|
384 |
wine_build_environment_check() { |
385 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
386 |
|
387 |
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then |
388 |
eerror "You need gcc-4.4+ to build 64-bit wine" |
389 |
eerror |
390 |
return 1 |
391 |
fi |
392 |
|
393 |
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then |
394 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
395 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
396 |
eerror |
397 |
return 1 |
398 |
fi |
399 |
} |
400 |
|
401 |
pkg_pretend() { |
402 |
wine_build_environment_check || die |
403 |
} |
404 |
|
405 |
pkg_setup() { |
406 |
wine_build_environment_check || die |
407 |
} |
408 |
|
409 |
src_unpack() { |
410 |
if [[ ${PV} == "9999" ]] ; then |
411 |
git-2_src_unpack |
412 |
else |
413 |
unpack ${MY_P}.tar.bz2 |
414 |
fi |
415 |
|
416 |
use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" |
417 |
if use pipelight; then |
418 |
unpack "${COMPHOLIO_PATCHES}.tar.gz" |
419 |
# we use a separate pulseaudio patchset |
420 |
rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die |
421 |
# ... and need special tools for binary patches |
422 |
mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die |
423 |
fi |
424 |
unpack "${WINE_GENTOO}.tar.bz2" |
425 |
|
426 |
l10n_find_plocales_changes "${S}/po" "" ".po" |
427 |
} |
428 |
|
429 |
src_prepare() { |
430 |
local md5="$(md5sum server/protocol.def)" |
431 |
local f |
432 |
local PATCHES=( |
433 |
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 |
434 |
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
435 |
"${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 |
436 |
"${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 |
437 |
) |
438 |
use pulseaudio && PATCHES+=( |
439 |
"../${PULSE_PATCHES}"/*.patch #421365 |
440 |
) |
441 |
if use gstreamer; then |
442 |
# See http://bugs.winehq.org/show_bug.cgi?id=30557 |
443 |
ewarn "Applying experimental patch to fix GStreamer support. Note that" |
444 |
ewarn "this patch has been reported to cause crashes in certain games." |
445 |
|
446 |
PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch ) |
447 |
fi |
448 |
if use pipelight; then |
449 |
ewarn "Applying the unofficial Compholio patchset for Pipelight support," |
450 |
ewarn "which is unsupported by Wine developers. Please don't report bugs" |
451 |
ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" |
452 |
|
453 |
PATCHES+=( |
454 |
"../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 |
455 |
"../${COMPHOLIO_PATCHES}/patches/patch-list.patch" |
456 |
) |
457 |
# epatch doesn't support binary patches |
458 |
ebegin "Applying Compholio font patches" |
459 |
for f in "${T}/10-Missing_Fonts"/*.patch; do |
460 |
"../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches" |
461 |
done |
462 |
eend |
463 |
fi |
464 |
autotools-utils_src_prepare |
465 |
|
466 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
467 |
einfo "server/protocol.def was patched; running tools/make_requests" |
468 |
tools/make_requests || die #432348 |
469 |
fi |
470 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
471 |
if ! use run-exes; then |
472 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
473 |
fi |
474 |
|
475 |
# hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652 |
476 |
cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die |
477 |
|
478 |
l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS |
479 |
} |
480 |
|
481 |
src_configure() { |
482 |
export LDCONFIG=/bin/true |
483 |
use custom-cflags || strip-flags |
484 |
|
485 |
multilib-minimal_src_configure |
486 |
} |
487 |
|
488 |
multilib_src_configure() { |
489 |
local myconf=( |
490 |
--sysconfdir=/etc/wine |
491 |
$(use_with alsa) |
492 |
$(use_with capi) |
493 |
$(use_with lcms cms) |
494 |
$(use_with cups) |
495 |
$(use_with ncurses curses) |
496 |
$(use_with udisks dbus) |
497 |
$(use_with fontconfig) |
498 |
$(use_with ssl gnutls) |
499 |
$(use_with gphoto2 gphoto) |
500 |
$(use_with gsm) |
501 |
$(use_with gstreamer) |
502 |
--without-hal |
503 |
$(use_with jpeg) |
504 |
$(use_with ldap) |
505 |
$(use_with mp3 mpg123) |
506 |
$(use_with netapi) |
507 |
$(use_with nls gettext) |
508 |
$(use_with openal) |
509 |
$(use_with opencl) |
510 |
$(use_with opengl) |
511 |
$(use_with osmesa) |
512 |
$(use_with oss) |
513 |
$(use_with png) |
514 |
$(use_with threads pthread) |
515 |
$(use_with scanner sane) |
516 |
$(use_enable test tests) |
517 |
$(use_with truetype freetype) |
518 |
$(use_with v4l) |
519 |
$(use_with X x) |
520 |
$(use_with xcomposite) |
521 |
$(use_with xinerama) |
522 |
$(use_with xml) |
523 |
$(use_with xml xslt) |
524 |
) |
525 |
|
526 |
use pulseaudio && myconf+=( --with-pulse ) |
527 |
use pipelight && myconf+=( --with-xattr ) |
528 |
|
529 |
local PKG_CONFIG AR RANLIB |
530 |
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
531 |
# set AR and RANLIB to make QA scripts happy; #483342 |
532 |
tc-export PKG_CONFIG AR RANLIB |
533 |
|
534 |
if use amd64; then |
535 |
if [[ ${ABI} == amd64 ]]; then |
536 |
myconf+=( --enable-win64 ) |
537 |
else |
538 |
myconf+=( --disable-win64 ) |
539 |
fi |
540 |
|
541 |
# Note: using --with-wine64 results in problems with multilib.eclass |
542 |
# CC/LD hackery. We're using separate tools instead. |
543 |
fi |
544 |
|
545 |
ECONF_SOURCE=${S} \ |
546 |
econf "${myconf[@]}" |
547 |
emake depend |
548 |
} |
549 |
|
550 |
multilib_src_test() { |
551 |
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
552 |
if [[ ${ABI} == x86 ]]; then |
553 |
if [[ $(id -u) == 0 ]]; then |
554 |
ewarn "Skipping tests since they cannot be run under the root user." |
555 |
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" |
556 |
return |
557 |
fi |
558 |
|
559 |
WINEPREFIX="${T}/.wine-${ABI}" \ |
560 |
Xemake test |
561 |
fi |
562 |
} |
563 |
|
564 |
multilib_src_install_all() { |
565 |
local DOCS=( ANNOUNCE AUTHORS README ) |
566 |
local l |
567 |
add_locale_docs() { |
568 |
local locale_doc="documentation/README.$1" |
569 |
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
570 |
} |
571 |
l10n_for_each_locale_do add_locale_docs |
572 |
|
573 |
einstalldocs |
574 |
prune_libtool_files --all |
575 |
|
576 |
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" |
577 |
if use gecko ; then |
578 |
insinto /usr/share/wine/gecko |
579 |
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
580 |
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
581 |
fi |
582 |
if use mono ; then |
583 |
insinto /usr/share/wine/mono |
584 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
585 |
fi |
586 |
if ! use perl ; then |
587 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
588 |
fi |
589 |
|
590 |
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
591 |
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
592 |
|
593 |
if use abi_x86_64 && ! use abi_x86_32; then |
594 |
dosym /usr/bin/wine{64,} # 404331 |
595 |
dosym /usr/bin/wine{64,}-preloader |
596 |
fi |
597 |
|
598 |
# respect LINGUAS when installing man pages, #469418 |
599 |
for l in de fr pl; do |
600 |
use linguas_${l} || rm -r "${D}"usr/share/man/${l}* |
601 |
done |
602 |
} |
603 |
|
604 |
pkg_preinst() { |
605 |
gnome2_icon_savelist |
606 |
} |
607 |
|
608 |
pkg_postinst() { |
609 |
gnome2_icon_cache_update |
610 |
fdo-mime_desktop_database_update |
611 |
} |
612 |
|
613 |
pkg_postrm() { |
614 |
gnome2_icon_cache_update |
615 |
fdo-mime_desktop_database_update |
616 |
} |