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