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.18.ebuild ChangeLog
Date: Sun, 04 May 2014 01:24:01
Message-Id: 20140504012357.ED4C22004C@flycatcher.gentoo.org
1 tetromino 14/05/04 01:23:57
2
3 Modified: ChangeLog
4 Added: wine-1.7.18.ebuild
5 Log:
6 Version bump, see http://www.winehq.org/announce/1.7.18 for the announcement.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
9
10 Revision Changes Path
11 1.506 app-emulation/wine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.506&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.506&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.505&r2=1.506
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v
20 retrieving revision 1.505
21 retrieving revision 1.506
22 diff -u -r1.505 -r1.506
23 --- ChangeLog 19 Apr 2014 18:59:53 -0000 1.505
24 +++ ChangeLog 4 May 2014 01:23:57 -0000 1.506
25 @@ -1,6 +1,11 @@
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.505 2014/04/19 18:59:53 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.506 2014/05/04 01:23:57 tetromino Exp $
30 +
31 +*wine-1.7.18 (04 May 2014)
32 +
33 + 04 May 2014; Alexandre Rostovtsev <tetromino@g.o> +wine-1.7.18.ebuild:
34 + Version bump, see http://www.winehq.org/announce/1.7.18 for the announcement.
35
36 *wine-1.7.17 (19 Apr 2014)
37
38
39
40
41 1.1 app-emulation/wine/wine-1.7.18.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.18.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.18.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wine-1.7.18.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.18.ebuild,v 1.1 2014/05/04 01:23:57 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.12"
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? ( || (
218 app-emulation/emul-linux-x86-baselibs[development]
219 sys-devel/gettext[abi_x86_32]
220 ) )
221 odbc? ( app-emulation/emul-linux-x86-db[development] )
222 osmesa? ( || (
223 >=app-emulation/emul-linux-x86-opengl-20121028[development]
224 media-libs/mesa[osmesa,abi_x86_32]
225 ) )
226 pulseaudio? ( || (
227 app-emulation/emul-linux-x86-soundlibs[development]
228 >=media-sound/pulseaudio-4.0-r1[abi_x86_32]
229 ) )
230 xml? ( || (
231 >=app-emulation/emul-linux-x86-baselibs-20131008[development]
232 (
233 dev-libs/libxml2[abi_x86_32]
234 dev-libs/libxslt[abi_x86_32]
235 )
236 ) )
237 scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
238 ssl? ( app-emulation/emul-linux-x86-baselibs[development] )
239 png? ( || (
240 app-emulation/emul-linux-x86-baselibs[development]
241 media-libs/libpng:0[abi_x86_32]
242 ) )
243 v4l? ( || (
244 app-emulation/emul-linux-x86-medialibs[development]
245 media-libs/libv4l[abi_x86_32]
246 ) )
247 xcomposite? ( || (
248 app-emulation/emul-linux-x86-xlibs[development]
249 x11-libs/libXcomposite[abi_x86_32]
250 ) )
251 )
252 )"
253
254 RDEPEND="${COMMON_DEPEND}
255 dos? ( games-emulation/dosbox )
256 perl? ( dev-lang/perl dev-perl/XML-Simple )
257 samba? ( >=net-fs/samba-3.0.25 )
258 selinux? ( sec-policy/selinux-wine )
259 udisks? ( sys-fs/udisks:2 )
260 pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
261
262 DEPEND="${COMMON_DEPEND}
263 amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) )
264 X? (
265 x11-proto/inputproto
266 x11-proto/xextproto
267 x11-proto/xf86vidmodeproto
268 )
269 xinerama? ( x11-proto/xineramaproto )
270 prelink? ( sys-devel/prelink )
271 >=sys-kernel/linux-headers-2.6
272 virtual/pkgconfig
273 virtual/yacc
274 sys-devel/flex"
275
276 # These use a non-standard "Wine" category, which is provided by
277 # /etc/xdg/applications-merged/wine.menu
278 QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
279 usr/share/applications/wine-notepad.desktop
280 usr/share/applications/wine-uninstaller.desktop
281 usr/share/applications/wine-winecfg.desktop"
282
283 wine_build_environment_check() {
284 [[ ${MERGE_TYPE} = "binary" ]] && return 0
285
286 if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
287 eerror "You need gcc-4.4+ to build 64-bit wine"
288 eerror
289 return 1
290 fi
291
292 if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
293 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
294 eerror "See https://bugs.gentoo.org/487864 for more details."
295 eerror
296 return 1
297 fi
298 }
299
300 pkg_pretend() {
301 wine_build_environment_check || die
302 }
303
304 pkg_setup() {
305 wine_build_environment_check || die
306 }
307
308 src_unpack() {
309 if [[ ${PV} == "9999" ]] ; then
310 git-2_src_unpack
311 else
312 unpack ${MY_P}.tar.bz2
313 fi
314
315 use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
316 unpack "${WINE_GENTOO}.tar.bz2"
317
318 l10n_find_plocales_changes "${S}/po" "" ".po"
319 }
320
321 src_prepare() {
322 local md5="$(md5sum server/protocol.def)"
323 local PATCHES=(
324 "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
325 "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
326 "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
327 "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
328 )
329 use pulseaudio && PATCHES+=(
330 "../${PULSE_PATCHES}"/*.patch #421365
331 )
332
333 autotools-utils_src_prepare
334
335 if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
336 einfo "server/protocol.def was patched; running tools/make_requests"
337 tools/make_requests || die #432348
338 fi
339 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
340 if ! use run-exes; then
341 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
342 fi
343
344 # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
345 cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
346
347 l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
348 }
349
350 do_configure() {
351 local myeconfargs=( "${myeconfargs[@]}" )
352
353 if use amd64; then
354 if [[ ${ABI} == amd64 ]]; then
355 myeconfargs+=( --enable-win64 )
356 else
357 use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394"
358 # We currently don't have 32-bit libnetapi on amd64; #494394
359 myeconfargs+=(
360 --without-netapi
361 --disable-win64
362 )
363 fi
364
365 # Note: using --with-wine64 results in problems with multilib.eclass
366 # CC/LD hackery. We're using separate tools instead.
367 fi
368
369 autotools-utils_src_configure
370 }
371
372 src_configure() {
373 export LDCONFIG=/bin/true
374 use custom-cflags || strip-flags
375
376 local myeconfargs=( # common
377 --sysconfdir=/etc/wine
378 $(use_with alsa)
379 $(use_with capi)
380 $(use_with lcms cms)
381 $(use_with cups)
382 $(use_with ncurses curses)
383 $(use_with udisks dbus)
384 $(use_with fontconfig)
385 $(use_with ssl gnutls)
386 $(use_with gphoto2 gphoto)
387 $(use_with gsm)
388 $(use_with gstreamer)
389 --without-hal
390 $(use_with jpeg)
391 $(use_with ldap)
392 $(use_with mp3 mpg123)
393 $(use_with netapi)
394 $(use_with nls gettext)
395 $(use_with openal)
396 $(use_with opencl)
397 $(use_with opengl)
398 $(use_with osmesa)
399 $(use_with oss)
400 $(use_with png)
401 $(use_with threads pthread)
402 $(use_with scanner sane)
403 $(use_enable test tests)
404 $(use_with truetype freetype)
405 $(use_with v4l)
406 $(use_with X x)
407 $(use_with xcomposite)
408 $(use_with xinerama)
409 $(use_with xml)
410 $(use_with xml xslt)
411 )
412
413 use pulseaudio && myeconfargs+=( --with-pulse )
414
415 if use amd64 && use abi_x86_32; then
416 # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
417 # set AR and RANLIB to make QA scripts happy; #483342
418 tc-export PKG_CONFIG AR RANLIB
419 fi
420
421 multilib_parallel_foreach_abi do_configure
422 }
423
424 src_compile() {
425 autotools-multilib_src_compile depend
426 autotools-multilib_src_compile all
427 }
428
429 src_test() {
430 if [[ $(id -u) == 0 ]]; then
431 ewarn "Skipping tests since they cannot be run under the root user."
432 ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
433 return
434 fi
435
436 # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
437 multilib_toolchain_setup x86
438 local BUILD_DIR="${S}-${ABI}"
439 cd "${BUILD_DIR}" || die
440 WINEPREFIX="${T}/.wine-${ABI}" Xemake test
441 }
442
443 src_install() {
444 local DOCS=( ANNOUNCE AUTHORS README )
445 add_locale_docs() {
446 local locale_doc="documentation/README.$1"
447 [[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} )
448 }
449 l10n_for_each_locale_do add_locale_docs
450 autotools-multilib_src_install
451
452 emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
453 if use gecko ; then
454 insinto /usr/share/wine/gecko
455 use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
456 use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
457 fi
458 if use mono ; then
459 insinto /usr/share/wine/mono
460 doins "${DISTDIR}"/wine-mono-${MV}.msi
461 fi
462 if ! use perl ; then
463 rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
464 fi
465
466 use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
467 use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
468
469 if use abi_x86_64 && ! use abi_x86_32; then
470 dosym /usr/bin/wine{64,} # 404331
471 dosym /usr/bin/wine{64,}-preloader
472 fi
473
474 # respect LINGUAS when installing man pages, #469418
475 for l in de fr pl; do
476 use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
477 done
478 }
479
480 pkg_preinst() {
481 gnome2_icon_savelist
482 }
483
484 pkg_postinst() {
485 gnome2_icon_cache_update
486 fdo-mime_desktop_database_update
487 }
488
489 pkg_postrm() {
490 gnome2_icon_cache_update
491 fdo-mime_desktop_database_update
492 }