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: Sat, 04 Jun 2022 15:26:01
Message-Id: 1654356133.7d9033d3466d6c831ed059432affaac8739a315d.sarnex@gentoo
1 commit: 7d9033d3466d6c831ed059432affaac8739a315d
2 Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 4 15:17:02 2022 +0000
4 Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 4 15:22:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d9033d3
7
8 app-emulation/wine-vanilla: Drop old
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>
12
13 app-emulation/wine-vanilla/Manifest | 1 -
14 .../wine-vanilla/wine-vanilla-7.6-r1.ebuild | 470 ---------------------
15 2 files changed, 471 deletions(-)
16
17 diff --git a/app-emulation/wine-vanilla/Manifest b/app-emulation/wine-vanilla/Manifest
18 index 0fa7d344e14e..7cac09c285b8 100644
19 --- a/app-emulation/wine-vanilla/Manifest
20 +++ b/app-emulation/wine-vanilla/Manifest
21 @@ -1,7 +1,6 @@
22 DIST gentoo-wine-patches-20211122.tar.xz 59796 BLAKE2B 21460e6adf4934a52f8841f76f234a764c2dc1ac77eeed1cee10adafec3aa723640ebd4b51559e9ef433070ac731c4648620bd9e75e99f31b2e2f494cf01f02d SHA512 a18cb320617e2157977032c38c322177a2d248f14e43051d38de595af171495546c93d5e71e0dbe1a4f326a2dc819bb03dcfd04454ac85bbcd6b1975ae5d9d96
23 DIST wine-7.0.tar.xz 27120912 BLAKE2B 84bfeb28d56f0f40bb93b1b5bf8954c8be2fd90fde5a61608e7c35f48addcce7a4d660e63c3caa3ca2c365d1e83b55a1c3485872b2d6bfa8941e2bce44c4aca6 SHA512 eec17b046ed5447eb540f421c9b2748d9419ce087496c2743a9914fd27bbe5ff9da0cfe47d3cd76fa97323bd1188a1d82b1eef4968d86ed1957dc1a95e28529c
24 DIST wine-7.10.tar.xz 27915328 BLAKE2B fc778285cce52317d77461f0bce11d6e3214a536ecd42364d6cd31f609a23116fa582a7cb85873a99c61eb5cf5e1e3036e4d4d1887b87f75f501109ac3eb4625 SHA512 be460be6c3f6f54c20220287a7c4c9d41d27bd14fabb97b1f9824a4be361e38b2e2e51a621e0332d6c48934b1af425efaec92132f73e6d1270337ffbfcac2576
25 -DIST wine-7.6.tar.xz 27674208 BLAKE2B 9c1abafca0e489876500e4640e6087456f0f93f544fba547541bc454aae5a8cb757454b1c863edc6f70cbd5a8ef848a8bdb3d6f9aaae471b97891a0a188ec640 SHA512 7eabae6e40df187da977ff412adda23697f8cd5f6c4e565d3fff74770f13f7c93ca3d81e77a72a1b929d7af675499e72925e4ab2225b5ca13ef0d88baf1f9646
26 DIST wine-7.7.tar.xz 27716124 BLAKE2B 13df0de6b65ec96d99d14f43e5250a105d07414f90388fec6b19ee1a4ac4ba98fde66ed9d1eb966a07c0a2ad37e744d87eb7047b48b92ccee3e3db197730a7f9 SHA512 b0185176a1074ff7331a937a2a5a1f0b865f3e38abbe2fdca841b9f14540497bf941a2aa3bf8dc52d19eb848c68974f3ab47b6d0031cbf4eebc8a76b0b1484be
27 DIST wine-7.8.tar.xz 27728116 BLAKE2B 3c878de8377906a687026bf1d5f9167bdce6b13a3d750d2a92fdcf70aed8e3da01560d26e4b075b6564b741996fc2168bb98c409f95618ab9fbb8e8b583a5384 SHA512 5e63edabc7dcdce62a1ce683c9ef387a2d801af3a0f99c32daacfea566a3813086f4f5977279c7b7526574f5cd95d052805bd5c145b82221d321d8aa638bfe1d
28 DIST wine-7.9.tar.xz 27783272 BLAKE2B 3265402b90913670b6a81a1f0d91d84d536734883749d31af572953e3b244ba721c15bb851e0e0e868c402d9add2e2007e49225bdaaa02a8dedee575d4e69602 SHA512 47ecbb8bc31a06d0f40a63469ffe3df4a1e05c9476a8926ec7f20c2230de8afecb5e0df9f3c5dd238ce3d0323d7cf9c9f48c41ef6ca149822458a4e605a2e029
29
30 diff --git a/app-emulation/wine-vanilla/wine-vanilla-7.6-r1.ebuild b/app-emulation/wine-vanilla/wine-vanilla-7.6-r1.ebuild
31 deleted file mode 100644
32 index 80752f7676fe..000000000000
33 --- a/app-emulation/wine-vanilla/wine-vanilla-7.6-r1.ebuild
34 +++ /dev/null
35 @@ -1,470 +0,0 @@
36 -# Copyright 1999-2022 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=8
40 -
41 -PLOCALES="ar ast 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 si sk sl sr_RS@cyrillic sr_RS@latin sv ta te th tr uk wa zh_CN zh_TW"
42 -PLOCALE_BACKUP="en"
43 -
44 -inherit autotools estack flag-o-matic multilib-minimal pax-utils plocale toolchain-funcs virtualx wrapper xdg-utils
45 -
46 -MY_PN="${PN%%-*}"
47 -MY_P="${MY_PN}-${PV}"
48 -
49 -if [[ ${PV} == "9999" ]] ; then
50 - EGIT_REPO_URI="https://source.winehq.org/git/wine.git"
51 - EGIT_BRANCH="master"
52 - inherit git-r3
53 - SRC_URI=""
54 - #KEYWORDS=""
55 -else
56 - MAJOR_V=$(ver_cut 1)
57 - SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz"
58 - KEYWORDS="-* ~amd64 ~x86"
59 -fi
60 -S="${WORKDIR}/${MY_P}"
61 -
62 -GWP_V="20211122"
63 -PATCHDIR="${WORKDIR}/gentoo-wine-patches"
64 -
65 -DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets"
66 -HOMEPAGE="https://www.winehq.org/"
67 -SRC_URI="${SRC_URI}
68 - https://dev.gentoo.org/~sarnex/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz
69 -"
70 -
71 -LICENSE="LGPL-2.1"
72 -SLOT="${PV}"
73 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups custom-cflags dos +fontconfig +gecko gphoto2 gssapi gstreamer kerberos ldap mingw +mono mp3 netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pulseaudio +realtime +run-exes samba scanner sdl selinux +ssl test +threads +truetype udev +udisks +unwind usb v4l vkd3d vulkan +X +xcomposite xinerama"
74 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
75 - X? ( truetype )
76 - crossdev-mingw? ( mingw )
77 - elibc_glibc? ( threads )
78 - osmesa? ( opengl )
79 - test? ( abi_x86_32 )
80 - vkd3d? ( vulkan )" # osmesa-opengl #286560 # X-truetype #551124
81 -
82 -# FIXME: the test suite is unsuitable for us; many tests require net access
83 -# or fail due to Xvfb's opengl limitations.
84 -RESTRICT="test"
85 -
86 -BDEPEND="sys-devel/flex
87 - virtual/yacc
88 - virtual/pkgconfig
89 - mingw? ( !crossdev-mingw? ( dev-util/mingw64-toolchain[${MULTILIB_USEDEP}] ) )"
90 -
91 -COMMON_DEPEND="
92 - X? (
93 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
94 - x11-libs/libXext[${MULTILIB_USEDEP}]
95 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
96 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
97 - x11-libs/libXi[${MULTILIB_USEDEP}]
98 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
99 - )
100 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
101 - capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
102 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
103 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
104 - gphoto2? (
105 - media-libs/libgphoto2:=[${MULTILIB_USEDEP}]
106 - media-libs/libjpeg-turbo:0=[${MULTILIB_USEDEP}]
107 - )
108 - gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
109 - gstreamer? (
110 - media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
111 - media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
112 - )
113 - kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
114 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
115 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
116 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
117 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
118 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
119 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
120 - opengl? (
121 - virtual/opengl[${MULTILIB_USEDEP}]
122 - )
123 - osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
124 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
125 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
126 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
127 - sdl? ( media-libs/libsdl2:=[haptic,joystick,${MULTILIB_USEDEP}] )
128 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
129 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
130 - udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
131 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
132 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
133 - usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
134 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
135 - vkd3d? ( >=app-emulation/vkd3d-1.2[${MULTILIB_USEDEP}] )
136 - vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
137 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
138 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )"
139 -
140 -RDEPEND="${COMMON_DEPEND}
141 - app-emulation/wine-desktop-common
142 - >app-eselect/eselect-wine-0.3
143 - dos? ( >=games-emulation/dosbox-0.74_p20160629 )
144 - gecko? ( app-emulation/wine-gecko:2.47.2[abi_x86_32?,abi_x86_64?] )
145 - mono? ( app-emulation/wine-mono:7.2.0 )
146 - perl? (
147 - dev-lang/perl
148 - dev-perl/XML-Simple
149 - )
150 - pulseaudio? (
151 - realtime? ( sys-auth/rtkit )
152 - )
153 - samba? ( >=net-fs/samba-3.0.25[winbind] )
154 - selinux? ( sec-policy/selinux-wine )
155 - udisks? ( sys-fs/udisks:2 )"
156 -
157 -# tools/make_requests requires perl
158 -DEPEND="${COMMON_DEPEND}
159 - ${BDEPEND}
160 - >=sys-kernel/linux-headers-2.6
161 - X? ( x11-base/xorg-proto )
162 - xinerama? ( x11-base/xorg-proto )"
163 -
164 -# These use a non-standard "Wine" category, which is provided by
165 -# /etc/xdg/applications-merged/wine.menu
166 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
167 -usr/share/applications/wine-notepad.desktop
168 -usr/share/applications/wine-uninstaller.desktop
169 -usr/share/applications/wine-winecfg.desktop"
170 -
171 -PATCHES=(
172 - "${PATCHDIR}/patches/${MY_PN}-6.22-winegcc.patch" #260726
173 - "${PATCHDIR}/patches/${MY_PN}-4.7-multilib-portage.patch" #395615
174 - "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
175 -)
176 -PATCHES_BIN=()
177 -
178 -# https://bugs.gentoo.org/show_bug.cgi?id=635222
179 -if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then
180 - DEPEND+=" dev-util/patchbin"
181 -fi
182 -
183 -wine_compiler_check() {
184 - # Ensure compiler support
185 - # (No checks here as of 2022)
186 - return 0
187 -}
188 -
189 -wine_build_environment_check() {
190 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
191 -
192 - if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
193 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
194 - eerror "See https://bugs.gentoo.org/487864 for more details."
195 - eerror
196 - return 1
197 - fi
198 -}
199 -
200 -wine_env_vcs_vars() {
201 - local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
202 - local pn_live_val="${pn_live_var}"
203 - eval pn_live_val='$'${pn_live_val}
204 - if [[ ! -z ${EGIT_COMMIT} ]]; then
205 - eerror "Commits must now be specified using the environmental variables"
206 - eerror "EGIT_OVERRIDE_COMMIT_WINE"
207 - eerror
208 - return 1
209 - fi
210 -}
211 -
212 -pkg_pretend() {
213 - wine_build_environment_check || die
214 -
215 - # Verify OSS support
216 - if use oss; then
217 - if ! has_version ">=media-sound/oss-4"; then
218 - eerror "You cannot build wine with USE=oss without having support from"
219 - eerror ">=media-sound/oss-4 (only available through external repos)"
220 - eerror
221 - die
222 - fi
223 - fi
224 -
225 - if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
226 - local mingw=-w64-mingw32
227 - for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
228 - type -P ${mingw}-gcc && continue
229 - eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
230 - eerror "yourself by installing sys-devel/crossdev then running:"
231 - eerror
232 - eerror " crossdev --target ${mingw}"
233 - eerror
234 - eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
235 - die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
236 - done
237 - fi
238 -}
239 -
240 -pkg_setup() {
241 - wine_build_environment_check || die
242 - wine_env_vcs_vars || die
243 -
244 - WINE_VARIANT="${PN#wine}-${PV}"
245 - WINE_VARIANT="${WINE_VARIANT#-}"
246 -
247 - MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
248 - MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
249 - MY_DATADIR="${MY_DATAROOTDIR}"
250 - MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
251 - MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
252 - MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
253 - MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
254 - MY_MANDIR="${MY_DATADIR}/man"
255 -}
256 -
257 -src_unpack() {
258 - if [[ ${PV} == "9999" ]] ; then
259 - EGIT_CHECKOUT_DIR="${S}" git-r3_src_unpack
260 - fi
261 -
262 - default
263 -
264 - plocale_find_changes "${S}/po" "" ".po"
265 -}
266 -
267 -src_prepare() {
268 -
269 - eapply_bin(){
270 - local patch
271 - for patch in ${PATCHES_BIN[@]}; do
272 - patchbin --nogit < "${patch}" || die
273 - done
274 - }
275 -
276 - local md5="$(md5sum server/protocol.def)"
277 -
278 - default
279 - eapply_bin
280 - eautoreconf
281 -
282 - # Modification of the server protocol requires regenerating the server requests
283 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
284 - einfo "server/protocol.def was patched; running tools/make_requests"
285 - tools/make_requests || die #432348
286 - fi
287 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
288 - if ! use run-exes; then
289 - sed -i '/^MimeType/d' loader/wine.desktop || die #117785
290 - fi
291 -
292 - # Edit wine.desktop to work for specific variant
293 - sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
294 -
295 - # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652
296 - cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die
297 -
298 - plocale_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
299 -
300 - # Fix manpage generation for locales #469418 and abi_x86_64 #617864
301 -
302 - # Duplicate manpages input files for wine64
303 - local f
304 - for f in loader/*.man.in; do
305 - cp ${f} ${f/wine/wine64} || die
306 - done
307 - # Add wine64 manpages to Makefile
308 - if use abi_x86_64; then
309 - sed -i "/wine.man.in/i \
310 - \\\twine64.man.in \\\\" loader/Makefile.in || die
311 - sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\
312 -\164\2/' loader/Makefile.in || die
313 - fi
314 -
315 - rm_man_file(){
316 - local file="${1}"
317 - loc=${2}
318 - sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die
319 - }
320 -
321 - while read f; do
322 - plocale_for_each_disabled_locale rm_man_file "${f}"
323 - done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print)
324 -}
325 -
326 -src_configure() {
327 - wine_compiler_check || die
328 -
329 - export LDCONFIG=/bin/true
330 - use custom-cflags || strip-flags
331 - if use mingw; then
332 - use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
333 -
334 - # use *FLAGS for mingw, but strip unsupported (e.g. --hash-style=gnu)
335 - local mingwcc=${CROSSCC:-$(usex x86 i686 x86_64)-w64-mingw32-gcc}
336 - : "${CROSSCFLAGS:=$(CC=${mingwcc} test-flags-CC ${CFLAGS:--O2})}"
337 - : "${CROSSLDFLAGS:=$(CC=${mingwcc} test-flags-CCLD ${LDFLAGS})}"
338 - export CROSS{C,LD}FLAGS
339 - fi
340 -
341 - multilib-minimal_src_configure
342 -}
343 -
344 -multilib_src_configure() {
345 - local myconf=(
346 - --prefix="${MY_PREFIX}"
347 - --datarootdir="${MY_DATAROOTDIR}"
348 - --datadir="${MY_DATADIR}"
349 - --docdir="${MY_DOCDIR}"
350 - --includedir="${MY_INCLUDEDIR}"
351 - --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
352 - --libexecdir="${MY_LIBEXECDIR}"
353 - --localstatedir="${MY_LOCALSTATEDIR}"
354 - --mandir="${MY_MANDIR}"
355 - --sysconfdir="${EPREFIX}/etc/wine"
356 - $(use_with alsa)
357 - $(use_with capi)
358 - $(use_with cups)
359 - $(use_with udisks dbus)
360 - $(use_with fontconfig)
361 - $(use_with ssl gnutls)
362 - $(use_enable gecko mshtml)
363 - $(use_with gphoto2 gphoto)
364 - $(use_with gssapi)
365 - $(use_with gstreamer)
366 - --disable-hal
367 - $(use_with kerberos krb5)
368 - $(use_with ldap)
369 - # TODO: Will bug 685172 still need special handling?
370 - $(use_with mingw)
371 - $(use_enable mono mscoree)
372 - $(use_with netapi)
373 - $(use_with nls gettext)
374 - $(use_with openal)
375 - $(use_with opencl)
376 - $(use_with opengl)
377 - $(use_with osmesa)
378 - $(use_with oss)
379 - $(use_with pcap)
380 - $(use_with pulseaudio pulse)
381 - $(use_with threads pthread)
382 - $(use_with scanner sane)
383 - $(use_with sdl)
384 - $(use_enable test tests)
385 - $(use_with truetype freetype)
386 - $(use_with udev)
387 - $(use_with unwind)
388 - $(use_with usb)
389 - $(use_with v4l v4l2)
390 - $(use_enable vkd3d)
391 - $(use_with vulkan)
392 - $(use_with X x)
393 - $(use_with X xfixes)
394 - $(use_with xcomposite)
395 - $(use_with xinerama)
396 - )
397 -
398 - local PKG_CONFIG
399 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
400 - tc-export PKG_CONFIG
401 -
402 - if use amd64; then
403 - if [[ ${ABI} == amd64 ]]; then
404 - myconf+=( --enable-win64 )
405 - else
406 - myconf+=( --disable-win64 )
407 - fi
408 -
409 - # Note: using --with-wine64 results in problems with multilib.eclass
410 - # CC/LD hackery. We're using separate tools instead.
411 - fi
412 -
413 - ECONF_SOURCE=${S} \
414 - econf "${myconf[@]}"
415 - emake depend
416 -}
417 -
418 -multilib_src_test() {
419 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
420 - if [[ ${ABI} == x86 ]]; then
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 ${MY_PN} suite, add userpriv to FEATURES in make.conf"
424 - return
425 - fi
426 -
427 - WINEPREFIX="${T}/.wine-${ABI}" \
428 - virtx emake test
429 - fi
430 -}
431 -
432 -multilib_src_install_all() {
433 - local DOCS=( ANNOUNCE AUTHORS README )
434 - add_locale_docs() {
435 - local locale_doc="documentation/README.$1"
436 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
437 - }
438 - plocale_for_each_locale add_locale_docs
439 -
440 - einstalldocs
441 - find "${ED}" -name *.la -delete || die
442 -
443 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
444 - rm "${D%}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
445 - "${D%}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
446 - fi
447 -
448 - use abi_x86_32 && pax-mark psmr "${D%}${MY_PREFIX}"/bin/wine{,-preloader} #255055
449 - use abi_x86_64 && pax-mark psmr "${D%}${MY_PREFIX}"/bin/wine64{,-preloader}
450 -
451 - # Avoid double prefix from dosym and make_wrapper
452 - MY_PREFIX=${MY_PREFIX#${EPREFIX}}
453 -
454 - if use abi_x86_64 && ! use abi_x86_32; then
455 - dosym wine64 "${MY_PREFIX}"/bin/wine # 404331
456 - dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader
457 - fi
458 -
459 - # Failglob for binloops, shouldn't be necessary, but including to stay safe
460 - eshopts_push -s failglob #615218
461 - # Make wrappers for binaries for handling multiple variants
462 - # Note: wrappers instead of symlinks because some are shell which use basename
463 - local b
464 - for b in "${ED%}${MY_PREFIX}"/bin/*; do
465 - make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
466 - done
467 - eshopts_pop
468 -}
469 -
470 -pkg_postinst() {
471 - eselect wine register ${P}
472 - if [[ ${PN} == "wine-vanilla" ]]; then
473 - eselect wine register --vanilla ${P} || die
474 - fi
475 -
476 - eselect wine update --all --if-unset || die
477 -
478 - xdg_desktop_database_update
479 -
480 - if ! use gecko; then
481 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
482 - ewarn "implementation of iexplore. Many older windows applications"
483 - ewarn "rely upon the existence of an iexplore implementation, so"
484 - ewarn "you will likely need to install an external one, like via winetricks"
485 - fi
486 - if ! use mono; then
487 - ewarn "Without Wine Mono, wine prefixes will not have a default"
488 - ewarn "implementation of .NET. Many windows applications rely upon"
489 - ewarn "the existence of a .NET implementation, so you will likely need"
490 - ewarn "to install an external one, like via winetricks"
491 - fi
492 -}
493 -
494 -pkg_prerm() {
495 - eselect wine deregister ${P}
496 - if [[ ${PN} == "wine-vanilla" ]]; then
497 - eselect wine deregister --vanilla ${P} || die
498 - fi
499 -
500 - eselect wine update --all --if-unset || die
501 -}
502 -
503 -pkg_postrm() {
504 - xdg_desktop_database_update
505 -}