Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/wine: ChangeLog wine-1.7.44.ebuild wine-9999.ebuild
Date: Sun, 31 May 2015 22:07:36
Message-Id: 20150531220717.6EDD3A17@oystercatcher.gentoo.org
1 tetromino 15/05/31 22:07:17
2
3 Modified: ChangeLog wine-9999.ebuild
4 Added: wine-1.7.44.ebuild
5 Log:
6 Version bump from NP-Hardass, see https://www.winehq.org/announce/1.7.44 for the announcement. Drop support for emul-linux-x86-*
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x18E5B6F2D8D5EC8D)
9
10 Revision Changes Path
11 1.537 app-emulation/wine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.537&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.537&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.536&r2=1.537
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v
20 retrieving revision 1.536
21 retrieving revision 1.537
22 diff -u -r1.536 -r1.537
23 --- ChangeLog 18 May 2015 04:59:26 -0000 1.536
24 +++ ChangeLog 31 May 2015 22:07:17 -0000 1.537
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-emulation/wine
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.536 2015/05/18 04:59:26 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.537 2015/05/31 22:07:17 tetromino Exp $
30 +
31 +*wine-1.7.44 (31 May 2015)
32 +
33 + 31 May 2015; Alexandre Rostovtsev <tetromino@g.o> +wine-1.7.44.ebuild,
34 + wine-9999.ebuild:
35 + Version bump from NP-Hardass, see https://www.winehq.org/announce/1.7.44 for
36 + the announcement. Drop support for emul-linux-x86-*
37
38 *wine-1.7.43 (18 May 2015)
39
40
41
42
43 1.178 app-emulation/wine/wine-9999.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.178&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.178&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?r1=1.177&r2=1.178
48
49 Index: wine-9999.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v
52 retrieving revision 1.177
53 retrieving revision 1.178
54 diff -u -r1.177 -r1.178
55 --- wine-9999.ebuild 17 May 2015 23:25:36 -0000 1.177
56 +++ wine-9999.ebuild 31 May 2015 22:07:17 -0000 1.178
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2015 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.177 2015/05/17 23:25:36 tetromino Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.178 2015/05/31 22:07:17 tetromino Exp $
62
63 EAPI="5"
64
65 @@ -64,187 +64,70 @@
66 # or fail due to Xvfb's opengl limitations.
67 RESTRICT="test"
68
69 -NATIVE_DEPEND="
70 - truetype? ( >=media-libs/freetype-2.0.0 )
71 +COMMON_DEPEND="
72 + truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
73 capi? ( net-dialup/capi4k-utils )
74 - ncurses? ( >=sys-libs/ncurses-5.2:= )
75 - udisks? ( sys-apps/dbus )
76 - fontconfig? ( media-libs/fontconfig:= )
77 - gphoto2? ( media-libs/libgphoto2:= )
78 - openal? ( media-libs/openal:= )
79 - gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
80 + ncurses? ( >=sys-libs/ncurses-5.2:=[${MULTILIB_USEDEP}] )
81 + udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
82 + fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
83 + gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
84 + openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
85 + gstreamer? (
86 + media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
87 + media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
88 + )
89 X? (
90 - x11-libs/libXcursor
91 - x11-libs/libXext
92 - x11-libs/libXrandr
93 - x11-libs/libXi
94 - x11-libs/libXxf86vm
95 + x11-libs/libXcursor[${MULTILIB_USEDEP}]
96 + x11-libs/libXext[${MULTILIB_USEDEP}]
97 + x11-libs/libXrandr[${MULTILIB_USEDEP}]
98 + x11-libs/libXi[${MULTILIB_USEDEP}]
99 + x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
100 )
101 - xinerama? ( x11-libs/libXinerama )
102 - alsa? ( media-libs/alsa-lib )
103 - cups? ( net-print/cups:= )
104 - opencl? ( virtual/opencl )
105 + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
106 + alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
107 + cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
108 + opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
109 opengl? (
110 - virtual/glu
111 - virtual/opengl
112 + virtual/glu[${MULTILIB_USEDEP}]
113 + virtual/opengl[${MULTILIB_USEDEP}]
114 )
115 - gsm? ( media-sound/gsm:= )
116 - jpeg? ( virtual/jpeg:0= )
117 - ldap? ( net-nds/openldap:= )
118 - lcms? ( media-libs/lcms:2= )
119 - mp3? ( >=media-sound/mpg123-1.5.0 )
120 - netapi? ( net-fs/samba[netapi(+)] )
121 - nls? ( sys-devel/gettext )
122 - odbc? ( dev-db/unixODBC:= )
123 - osmesa? ( media-libs/mesa[osmesa] )
124 - pcap? ( net-libs/libpcap )
125 - staging? ( sys-apps/attr )
126 - pulseaudio? ( media-sound/pulseaudio )
127 - xml? ( dev-libs/libxml2 dev-libs/libxslt )
128 - scanner? ( media-gfx/sane-backends:= )
129 - ssl? ( net-libs/gnutls:= )
130 - png? ( media-libs/libpng:0= )
131 - v4l? ( media-libs/libv4l )
132 - vaapi? ( x11-libs/libva[X] )
133 - xcomposite? ( x11-libs/libXcomposite )"
134 -
135 -COMMON_DEPEND="
136 - !amd64? ( ${NATIVE_DEPEND} )
137 - amd64? (
138 - abi_x86_64? ( ${NATIVE_DEPEND} )
139 - abi_x86_32? (
140 - truetype? ( || (
141 - >=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)]
142 - >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
143 - ) )
144 - ncurses? ( || (
145 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
146 - >=sys-libs/ncurses-5.9-r3[abi_x86_32(-)]
147 - ) )
148 - udisks? ( || (
149 - >=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)]
150 - >=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)]
151 - ) )
152 - fontconfig? ( || (
153 - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
154 - >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
155 - ) )
156 - gphoto2? ( || (
157 - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
158 - >=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)]
159 - ) )
160 - openal? ( || (
161 - app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)]
162 - >=media-libs/openal-1.15.1[abi_x86_32(-)]
163 - ) )
164 - gstreamer? ( || (
165 - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
166 - (
167 - >=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)]
168 - >=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)]
169 - )
170 - ) )
171 - X? ( || (
172 - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
173 - (
174 - >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
175 - >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
176 - >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
177 - >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
178 - >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
179 - )
180 - ) )
181 - xinerama? ( || (
182 - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
183 - >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
184 - ) )
185 - alsa? ( || (
186 - app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)]
187 - >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
188 - ) )
189 - cups? ( || (
190 - app-emulation/emul-linux-x86-baselibs
191 - >=net-print/cups-1.7.1-r1[abi_x86_32(-)]
192 - ) )
193 - opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] )
194 - opengl? ( || (
195 - app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)]
196 - (
197 - >=virtual/glu-9.0-r1[abi_x86_32(-)]
198 - >=virtual/opengl-7.0-r1[abi_x86_32(-)]
199 - )
200 - ) )
201 - gsm? ( || (
202 - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)]
203 - >=media-sound/gsm-1.0.13-r1[abi_x86_32(-)]
204 - ) )
205 - jpeg? ( || (
206 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
207 - >=virtual/jpeg-0-r2:0[abi_x86_32(-)]
208 - ) )
209 - ldap? ( || (
210 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
211 - >=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)]
212 - ) )
213 - lcms? ( || (
214 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
215 - >=media-libs/lcms-2.5:2[abi_x86_32(-)]
216 - ) )
217 - mp3? ( || (
218 - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)]
219 - >=media-sound/mpg123-1.15.4[abi_x86_32(-)]
220 - ) )
221 - netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] )
222 - nls? ( || (
223 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
224 - >=sys-devel/gettext-0.18.3.2[abi_x86_32(-)]
225 - ) )
226 - odbc? ( || (
227 - app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)]
228 - >=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)]
229 - ) )
230 - osmesa? ( || (
231 - >=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)]
232 - >=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)]
233 - ) )
234 - pcap? ( net-libs/libpcap[abi_x86_32(-)] )
235 - pulseaudio? ( || (
236 - app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)]
237 - >=media-sound/pulseaudio-5.0[abi_x86_32(-)]
238 - ) )
239 - staging? ( || (
240 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
241 - >=sys-apps/attr-2.4.47-r1[abi_x86_32(-)]
242 - ) )
243 - xml? ( || (
244 - >=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)]
245 - (
246 - >=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)]
247 - >=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)]
248 - )
249 - ) )
250 - scanner? ( || (
251 - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
252 - >=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)]
253 - ) )
254 - ssl? ( || (
255 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
256 - >=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)]
257 - ) )
258 - png? ( || (
259 - app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
260 - >=media-libs/libpng-1.6.10:0[abi_x86_32(-)]
261 - ) )
262 - v4l? ( || (
263 - app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
264 - >=media-libs/libv4l-0.9.5[abi_x86_32(-)]
265 - ) )
266 - vaapi? ( x11-libs/libva[X,abi_x86_32(-)] )
267 - xcomposite? ( || (
268 - app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
269 - >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)]
270 - ) )
271 - )
272 + gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
273 + jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
274 + ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
275 + lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
276 + mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
277 + netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
278 + nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
279 + odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
280 + osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
281 + pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
282 + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
283 + staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
284 + xml? (
285 + dev-libs/libxml2[${MULTILIB_USEDEP}]
286 + dev-libs/libxslt[${MULTILIB_USEDEP}]
287 + )
288 + scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
289 + ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
290 + png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
291 + v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
292 + vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
293 + xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
294 + abi_x86_32? (
295 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
296 + !<app-emulation/emul-linux-x86-baselibs-20140508-r14
297 + !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
298 + !<app-emulation/emul-linux-x86-db-20140508-r3
299 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
300 + !<app-emulation/emul-linux-x86-medialibs-20140508-r6
301 + !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
302 + !<app-emulation/emul-linux-x86-opengl-20140508-r1
303 + !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
304 + !<app-emulation/emul-linux-x86-sdl-20140508-r1
305 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
306 + !<app-emulation/emul-linux-x86-soundlibs-20140508
307 + !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
308 + !<app-emulation/emul-linux-x86-xlibs-20140508
309 )"
310
311 RDEPEND="${COMMON_DEPEND}
312 @@ -258,7 +141,6 @@
313
314 # tools/make_requests requires perl
315 DEPEND="${COMMON_DEPEND}
316 - amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) )
317 staging? ( dev-lang/perl dev-perl/XML-Simple )
318 X? (
319 x11-proto/inputproto
320
321
322
323 1.1 app-emulation/wine/wine-1.7.44.ebuild
324
325 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.44.ebuild?rev=1.1&view=markup
326 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.44.ebuild?rev=1.1&content-type=text/plain
327
328 Index: wine-1.7.44.ebuild
329 ===================================================================
330 # Copyright 1999-2015 Gentoo Foundation
331 # Distributed under the terms of the GNU General Public License v2
332 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.44.ebuild,v 1.1 2015/05/31 22:07:17 tetromino Exp $
333
334 EAPI="5"
335
336 AUTOTOOLS_AUTORECONF=1
337 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"
338 PLOCALE_BACKUP="en"
339
340 inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
341
342 if [[ ${PV} == "9999" ]] ; then
343 EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
344 EGIT_BRANCH="master"
345 inherit git-r3
346 SRC_URI=""
347 #KEYWORDS=""
348 else
349 MY_P="${PN}-${PV/_/-}"
350 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
351 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
352 S=${WORKDIR}/${MY_P}
353 fi
354
355 GV="2.36"
356 MV="4.5.6"
357 STAGING_P="wine-staging-${PV}"
358 STAGING_DIR="${WORKDIR}/${STAGING_P}"
359 WINE_GENTOO="wine-gentoo-2015.03.07"
360 GST_P="wine-1.7.34-gstreamer-v5"
361 DESCRIPTION="Free implementation of Windows(tm) on Unix"
362 HOMEPAGE="http://www.winehq.org/"
363 SRC_URI="${SRC_URI}
364 gecko? (
365 abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
366 abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
367 )
368 mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
369 gstreamer? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${GST_P}.patch.bz2 )
370 http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
371
372 if [[ ${PV} == "9999" ]] ; then
373 STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
374 else
375 SRC_URI="${SRC_URI}
376 staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
377 pulseaudio? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )"
378 fi
379
380 LICENSE="LGPL-2.1"
381 SLOT="0"
382 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 pcap pipelight +png +prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
383 REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
384 test? ( abi_x86_32 )
385 elibc_glibc? ( threads )
386 mono? ( abi_x86_32 )
387 pipelight? ( staging )
388 s3tc? ( staging )
389 vaapi? ( staging )
390 osmesa? ( opengl )" #286560
391
392 # FIXME: the test suite is unsuitable for us; many tests require net access
393 # or fail due to Xvfb's opengl limitations.
394 RESTRICT="test"
395
396 COMMON_DEPEND="
397 truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
398 capi? ( net-dialup/capi4k-utils )
399 ncurses? ( >=sys-libs/ncurses-5.2:=[${MULTILIB_USEDEP}] )
400 udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
401 fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
402 gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
403 openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
404 gstreamer? (
405 media-libs/gstreamer:0.10[${MULTILIB_USEDEP}]
406 media-libs/gst-plugins-base:0.10[${MULTILIB_USEDEP}]
407 )
408 X? (
409 x11-libs/libXcursor[${MULTILIB_USEDEP}]
410 x11-libs/libXext[${MULTILIB_USEDEP}]
411 x11-libs/libXrandr[${MULTILIB_USEDEP}]
412 x11-libs/libXi[${MULTILIB_USEDEP}]
413 x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
414 )
415 xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
416 alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
417 cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
418 opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
419 opengl? (
420 virtual/glu[${MULTILIB_USEDEP}]
421 virtual/opengl[${MULTILIB_USEDEP}]
422 )
423 gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
424 jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
425 ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
426 lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
427 mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
428 netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
429 nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
430 odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
431 osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
432 pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
433 pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
434 staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
435 xml? (
436 dev-libs/libxml2[${MULTILIB_USEDEP}]
437 dev-libs/libxslt[${MULTILIB_USEDEP}]
438 )
439 scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
440 ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
441 png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
442 v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
443 vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
444 xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
445 abi_x86_32? (
446 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
447 !<app-emulation/emul-linux-x86-baselibs-20140508-r14
448 !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
449 !<app-emulation/emul-linux-x86-db-20140508-r3
450 !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
451 !<app-emulation/emul-linux-x86-medialibs-20140508-r6
452 !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
453 !<app-emulation/emul-linux-x86-opengl-20140508-r1
454 !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
455 !<app-emulation/emul-linux-x86-sdl-20140508-r1
456 !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
457 !<app-emulation/emul-linux-x86-soundlibs-20140508
458 !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
459 !<app-emulation/emul-linux-x86-xlibs-20140508
460 )"
461
462 RDEPEND="${COMMON_DEPEND}
463 dos? ( games-emulation/dosbox )
464 perl? ( dev-lang/perl dev-perl/XML-Simple )
465 s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
466 samba? ( >=net-fs/samba-3.0.25 )
467 selinux? ( sec-policy/selinux-wine )
468 udisks? ( sys-fs/udisks:2 )
469 pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
470
471 # tools/make_requests requires perl
472 DEPEND="${COMMON_DEPEND}
473 staging? ( dev-lang/perl dev-perl/XML-Simple )
474 X? (
475 x11-proto/inputproto
476 x11-proto/xextproto
477 x11-proto/xf86vidmodeproto
478 )
479 xinerama? ( x11-proto/xineramaproto )
480 prelink? ( sys-devel/prelink )
481 >=sys-kernel/linux-headers-2.6
482 virtual/pkgconfig
483 virtual/yacc
484 sys-devel/flex"
485
486 # These use a non-standard "Wine" category, which is provided by
487 # /etc/xdg/applications-merged/wine.menu
488 QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
489 usr/share/applications/wine-notepad.desktop
490 usr/share/applications/wine-uninstaller.desktop
491 usr/share/applications/wine-winecfg.desktop"
492
493 wine_build_environment_check() {
494 [[ ${MERGE_TYPE} = "binary" ]] && return 0
495
496 # bug #549768
497 if [[ $(gcc-major-version) = 5 ]]; then
498 eerror "You need gcc-4.x to build wine; see https://bugs.gentoo.org/549768"
499 eerror
500 return 1
501 fi
502
503 if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
504 eerror "You need gcc-4.4+ to build 64-bit wine"
505 eerror
506 return 1
507 fi
508
509 if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
510 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
511 eerror "See https://bugs.gentoo.org/487864 for more details."
512 eerror
513 return 1
514 fi
515 }
516
517 pkg_pretend() {
518 wine_build_environment_check || die
519 }
520
521 pkg_setup() {
522 wine_build_environment_check || die
523 }
524
525 src_unpack() {
526 if [[ ${PV} == "9999" ]] ; then
527 git-r3_src_unpack
528 if use staging || use pulseaudio; then
529 EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
530 unset ${PN}_LIVE_REPO;
531 EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
532 fi
533 else
534 unpack ${MY_P}.tar.bz2
535 use staging || use pulseaudio && unpack "${STAGING_P}.tar.gz"
536 fi
537
538 unpack "${WINE_GENTOO}.tar.bz2"
539 use gstreamer && unpack "${GST_P}.patch.bz2"
540
541 l10n_find_plocales_changes "${S}/po" "" ".po"
542 }
543
544 src_prepare() {
545 local md5="$(md5sum server/protocol.def)"
546 local PATCHES=(
547 "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
548 "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
549 "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
550 "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
551 )
552 if use gstreamer; then
553 # See http://bugs.winehq.org/show_bug.cgi?id=30557
554 ewarn "Applying experimental patch to fix GStreamer support. Note that"
555 ewarn "this patch has been reported to cause crashes in certain games."
556
557 # Wine-Staging 1.7.38 "ntdll: Fix race-condition when threads are killed
558 # during shutdown" patch and "Added patch to implement shared memory
559 # wineserver communication for various user32 functions" prevents the
560 # gstreamer patch from applying cleanly.
561 # So undo the staging patch, apply gstreamer, then re-apply rebased staging
562 # patch on top.
563 if use staging; then
564 PATCHES+=(
565 "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-pre.patch"
566 "${WORKDIR}/${GST_P}.patch"
567 "${FILESDIR}/${PN}-1.7.39-gstreamer-v5-staging-post.patch" )
568 else
569 PATCHES+=( "${WORKDIR}/${GST_P}.patch" )
570 fi
571 fi
572 if use staging; then
573 ewarn "Applying the unofficial Wine-Staging patchset which is unsupported"
574 ewarn "by Wine developers. Please don't report bugs to Wine bugzilla"
575 ewarn "unless you can reproduce them with USE=-staging"
576
577 local STAGING_EXCLUDE=""
578 use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
579
580 # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
581 ebegin "Running Wine-Staging patch installer"
582 (
583 set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
584 cd "${STAGING_DIR}/patches"
585 source "${STAGING_DIR}/patches/patchinstall.sh"
586 )
587 eend $?
588 elif use pulseaudio; then
589 PATCHES+=( "${STAGING_DIR}/patches/winepulse-PulseAudio_Support"/*.patch )
590 fi
591 autotools-utils_src_prepare
592
593 # Modification of the server protocol requires regenerating the server requests
594 if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
595 einfo "server/protocol.def was patched; running tools/make_requests"
596 tools/make_requests || die #432348
597 fi
598 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
599 if ! use run-exes; then
600 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
601 fi
602
603 # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
604 cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
605
606 l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
607 }
608
609 src_configure() {
610 export LDCONFIG=/bin/true
611 use custom-cflags || strip-flags
612
613 multilib-minimal_src_configure
614 }
615
616 multilib_src_configure() {
617 local myconf=(
618 --sysconfdir=/etc/wine
619 $(use_with alsa)
620 $(use_with capi)
621 $(use_with lcms cms)
622 $(use_with cups)
623 $(use_with ncurses curses)
624 $(use_with udisks dbus)
625 $(use_with fontconfig)
626 $(use_with ssl gnutls)
627 $(use_enable gecko mshtml)
628 $(use_with gphoto2 gphoto)
629 $(use_with gsm)
630 $(use_with gstreamer)
631 --without-hal
632 $(use_with jpeg)
633 $(use_with ldap)
634 $(use_enable mono mscoree)
635 $(use_with mp3 mpg123)
636 $(use_with netapi)
637 $(use_with nls gettext)
638 $(use_with openal)
639 $(use_with opencl)
640 $(use_with opengl)
641 $(use_with osmesa)
642 $(use_with oss)
643 $(use_with pcap)
644 $(use_with png)
645 $(use_with threads pthread)
646 $(use_with scanner sane)
647 $(use_enable test tests)
648 $(use_with truetype freetype)
649 $(use_with v4l)
650 $(use_with X x)
651 $(use_with xcomposite)
652 $(use_with xinerama)
653 $(use_with xml)
654 $(use_with xml xslt)
655 )
656
657 if use pulseaudio || use staging; then
658 myconf+=( $(use_with pulseaudio pulse) )
659 fi
660 use staging && myconf+=(
661 --with-xattr
662 $(use_with vaapi va)
663 )
664
665 local PKG_CONFIG AR RANLIB
666 # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
667 # set AR and RANLIB to make QA scripts happy; #483342
668 tc-export PKG_CONFIG AR RANLIB
669
670 if use amd64; then
671 if [[ ${ABI} == amd64 ]]; then
672 myconf+=( --enable-win64 )
673 else
674 myconf+=( --disable-win64 )
675 fi
676
677 # Note: using --with-wine64 results in problems with multilib.eclass
678 # CC/LD hackery. We're using separate tools instead.
679 fi
680
681 ECONF_SOURCE=${S} \
682 econf "${myconf[@]}"
683 emake depend
684 }
685
686 multilib_src_test() {
687 # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
688 if [[ ${ABI} == x86 ]]; then
689 if [[ $(id -u) == 0 ]]; then
690 ewarn "Skipping tests since they cannot be run under the root user."
691 ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
692 return
693 fi
694
695 WINEPREFIX="${T}/.wine-${ABI}" \
696 Xemake test
697 fi
698 }
699
700 multilib_src_install_all() {
701 local DOCS=( ANNOUNCE AUTHORS README )
702 local l
703 add_locale_docs() {
704 local locale_doc="documentation/README.$1"
705 [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
706 }
707 l10n_for_each_locale_do add_locale_docs
708
709 einstalldocs
710 prune_libtool_files --all
711
712 emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
713 if use gecko ; then
714 insinto /usr/share/wine/gecko
715 use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
716 use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
717 fi
718 if use mono ; then
719 insinto /usr/share/wine/mono
720 doins "${DISTDIR}"/wine-mono-${MV}.msi
721 fi
722 if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
723 rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
724 fi
725
726 use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
727 use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
728
729 if use abi_x86_64 && ! use abi_x86_32; then
730 dosym /usr/bin/wine{64,} # 404331
731 dosym /usr/bin/wine{64,}-preloader
732 fi
733
734 # respect LINGUAS when installing man pages, #469418
735 for l in de fr pl; do
736 use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
737 done
738 }
739
740 pkg_preinst() {
741 gnome2_icon_savelist
742 }
743
744 pkg_postinst() {
745 gnome2_icon_cache_update
746 fdo-mime_desktop_database_update
747
748 if ! use gecko; then
749 ewarn "Without Wine Gecko, wine prefixes will not have a default"
750 ewarn "implementation of iexplore. Many older windows applications"
751 ewarn "rely upon the existence of an iexplore implementation, so"
752 ewarn "you will likely need to install an external one, like via winetricks"
753 fi
754 if ! use mono; then
755 ewarn "Without Wine Mono, wine prefixes will not have a default"
756 ewarn "implementation of .NET. Many windows applications rely upon"
757 ewarn "the existence of a .NET implementation, so you will likely need"
758 ewarn "to install an external one, like via winetricks"
759 fi
760 }
761
762 pkg_postrm() {
763 gnome2_icon_cache_update
764 fdo-mime_desktop_database_update
765 }