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.12.ebuild wine-9999.ebuild
Date: Sat, 08 Feb 2014 21:50:56
Message-Id: 20140208215052.0A1B82004C@flycatcher.gentoo.org
1 tetromino 14/02/08 21:50:51
2
3 Modified: ChangeLog wine-9999.ebuild
4 Added: wine-1.7.12.ebuild
5 Log:
6 Version bump, see http://www.winehq.org/announce/1.7.12 for the announcement. Update osmesa patch (bug #500352).
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
9
10 Revision Changes Path
11 1.496 app-emulation/wine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.496&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.496&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.495&r2=1.496
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v
20 retrieving revision 1.495
21 retrieving revision 1.496
22 diff -u -r1.495 -r1.496
23 --- ChangeLog 26 Jan 2014 10:55:18 -0000 1.495
24 +++ ChangeLog 8 Feb 2014 21:50:51 -0000 1.496
25 @@ -1,6 +1,13 @@
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.495 2014/01/26 10:55:18 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.496 2014/02/08 21:50:51 tetromino Exp $
30 +
31 +*wine-1.7.12 (08 Feb 2014)
32 +
33 + 08 Feb 2014; Alexandre Rostovtsev <tetromino@g.o> +wine-1.7.12.ebuild,
34 + wine-9999.ebuild, +files/wine-1.7.12-osmesa-check.patch:
35 + Version bump, see http://www.winehq.org/announce/1.7.12 for the announcement.
36 + Update osmesa patch (bug #500352).
37
38 26 Jan 2014; Agostino Sarubbo <ago@g.o> wine-1.6.1.ebuild:
39 Stable for x86, wrt bug #497962
40
41
42
43 1.163 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.163&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.163&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?r1=1.162&r2=1.163
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.162
53 retrieving revision 1.163
54 diff -u -r1.162 -r1.163
55 --- wine-9999.ebuild 4 Jan 2014 03:49:37 -0000 1.162
56 +++ wine-9999.ebuild 8 Feb 2014 21:50:51 -0000 1.163
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2014 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.162 2014/01/04 03:49:37 tetromino Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.163 2014/02/08 21:50:51 tetromino Exp $
62
63 EAPI="5"
64
65 @@ -24,7 +24,7 @@
66
67 GV="2.24"
68 MV="4.5.2"
69 -PULSE_PATCHES="winepulse-patches-1.7.10"
70 +PULSE_PATCHES="winepulse-patches-1.7.12"
71 WINE_GENTOO="wine-gentoo-2013.06.24"
72 DESCRIPTION="Free implementation of Windows(tm) on Unix"
73 HOMEPAGE="http://www.winehq.org/"
74 @@ -267,7 +267,7 @@
75 local PATCHES=(
76 "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
77 "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
78 - "${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386
79 + "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
80 "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
81 )
82 use pulseaudio && PATCHES+=(
83
84
85
86 1.1 app-emulation/wine/wine-1.7.12.ebuild
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.12.ebuild?rev=1.1&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.12.ebuild?rev=1.1&content-type=text/plain
90
91 Index: wine-1.7.12.ebuild
92 ===================================================================
93 # Copyright 1999-2014 Gentoo Foundation
94 # Distributed under the terms of the GNU General Public License v2
95 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.12.ebuild,v 1.1 2014/02/08 21:50:51 tetromino Exp $
96
97 EAPI="5"
98
99 AUTOTOOLS_AUTORECONF=1
100 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"
101 PLOCALE_BACKUP="en"
102
103 inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx
104
105 if [[ ${PV} == "9999" ]] ; then
106 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
107 inherit git-2
108 SRC_URI=""
109 #KEYWORDS=""
110 else
111 MY_P="${PN}-${PV/_/-}"
112 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
113 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
114 S=${WORKDIR}/${MY_P}
115 fi
116
117 GV="2.24"
118 MV="4.5.2"
119 PULSE_PATCHES="winepulse-patches-1.7.12"
120 WINE_GENTOO="wine-gentoo-2013.06.24"
121 DESCRIPTION="Free implementation of Windows(tm) on Unix"
122 HOMEPAGE="http://www.winehq.org/"
123 SRC_URI="${SRC_URI}
124 gecko? (
125 abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
126 abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
127 )
128 mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
129 pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
130 http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
131
132 LICENSE="LGPL-2.1"
133 SLOT="0"
134 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 +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml"
135 REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
136 test? ( abi_x86_32 )
137 elibc_glibc? ( threads )
138 mono? ( abi_x86_32 )
139 osmesa? ( opengl )" #286560
140
141 # FIXME: the test suite is unsuitable for us; many tests require net access
142 # or fail due to Xvfb's opengl limitations.
143 RESTRICT="test"
144
145 NATIVE_DEPEND="
146 truetype? ( >=media-libs/freetype-2.0.0 )
147 capi? ( net-dialup/capi4k-utils )
148 ncurses? ( >=sys-libs/ncurses-5.2:= )
149 udisks? ( sys-apps/dbus )
150 fontconfig? ( media-libs/fontconfig:= )
151 gphoto2? ( media-libs/libgphoto2:= )
152 openal? ( media-libs/openal:= )
153 gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
154 X? (
155 x11-libs/libXcursor
156 x11-libs/libXext
157 x11-libs/libXrandr
158 x11-libs/libXi
159 x11-libs/libXxf86vm
160 )
161 xinerama? ( x11-libs/libXinerama )
162 alsa? ( media-libs/alsa-lib )
163 cups? ( net-print/cups:= )
164 opencl? ( virtual/opencl )
165 opengl? (
166 virtual/glu
167 virtual/opengl
168 )
169 gsm? ( media-sound/gsm:= )
170 jpeg? ( virtual/jpeg:0= )
171 ldap? ( net-nds/openldap:= )
172 lcms? ( media-libs/lcms:2= )
173 mp3? ( >=media-sound/mpg123-1.5.0 )
174 netapi? ( net-fs/samba[netapi(+)] )
175 nls? ( sys-devel/gettext )
176 odbc? ( dev-db/unixODBC:= )
177 osmesa? ( media-libs/mesa[osmesa] )
178 pulseaudio? ( media-sound/pulseaudio )
179 xml? ( dev-libs/libxml2 dev-libs/libxslt )
180 scanner? ( media-gfx/sane-backends:= )
181 ssl? ( net-libs/gnutls:= )
182 png? ( media-libs/libpng:0= )
183 v4l? ( media-libs/libv4l )
184 xcomposite? ( x11-libs/libXcomposite )"
185
186 COMMON_DEPEND="
187 !amd64? ( ${NATIVE_DEPEND} )
188 amd64? (
189 abi_x86_64? ( ${NATIVE_DEPEND} )
190 abi_x86_32? (
191 truetype? ( || (
192 >=app-emulation/emul-linux-x86-xlibs-2.1[development]
193 >=media-libs/freetype-2.0.0[abi_x86_32]
194 ) )
195 ncurses? ( || (
196 app-emulation/emul-linux-x86-baselibs[development]
197 sys-libs/ncurses[abi_x86_32]
198 ) )
199 udisks? ( || (
200 >=app-emulation/emul-linux-x86-baselibs-20130224[development]
201 sys-apps/dbus[abi_x86_32]
202 ) )
203 fontconfig? ( || (
204 app-emulation/emul-linux-x86-xlibs[development]
205 media-libs/fontconfig[abi_x86_32]
206 ) )
207 gphoto2? (
208 app-emulation/emul-linux-x86-medialibs[development]
209 )
210 openal? ( || (
211 app-emulation/emul-linux-x86-sdl[development]
212 media-libs/openal[abi_x86_32]
213 ) )
214 gstreamer? (
215 app-emulation/emul-linux-x86-gstplugins
216 app-emulation/emul-linux-x86-medialibs[development]
217 )
218 X? ( || (
219 app-emulation/emul-linux-x86-xlibs[development]
220 (
221 x11-libs/libXcursor[abi_x86_32]
222 x11-libs/libXext[abi_x86_32]
223 x11-libs/libXrandr[abi_x86_32]
224 x11-libs/libXi[abi_x86_32]
225 x11-libs/libXxf86vm[abi_x86_32]
226 )
227 ) )
228 xinerama? ( || (
229 app-emulation/emul-linux-x86-xlibs[development]
230 x11-libs/libXinerama[abi_x86_32]
231 ) )
232 alsa? ( || (
233 app-emulation/emul-linux-x86-soundlibs[alsa,development]
234 media-libs/alsa-lib[abi_x86_32]
235 ) )
236 cups? ( app-emulation/emul-linux-x86-baselibs )
237 opencl? ( virtual/opencl[abi_x86_32] )
238 opengl? ( || (
239 app-emulation/emul-linux-x86-opengl[development]
240 (
241 virtual/glu[abi_x86_32]
242 virtual/opengl[abi_x86_32]
243 )
244 ) )
245 gsm? ( || (
246 app-emulation/emul-linux-x86-soundlibs[development]
247 media-sound/gsm[abi_x86_32]
248 ) )
249 jpeg? ( || (
250 app-emulation/emul-linux-x86-baselibs[development]
251 virtual/jpeg:0[abi_x86_32]
252 ) )
253 ldap? ( app-emulation/emul-linux-x86-baselibs[development] )
254 lcms? ( || (
255 app-emulation/emul-linux-x86-baselibs[development]
256 media-libs/lcms:2[abi_x86_32]
257 ) )
258 mp3? ( || (
259 app-emulation/emul-linux-x86-soundlibs[development]
260 >=media-sound/mpg123-1.5.0[abi_x86_32]
261 ) )
262 nls? ( app-emulation/emul-linux-x86-baselibs[development] )
263 odbc? ( app-emulation/emul-linux-x86-db[development] )
264 osmesa? ( || (
265 >=app-emulation/emul-linux-x86-opengl-20121028[development]
266 media-libs/mesa[osmesa,abi_x86_32]
267 ) )
268 pulseaudio? ( || (
269 app-emulation/emul-linux-x86-soundlibs[development]
270 >=media-sound/pulseaudio-4.0-r1[abi_x86_32]
271 ) )
272 xml? ( >=app-emulation/emul-linux-x86-baselibs-20131008[development] )
273 scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
274 ssl? ( app-emulation/emul-linux-x86-baselibs[development] )
275 png? ( || (
276 app-emulation/emul-linux-x86-baselibs[development]
277 media-libs/libpng:0[abi_x86_32]
278 ) )
279 v4l? ( || (
280 app-emulation/emul-linux-x86-medialibs[development]
281 media-libs/libv4l[abi_x86_32]
282 ) )
283 xcomposite? ( || (
284 app-emulation/emul-linux-x86-xlibs[development]
285 x11-libs/libXcomposite[abi_x86_32]
286 ) )
287 )
288 )"
289
290 RDEPEND="${COMMON_DEPEND}
291 dos? ( games-emulation/dosbox )
292 perl? ( dev-lang/perl dev-perl/XML-Simple )
293 samba? ( >=net-fs/samba-3.0.25 )
294 selinux? ( sec-policy/selinux-wine )
295 udisks? ( sys-fs/udisks:2 )
296 pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
297
298 DEPEND="${COMMON_DEPEND}
299 amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) )
300 X? (
301 x11-proto/inputproto
302 x11-proto/xextproto
303 x11-proto/xf86vidmodeproto
304 )
305 xinerama? ( x11-proto/xineramaproto )
306 prelink? ( sys-devel/prelink )
307 >=sys-kernel/linux-headers-2.6
308 virtual/pkgconfig
309 virtual/yacc
310 sys-devel/flex"
311
312 # These use a non-standard "Wine" category, which is provided by
313 # /etc/xdg/applications-merged/wine.menu
314 QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
315 usr/share/applications/wine-notepad.desktop
316 usr/share/applications/wine-uninstaller.desktop
317 usr/share/applications/wine-winecfg.desktop"
318
319 wine_build_environment_check() {
320 [[ ${MERGE_TYPE} = "binary" ]] && return 0
321
322 if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
323 eerror "You need gcc-4.4+ to build 64-bit wine"
324 eerror
325 return 1
326 fi
327
328 if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
329 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
330 eerror "See https://bugs.gentoo.org/487864 for more details."
331 eerror
332 return 1
333 fi
334 }
335
336 pkg_pretend() {
337 wine_build_environment_check || die
338 }
339
340 pkg_setup() {
341 wine_build_environment_check || die
342 }
343
344 src_unpack() {
345 if [[ ${PV} == "9999" ]] ; then
346 git-2_src_unpack
347 else
348 unpack ${MY_P}.tar.bz2
349 fi
350
351 use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
352 unpack "${WINE_GENTOO}.tar.bz2"
353
354 l10n_find_plocales_changes "${S}/po" "" ".po"
355 }
356
357 src_prepare() {
358 local md5="$(md5sum server/protocol.def)"
359 local PATCHES=(
360 "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
361 "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
362 "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
363 "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
364 )
365 use pulseaudio && PATCHES+=(
366 "../${PULSE_PATCHES}"/*.patch #421365
367 )
368
369 autotools-utils_src_prepare
370
371 if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
372 einfo "server/protocol.def was patched; running tools/make_requests"
373 tools/make_requests || die #432348
374 fi
375 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
376 if ! use run-exes; then
377 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
378 fi
379
380 # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
381 cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
382
383 l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
384 }
385
386 do_configure() {
387 local myeconfargs=( "${myeconfargs[@]}" )
388
389 if use amd64; then
390 if [[ ${ABI} == amd64 ]]; then
391 myeconfargs+=( --enable-win64 )
392 else
393 use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394"
394 # We currently don't have 32-bit libnetapi on amd64; #494394
395 myeconfargs+=(
396 --without-netapi
397 --disable-win64
398 )
399 fi
400
401 # Note: using --with-wine64 results in problems with multilib.eclass
402 # CC/LD hackery. We're using separate tools instead.
403 fi
404
405 autotools-utils_src_configure
406 }
407
408 src_configure() {
409 export LDCONFIG=/bin/true
410 use custom-cflags || strip-flags
411
412 local myeconfargs=( # common
413 --sysconfdir=/etc/wine
414 $(use_with alsa)
415 $(use_with capi)
416 $(use_with lcms cms)
417 $(use_with cups)
418 $(use_with ncurses curses)
419 $(use_with udisks dbus)
420 $(use_with fontconfig)
421 $(use_with ssl gnutls)
422 $(use_with gphoto2 gphoto)
423 $(use_with gsm)
424 $(use_with gstreamer)
425 --without-hal
426 $(use_with jpeg)
427 $(use_with ldap)
428 $(use_with mp3 mpg123)
429 $(use_with netapi)
430 $(use_with nls gettext)
431 $(use_with openal)
432 $(use_with opencl)
433 $(use_with opengl)
434 $(use_with osmesa)
435 $(use_with oss)
436 $(use_with png)
437 $(use_with threads pthread)
438 $(use_with scanner sane)
439 $(use_enable test tests)
440 $(use_with truetype freetype)
441 $(use_with v4l)
442 $(use_with X x)
443 $(use_with xcomposite)
444 $(use_with xinerama)
445 $(use_with xml)
446 $(use_with xml xslt)
447 )
448
449 use pulseaudio && myeconfargs+=( --with-pulse )
450
451 if use amd64 && use abi_x86_32; then
452 # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
453 # set AR and RANLIB to make QA scripts happy; #483342
454 tc-export PKG_CONFIG AR RANLIB
455 fi
456
457 multilib_parallel_foreach_abi do_configure
458 }
459
460 src_compile() {
461 autotools-multilib_src_compile depend
462 autotools-multilib_src_compile all
463 }
464
465 src_test() {
466 if [[ $(id -u) == 0 ]]; then
467 ewarn "Skipping tests since they cannot be run under the root user."
468 ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
469 return
470 fi
471
472 # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
473 multilib_toolchain_setup x86
474 local BUILD_DIR="${S}-${ABI}"
475 cd "${BUILD_DIR}" || die
476 WINEPREFIX="${T}/.wine-${ABI}" Xemake test
477 }
478
479 src_install() {
480 local DOCS=( ANNOUNCE AUTHORS README )
481 add_locale_docs() {
482 local locale_doc="documentation/README.$1"
483 [[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} )
484 }
485 l10n_for_each_locale_do add_locale_docs
486 autotools-multilib_src_install
487
488 emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
489 if use gecko ; then
490 insinto /usr/share/wine/gecko
491 use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
492 use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
493 fi
494 if use mono ; then
495 insinto /usr/share/wine/mono
496 doins "${DISTDIR}"/wine-mono-${MV}.msi
497 fi
498 if ! use perl ; then
499 rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
500 fi
501
502 use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
503 use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
504
505 if use abi_x86_64 && ! use abi_x86_32; then
506 dosym /usr/bin/wine{64,} # 404331
507 dosym /usr/bin/wine{64,}-preloader
508 fi
509
510 # respect LINGUAS when installing man pages, #469418
511 for l in de fr pl; do
512 use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
513 done
514 }
515
516 pkg_preinst() {
517 gnome2_icon_savelist
518 }
519
520 pkg_postinst() {
521 gnome2_icon_cache_update
522 fdo-mime_desktop_database_update
523 }
524
525 pkg_postrm() {
526 gnome2_icon_cache_update
527 fdo-mime_desktop_database_update
528 }