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