Gentoo Archives: gentoo-commits

From: Nick Sarnie <sarnex@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/wine-vanilla/
Date: Fri, 14 Sep 2018 02:14:14
Message-Id: 1536891150.d561bfc405a24b48ed89bbc40d44937240bfe7d0.sarnex@gentoo
1 commit: d561bfc405a24b48ed89bbc40d44937240bfe7d0
2 Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 14 02:12:30 2018 +0000
4 Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 14 02:12:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d561bfc4
7
8 app-emulation/wine-vanilla: Drop old
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-emulation/wine-vanilla/Manifest | 1 -
13 .../wine-vanilla/wine-vanilla-3.0.1.ebuild | 525 ---------------------
14 2 files changed, 526 deletions(-)
15
16 diff --git a/app-emulation/wine-vanilla/Manifest b/app-emulation/wine-vanilla/Manifest
17 index e349b0d454d..f5ea35ac64c 100644
18 --- a/app-emulation/wine-vanilla/Manifest
19 +++ b/app-emulation/wine-vanilla/Manifest
20 @@ -1,5 +1,4 @@
21 DIST gentoo-wine-patches-20180120.tar.xz 58672 BLAKE2B 84d621075b65475cec41a06429680b518d7eafb938cefd903f3f8aa71ea3049ac9d8de05af48f9f4f4a1b9172c7ef17784540413e410eb8ec11e8ec4a63858c6 SHA512 5b354a409c7a2b77499aaa593b9248a1d15d755e3687b095755faacc30068bfcdbdd5c2a2a78617cb1a78c46d2931162bd69ec3379b035d81494bea7108263c2
22 -DIST wine-3.0.1.tar.xz 19722444 BLAKE2B e042d280c3f4c2df64c2d426cdebdb65e9c7263034961b1916bc9c6206bf9c107aefaf8cee166d9f1a2ea21dfa57db0d3641ca5e8025f70520f11aa24d20ca60 SHA512 3d59f08a87da1d2ee280954a4c91e861b6994048b36eff1ac8df67dbab08a792d391b23ced66ea99f8503a979b3ec26cd35558b71c4d29d68775a5d484bf7d00
23 DIST wine-3.0.2.tar.xz 19726920 BLAKE2B e108f851b2d893b052a26ae4368f3337bebcc81bb9ea9abf93c5b7d6e01e613ce6e5db98696ab6ad8e266f6f0f0b9c5ddccb66ae7ba7183912a7911fac4b9633 SHA512 dbd0f242c5eace297ad16e314b8ad139e7d430de7eb8ca52b2006d0b80db4809e28a0e785d404a65ea1acdb56e7f06ebfc9a50071db1edaa6180c8835e7c4b13
24 DIST wine-3.0.3.tar.xz 19735412 BLAKE2B f0ccbe272f1013386f89805cf1573cf001eb875bccb31a1884fad1dff5f90caf727c460406af80f63db7a227d85f25f57c8e8e650a171adbe0c3f5178ddf17e8 SHA512 11043a9a9434681f9c73590688b600b3b9e3d311be2c4d97b5f58f0740500ebcfbdc826bd6584d5dd392dccbdd9389ffa04c8fedbba43a4df2e6aeb922414412
25 DIST wine-3.12.tar.xz 20516708 BLAKE2B 6ff32f8d471492c1ca42db434b16c0273e98cd15215d2f67e3d8e34e298d36620f55409bb781687f3ab11e6a44bd95eaa033e642fdb0d7aae90319ac2ddd2fb6 SHA512 afc76e8975ea780f664de27a17128f730bcbe72a9fad0c01bfe6dcc98c2f98729ccde32e97fe4df2cf98f5d1b254b28f0e7cd380855148c5cfb41dd88f3012a1
26
27 diff --git a/app-emulation/wine-vanilla/wine-vanilla-3.0.1.ebuild b/app-emulation/wine-vanilla/wine-vanilla-3.0.1.ebuild
28 deleted file mode 100644
29 index eb3d66d40dd..00000000000
30 --- a/app-emulation/wine-vanilla/wine-vanilla-3.0.1.ebuild
31 +++ /dev/null
32 @@ -1,525 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -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"
39 -PLOCALE_BACKUP="en"
40 -
41 -inherit autotools estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator xdg-utils
42 -
43 -MY_PN="${PN%%-*}"
44 -MY_P="${MY_PN}-${PV}"
45 -
46 -if [[ ${PV} == "9999" ]] ; then
47 - EGIT_REPO_URI="https://source.winehq.org/git/wine.git"
48 - EGIT_BRANCH="master"
49 - inherit git-r3
50 - SRC_URI=""
51 - #KEYWORDS=""
52 -else
53 - MAJOR_V=$(get_version_component_range 1)
54 - SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.0/${MY_P}.tar.xz"
55 - KEYWORDS="-* amd64 x86 ~x86-fbsd"
56 -fi
57 -S="${WORKDIR}/${MY_P}"
58 -
59 -GWP_V="20180120"
60 -PATCHDIR="${WORKDIR}/gentoo-wine-patches"
61 -
62 -DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
63 -HOMEPAGE="https://www.winehq.org/"
64 -SRC_URI="${SRC_URI}
65 - https://dev.gentoo.org/~np-hardass/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz
66 -"
67 -
68 -LICENSE="LGPL-2.1"
69 -SLOT="${PV}"
70 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg kerberos kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype udev +udisks v4l +X +xcomposite xinerama +xml"
71 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
72 - X? ( truetype )
73 - elibc_glibc? ( threads )
74 - osmesa? ( opengl )
75 - test? ( abi_x86_32 )" # osmesa-opengl #286560 # X-truetype #551124
76 -
77 -# FIXME: the test suite is unsuitable for us; many tests require net access
78 -# or fail due to Xvfb's opengl limitations.
79 -RESTRICT="test"
80 -
81 -COMMON_DEPEND="
82 - X? (
83 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
84 - x11-libs/libXext[${MULTILIB_USEDEP}]
85 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
86 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
87 - x11-libs/libXi[${MULTILIB_USEDEP}]
88 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
89 - )
90 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
91 - capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
92 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
93 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
94 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
95 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
96 - gstreamer? (
97 - media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
98 - media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
99 - )
100 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
101 - kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
102 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
103 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
104 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
105 - ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
106 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
107 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
108 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
109 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
110 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
111 - opengl? (
112 - virtual/glu[${MULTILIB_USEDEP}]
113 - virtual/opengl[${MULTILIB_USEDEP}]
114 - )
115 - osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
116 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
117 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
118 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
119 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
120 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
121 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
122 - udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
123 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
124 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
125 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
126 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
127 - xml? (
128 - dev-libs/libxml2[${MULTILIB_USEDEP}]
129 - dev-libs/libxslt[${MULTILIB_USEDEP}]
130 - )"
131 -
132 -RDEPEND="${COMMON_DEPEND}
133 - app-emulation/wine-desktop-common
134 - >app-eselect/eselect-wine-0.3
135 - !app-emulation/wine:0
136 - dos? ( >=games-emulation/dosbox-0.74_p20160629 )
137 - gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] )
138 - mono? ( app-emulation/wine-mono:4.7.1 )
139 - perl? (
140 - dev-lang/perl
141 - dev-perl/XML-Simple
142 - )
143 - pulseaudio? (
144 - realtime? ( sys-auth/rtkit )
145 - )
146 - samba? ( >=net-fs/samba-3.0.25[winbind] )
147 - selinux? ( sec-policy/selinux-wine )
148 - udisks? ( sys-fs/udisks:2 )"
149 -
150 -# tools/make_requests requires perl
151 -DEPEND="${COMMON_DEPEND}
152 - sys-devel/flex
153 - >=sys-kernel/linux-headers-2.6
154 - virtual/pkgconfig
155 - virtual/yacc
156 - X? ( x11-base/xorg-proto )
157 - prelink? ( sys-devel/prelink )
158 - xinerama? ( x11-base/xorg-proto )"
159 -
160 -# These use a non-standard "Wine" category, which is provided by
161 -# /etc/xdg/applications-merged/wine.menu
162 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
163 -usr/share/applications/wine-notepad.desktop
164 -usr/share/applications/wine-uninstaller.desktop
165 -usr/share/applications/wine-winecfg.desktop"
166 -
167 -PATCHES=(
168 - "${PATCHDIR}/patches/${MY_PN}-1.5.26-winegcc.patch" #260726
169 - "${PATCHDIR}/patches/${MY_PN}-1.9.5-multilib-portage.patch" #395615
170 - "${PATCHDIR}/patches/${MY_PN}-1.6-memset-O3.patch" #480508
171 - "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
172 - "${PATCHDIR}/patches/${MY_PN}-2.0-rearrange-manpages.patch" #469418 #617864
173 -)
174 -PATCHES_BIN=()
175 -
176 -# https://bugs.gentoo.org/show_bug.cgi?id=635222
177 -if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then
178 - DEPEND+=" dev-util/patchbin"
179 -fi
180 -
181 -wine_compiler_check() {
182 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
183 -
184 - # GCC-specific bugs
185 - if tc-is-gcc; then
186 - # bug #549768
187 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
188 - ebegin "Checking for gcc-5 ms_abi compiler bug"
189 - $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
190 - # Run in subshell to prevent "Aborted" message
191 - ( "${T}"/pr66838 || false ) >/dev/null 2>&1
192 - if ! eend $?; then
193 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
194 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
195 - eerror "or use gcc-config to select a different compiler version."
196 - eerror "See https://bugs.gentoo.org/549768"
197 - eerror
198 - return 1
199 - fi
200 - fi
201 - # bug #574044
202 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
203 - ebegin "Checking for gcc-5-3 stack realignment compiler bug"
204 - # Compile in subshell to prevent "Aborted" message
205 - ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
206 - if ! eend $?; then
207 - eerror "Wine cannot be built with this version of gcc-5.3"
208 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
209 - eerror "or use gcc-config to select a different compiler version."
210 - eerror "See https://bugs.gentoo.org/574044"
211 - eerror
212 - return 1
213 - fi
214 - fi
215 - fi
216 -
217 - # Ensure compiler support
218 - if use abi_x86_64; then
219 - ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
220 - # Compile in subshell to prevent "Aborted" message
221 - ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
222 - if ! eend $?; then
223 - eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
224 - eerror
225 - eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
226 - eerror
227 - return 1
228 - fi
229 - fi
230 -}
231 -
232 -wine_build_environment_check() {
233 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
234 -
235 - if use abi_x86_64; then
236 - if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
237 - eerror "You need gcc-4.4+ to compile 64-bit wine"
238 - die
239 - elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
240 - eerror "You need clang-3.8+ to compile 64-bit wine"
241 - die
242 - fi
243 - fi
244 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
245 - ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
246 - ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
247 - ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
248 - fi
249 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
250 - if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
251 - ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
252 - ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
253 - ewarn "See package.env in man 5 portage for more information on how to do this."
254 - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
255 - fi
256 - fi
257 -
258 - if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
259 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
260 - eerror "See https://bugs.gentoo.org/487864 for more details."
261 - eerror
262 - return 1
263 - fi
264 -}
265 -
266 -wine_env_vcs_vars() {
267 - local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
268 - local pn_live_val="${pn_live_var}"
269 - eval pn_live_val='$'${pn_live_val}
270 - if [[ ! -z ${EGIT_COMMIT} ]]; then
271 - eerror "Commits must now be specified using the environmental variables"
272 - eerror "WINE_COMMIT"
273 - eerror
274 - return 1
275 - fi
276 -}
277 -
278 -pkg_pretend() {
279 - wine_build_environment_check || die
280 -
281 - # Verify OSS support
282 - if use oss && ! use kernel_FreeBSD; then
283 - if ! has_version ">=media-sound/oss-4"; then
284 - eerror "You cannot build wine with USE=oss without having support from a"
285 - eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
286 - eerror
287 - die
288 - fi
289 - fi
290 -}
291 -
292 -pkg_setup() {
293 - wine_build_environment_check || die
294 - wine_env_vcs_vars || die
295 -
296 - WINE_VARIANT="${PN#wine}-${PV}"
297 - WINE_VARIANT="${WINE_VARIANT#-}"
298 -
299 - MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
300 - MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
301 - MY_DATADIR="${MY_DATAROOTDIR}"
302 - MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
303 - MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
304 - MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
305 - MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
306 - MY_MANDIR="${MY_DATADIR}/man"
307 -}
308 -
309 -src_unpack() {
310 - if [[ ${PV} == "9999" ]] ; then
311 - EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack
312 - fi
313 -
314 - default
315 -
316 - l10n_find_plocales_changes "${S}/po" "" ".po"
317 -}
318 -
319 -src_prepare() {
320 -
321 - eapply_bin(){
322 - local patch
323 - for patch in ${PATCHES_BIN[@]}; do
324 - patchbin --nogit < "${patch}" || die
325 - done
326 - }
327 -
328 - local md5="$(md5sum server/protocol.def)"
329 -
330 - default
331 - eapply_bin
332 - eautoreconf
333 -
334 - # Modification of the server protocol requires regenerating the server requests
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' loader/wine.desktop || die #117785
342 - fi
343 -
344 - # Edit wine.desktop to work for specific variant
345 - sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
346 -
347 - # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652
348 - cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die
349 -
350 - l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
351 -
352 - # Fix manpage generation for locales #469418 and abi_x86_64 #617864
353 - # Requires wine-2.0-rearrange-manpages.patch
354 -
355 - # Duplicate manpages input files for wine64
356 - local f
357 - for f in loader/*.man.in; do
358 - cp ${f} ${f/wine/wine64} || die
359 - done
360 - # Add wine64 manpages to Makefile
361 - if use abi_x86_64; then
362 - sed -i "/wine.man.in/i \
363 - \\\twine64.man.in \\\\" loader/Makefile.in || die
364 - sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\
365 -\164\2/' loader/Makefile.in || die
366 - fi
367 -
368 - rm_man_file(){
369 - local file="${1}"
370 - loc=${2}
371 - sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die
372 - }
373 -
374 - while read f; do
375 - l10n_for_each_disabled_locale_do rm_man_file "${f}"
376 - done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print)
377 -}
378 -
379 -src_configure() {
380 - wine_compiler_check || die
381 -
382 - export LDCONFIG=/bin/true
383 - use custom-cflags || strip-flags
384 -
385 - multilib-minimal_src_configure
386 -}
387 -
388 -multilib_src_configure() {
389 - local myconf=(
390 - --prefix="${MY_PREFIX}"
391 - --datarootdir="${MY_DATAROOTDIR}"
392 - --datadir="${MY_DATADIR}"
393 - --docdir="${MY_DOCDIR}"
394 - --includedir="${MY_INCLUDEDIR}"
395 - --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
396 - --libexecdir="${MY_LIBEXECDIR}"
397 - --localstatedir="${MY_LOCALSTATEDIR}"
398 - --mandir="${MY_MANDIR}"
399 - --sysconfdir=/etc/wine
400 - $(use_with alsa)
401 - $(use_with capi)
402 - $(use_with lcms cms)
403 - $(use_with cups)
404 - $(use_with ncurses curses)
405 - $(use_with udisks dbus)
406 - $(use_with fontconfig)
407 - $(use_with ssl gnutls)
408 - $(use_enable gecko mshtml)
409 - $(use_with gphoto2 gphoto)
410 - $(use_with gsm)
411 - $(use_with gstreamer)
412 - --without-hal
413 - $(use_with jpeg)
414 - $(use_with kerberos krb5)
415 - $(use_with ldap)
416 - $(use_enable mono mscoree)
417 - $(use_with mp3 mpg123)
418 - $(use_with netapi)
419 - $(use_with nls gettext)
420 - $(use_with openal)
421 - $(use_with opencl)
422 - $(use_with opengl)
423 - $(use_with osmesa)
424 - $(use_with oss)
425 - $(use_with pcap)
426 - $(use_with png)
427 - $(use_with pulseaudio pulse)
428 - $(use_with threads pthread)
429 - $(use_with scanner sane)
430 - $(use_enable test tests)
431 - $(use_with truetype freetype)
432 - $(use_with udev)
433 - $(use_with v4l)
434 - $(use_with X x)
435 - $(use_with X xfixes)
436 - $(use_with xcomposite)
437 - $(use_with xinerama)
438 - $(use_with xml)
439 - $(use_with xml xslt)
440 - )
441 -
442 - local PKG_CONFIG AR RANLIB
443 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
444 - # set AR and RANLIB to make QA scripts happy; #483342
445 - tc-export PKG_CONFIG AR RANLIB
446 -
447 - if use amd64; then
448 - if [[ ${ABI} == amd64 ]]; then
449 - myconf+=( --enable-win64 )
450 - else
451 - myconf+=( --disable-win64 )
452 - fi
453 -
454 - # Note: using --with-wine64 results in problems with multilib.eclass
455 - # CC/LD hackery. We're using separate tools instead.
456 - fi
457 -
458 - ECONF_SOURCE=${S} \
459 - econf "${myconf[@]}"
460 - emake depend
461 -}
462 -
463 -multilib_src_test() {
464 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
465 - if [[ ${ABI} == x86 ]]; then
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 ${MY_PN} suite, add userpriv to FEATURES in make.conf"
469 - return
470 - fi
471 -
472 - WINEPREFIX="${T}/.wine-${ABI}" \
473 - Xemake test
474 - fi
475 -}
476 -
477 -multilib_src_install_all() {
478 - local DOCS=( ANNOUNCE AUTHORS README )
479 - add_locale_docs() {
480 - local locale_doc="documentation/README.$1"
481 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
482 - }
483 - l10n_for_each_locale_do add_locale_docs
484 -
485 - einstalldocs
486 - prune_libtool_files --all
487 -
488 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
489 - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
490 - "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
491 - fi
492 -
493 - # Remove wineconsole if neither backend is installed #551124
494 - if ! use X && ! use ncurses; then
495 - rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
496 - rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
497 - rm_wineconsole() {
498 - rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
499 - }
500 - multilib_foreach_abi rm_wineconsole
501 - fi
502 -
503 - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
504 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
505 -
506 - if use abi_x86_64 && ! use abi_x86_32; then
507 - dosym wine64 "${MY_PREFIX}"/bin/wine # 404331
508 - dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader
509 - fi
510 -
511 - # Failglob for binloops, shouldn't be necessary, but including to stay safe
512 - eshopts_push -s failglob #615218
513 - # Make wrappers for binaries for handling multiple variants
514 - # Note: wrappers instead of symlinks because some are shell which use basename
515 - local b
516 - for b in "${D%/}${MY_PREFIX}"/bin/*; do
517 - make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
518 - done
519 - eshopts_pop
520 -}
521 -
522 -pkg_postinst() {
523 - eselect wine register ${P}
524 - if [[ ${PN} == "wine-vanilla" ]]; then
525 - eselect wine register --vanilla ${P} || die
526 - fi
527 -
528 - eselect wine update --all --if-unset || die
529 -
530 - xdg_desktop_database_update
531 -
532 - if ! use gecko; then
533 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
534 - ewarn "implementation of iexplore. Many older windows applications"
535 - ewarn "rely upon the existence of an iexplore implementation, so"
536 - ewarn "you will likely need to install an external one, like via winetricks"
537 - fi
538 - if ! use mono; then
539 - ewarn "Without Wine Mono, wine prefixes will not have a default"
540 - ewarn "implementation of .NET. Many windows applications rely upon"
541 - ewarn "the existence of a .NET implementation, so you will likely need"
542 - ewarn "to install an external one, like via winetricks"
543 - fi
544 -}
545 -
546 -pkg_prerm() {
547 - eselect wine deregister ${P}
548 - if [[ ${PN} == "wine-vanilla" ]]; then
549 - eselect wine deregister --vanilla ${P} || die
550 - fi
551 -
552 - eselect wine update --all --if-unset || die
553 -}
554 -
555 -pkg_postrm() {
556 - xdg_desktop_database_update
557 -}