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-staging/
Date: Sun, 20 Jun 2021 01:11:32
Message-Id: 1624151474.a3889c3cab8eeec627ba8808e2d0c0f92ced829d.sarnex@gentoo
1 commit: a3889c3cab8eeec627ba8808e2d0c0f92ced829d
2 Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 01:10:54 2021 +0000
4 Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 20 01:11:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3889c3c
7
8 app-emulation/wine-staging: Drop old
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>
12
13 app-emulation/wine-staging/Manifest | 2 -
14 app-emulation/wine-staging/wine-staging-6.7.ebuild | 665 ---------------------
15 2 files changed, 667 deletions(-)
16
17 diff --git a/app-emulation/wine-staging/Manifest b/app-emulation/wine-staging/Manifest
18 index d45743d66fb..f01712b1655 100644
19 --- a/app-emulation/wine-staging/Manifest
20 +++ b/app-emulation/wine-staging/Manifest
21 @@ -1,11 +1,9 @@
22 DIST gentoo-wine-patches-20200523.tar.xz 59740 BLAKE2B 951d7f305a6e5b3759c8095629d48de4830b8a0c9558de859a9e02d9824fe85553fda2bc0820ca97022a0ca63ac28473dadfe827821220445dbf1a7fd15c7c98 SHA512 46eea45c982b475e3ff444cbd87c6a0a235fc8dcaf3d83d89655a10ed8841a9ddb09e5a638a05803f3bf2c3bd34165c16067aba561efa4c183ee396dc31cdf75
23 DIST wine-6.10.tar.xz 24562432 BLAKE2B aeb4efc6fcbdbbbfa71a99112224c77e1da10468e47d49de87ecf06556008e83d6e3d8655fa4439293820663910897d512a77bb78ab771632f893b46745915af SHA512 f0e8f0bdab09c979772965d167d687e88998f3fd6537a592e201a2dc9097552e03b1c413516cc8c82665a8bf17580777f48bd1ed9033641f04e7ef7f0b29cc60
24 DIST wine-6.11.tar.xz 24599644 BLAKE2B 47b8eefadd59e649ac331ee236b90dfffd86ea812699f3d804bd3a7d939d099c88c4b19cf8d8e0bbe2463298abe398528c132443350f3d5eba0d23e7a3a2889c SHA512 d041ad99b6311f99df6ef40a64bc393acdc77ad4bf5f28111ebb88c133c3d338aff18f129fb30ae38cca24bf579834d4e6c7d252d5391f35b1ee81a91cc70c21
25 -DIST wine-6.7.tar.xz 24449368 BLAKE2B 002bd6e74205217d4517c8697ddb212d8bcb8ba66ac1594996e24e2d5e771119e73e65a0b42608133ebaab699a31cd6567a0ab954e8d4e1f94492ebb929d0ffb SHA512 42920921eaff5a483859fba2b9e866c6afad25427d030f971efe2136f9619b675d5eb1ddfffd54bba8caa172c3e91eb347d673cb16f45560f0ab40a184a34758
26 DIST wine-6.8.tar.xz 24481304 BLAKE2B 37643eb75b29a646f23620df4084809aa15ac9d390e34e2e1ffb9e0c5211df9e7595dd0d877ede61f914f4a4373a450c50f4f2da5f7a0fa880881404cd918c88 SHA512 784863e3aa11f692cee2ab3b3d99cc896c1eb41cfab8cc6b52b5a31671d82fc7f6783bae72c65d8806a8c4096000401cbd0a1a7f1a88fd980685fae67fa9bd91
27 DIST wine-6.9.tar.xz 24526724 BLAKE2B 9e39bbc84380f7f40a9f41e1dbd1728ae8833eab4fe977eaf9386a92b9f089cf63147e35093b084d3a61e5c7209b405caea9cee2a4bebb294b77c65fc3551d66 SHA512 e9dc4da8cd6553db4227f09b5734513939d7e361449f52472a1f51ae569377a2931a0ab6f402aef751587ff1fa50f10f222b4479aba44f862db320931eeff363
28 DIST wine-staging-6.10.tar.gz 9673740 BLAKE2B 3ec1dcc96dcf583f061408b7bdf4adf14fddf6bf0dcefbb9a060a63de7ea87c3df0a5a76c14e01b248c9b21c1ed25379867f9e4d392b251f56deb93a78b2752a SHA512 9ba4fb7451f675fd9ad3e872adada708e9e7e8875f69567d9f2bef2cc8024667112538a385769eac2fd4b3c157266488458e76a1abc92d0a76109ca032103bcf
29 DIST wine-staging-6.11.tar.gz 9672754 BLAKE2B a2d77fcfe198f9c474bb754b02c3e279faec73a30678b899aeaab53cba38b74bf43724d5b1f3d46dfa7a502b0ce637d5908dea09b386009acb937d1033445d99 SHA512 b9b6f206d7a37699887a9bd65c30b9d2fc333b507461dbd532fe17db881db1e79ef5620ce2421cdde8548411924fabba0f98123342f30c8d93a019b3a2125303
30 -DIST wine-staging-6.7.tar.gz 9722531 BLAKE2B 1df164ea23808f40baddbbe30ed92125563c3c952e13817ddea124cf780a397237e70aa48532d5b49c8b80919122a09e579f1928a13b6d17329d51f0ba03da74 SHA512 74805846e2e6e5d751c25f4b98ac671f8507d3a9b13d572e166b1885e397a6bb74bd3ea4b456d46298306d632499a4b88f97eb6d53ff049c2495cf055347611d
31 DIST wine-staging-6.8.tar.gz 9709006 BLAKE2B 48a100f43cedc4217c083421d4391e5f052faf354483990552d271a5820b654b4dd4db0b3d2d1478cbdf8414da56c86e7bce05ebdb70c347d81ce0b6df811498 SHA512 a2dfe74b07b687af147b61f235ea2843ff38a563f37ed2ed68dce1cc0ff3d50dbd7c9596836c6e236e368e7a55cbe1ba881dac11bb0966e61a76a7376f92bdcc
32 DIST wine-staging-6.9.tar.gz 9687986 BLAKE2B 72cf53616a619638fdc91d7501c8fcc2bb9c102a1a445a9c58dd23fbb5bccc27fcf2f9635ec65b23d93839514d8aa9ede29d84d6737e49776a1d99b716295ea4 SHA512 09732ce6fe5e5460ef5f30ab3dd5581c94b27e1d2c228bc395b1defd32fc5e908ab32eb2a56e489b154e1d0f638ad792c80a64d82d90a33c943102b379bef937
33
34 diff --git a/app-emulation/wine-staging/wine-staging-6.7.ebuild b/app-emulation/wine-staging/wine-staging-6.7.ebuild
35 deleted file mode 100644
36 index f1e4e79a20a..00000000000
37 --- a/app-emulation/wine-staging/wine-staging-6.7.ebuild
38 +++ /dev/null
39 @@ -1,665 +0,0 @@
40 -# Copyright 1999-2021 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=6
44 -
45 -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"
46 -PLOCALE_BACKUP="en"
47 -
48 -inherit autotools eapi7-ver estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx xdg-utils
49 -MY_PN="${PN%%-*}"
50 -MY_PV="${PV/_/-}"
51 -MY_P="${MY_PN}-${MY_PV}"
52 -
53 -if [[ ${MY_PV} == "9999" ]] ; then
54 - EGIT_REPO_URI="https://source.winehq.org/git/wine.git"
55 - EGIT_BRANCH="master"
56 - inherit git-r3
57 - SRC_URI=""
58 - #KEYWORDS=""
59 -else
60 - MAJOR_V=$(ver_cut 1)
61 - MINOR_V=$(ver_cut 2)
62 - if [[ ${MINOR_V} != "0" ]] ; then
63 - MINOR_V="x"
64 - fi
65 - SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.${MINOR_V}/${MY_P}.tar.xz"
66 - KEYWORDS="-* ~amd64 ~x86"
67 -fi
68 -S="${WORKDIR}/${MY_P}"
69 -
70 -STAGING_P="wine-staging-${MY_PV}"
71 -STAGING_DIR="${WORKDIR}/${STAGING_P}"
72 -GWP_V="20200523"
73 -PATCHDIR="${WORKDIR}/gentoo-wine-patches"
74 -
75 -DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
76 -HOMEPAGE="https://www.winehq.org/"
77 -SRC_URI="${SRC_URI}
78 - https://dev.gentoo.org/~sarnex/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz
79 -"
80 -
81 -if [[ ${MY_PV} == "9999" ]] ; then
82 - STAGING_EGIT_REPO_URI="https://github.com/wine-staging/wine-staging.git"
83 -else
84 - SRC_URI="${SRC_URI}
85 - staging? ( https://github.com/wine-staging/wine-staging/archive/v${MY_PV}.tar.gz -> ${STAGING_P}.tar.gz )"
86 -fi
87 -
88 -LICENSE="LGPL-2.1"
89 -SLOT="${MY_PV}"
90 -IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +faudio +fontconfig +gcrypt +gecko gphoto2 gsm gssapi gstreamer +jpeg kerberos kernel_FreeBSD +lcms ldap mingw +mono mp3 netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png prelink pulseaudio +realtime +run-exes samba scanner sdl selinux +ssl staging test themes +threads +truetype udev +udisks +unwind usb v4l vaapi vkd3d vulkan +X +xcomposite xinerama +xml"
91 -REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
92 - X? ( truetype )
93 - elibc_glibc? ( threads )
94 - osmesa? ( opengl )
95 - pipelight? ( staging )
96 - test? ( abi_x86_32 )
97 - themes? ( staging )
98 - vaapi? ( staging )
99 - vkd3d? ( vulkan )" # osmesa-opengl #286560 # X-truetype #551124
100 -
101 -# FIXME: the test suite is unsuitable for us; many tests require net access
102 -# or fail due to Xvfb's opengl limitations.
103 -RESTRICT="test"
104 -
105 -COMMON_DEPEND="
106 - X? (
107 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
108 - x11-libs/libXext[${MULTILIB_USEDEP}]
109 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
110 - x11-libs/libXrandr[${MULTILIB_USEDEP}]
111 - x11-libs/libXi[${MULTILIB_USEDEP}]
112 - x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
113 - )
114 - alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
115 - capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
116 - cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
117 - faudio? ( app-emulation/faudio:=[${MULTILIB_USEDEP}] )
118 - fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
119 - gcrypt? ( dev-libs/libgcrypt:=[${MULTILIB_USEDEP}] )
120 - gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
121 - gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
122 - gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] )
123 - gstreamer? (
124 - media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
125 - media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
126 - )
127 - jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
128 - kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] )
129 - lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
130 - ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
131 - mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
132 - netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
133 - nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
134 - odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
135 - openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
136 - opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
137 - opengl? (
138 - virtual/glu[${MULTILIB_USEDEP}]
139 - virtual/opengl[${MULTILIB_USEDEP}]
140 - )
141 - osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
142 - pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
143 - png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
144 - pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
145 - scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
146 - sdl? ( media-libs/libsdl2:=[haptic,joystick,${MULTILIB_USEDEP}] )
147 - ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
148 - staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
149 - themes? (
150 - dev-libs/glib:2[${MULTILIB_USEDEP}]
151 - x11-libs/cairo[${MULTILIB_USEDEP}]
152 - x11-libs/gtk+:3[${MULTILIB_USEDEP}]
153 - )
154 - truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
155 - udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
156 - udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
157 - unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
158 - usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] )
159 - v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
160 - vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
161 - vkd3d? ( >=app-emulation/vkd3d-1.2[${MULTILIB_USEDEP}] )
162 - vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
163 - xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
164 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
165 - xml? (
166 - dev-libs/libxml2[${MULTILIB_USEDEP}]
167 - dev-libs/libxslt[${MULTILIB_USEDEP}]
168 - )"
169 -
170 -RDEPEND="${COMMON_DEPEND}
171 - app-emulation/wine-desktop-common
172 - >app-eselect/eselect-wine-0.3
173 - !app-emulation/wine:0
174 - dos? ( >=games-emulation/dosbox-0.74_p20160629 )
175 - gecko? ( app-emulation/wine-gecko:2.47.2[abi_x86_32?,abi_x86_64?] )
176 - mono? ( app-emulation/wine-mono:6.1.1 )
177 - perl? (
178 - dev-lang/perl
179 - dev-perl/XML-Simple
180 - )
181 - pulseaudio? (
182 - realtime? ( sys-auth/rtkit )
183 - )
184 - samba? ( >=net-fs/samba-3.0.25[winbind] )
185 - selinux? ( sec-policy/selinux-wine )
186 - udisks? ( sys-fs/udisks:2 )"
187 -
188 -# tools/make_requests requires perl
189 -DEPEND="${COMMON_DEPEND}
190 - sys-devel/flex
191 - >=sys-kernel/linux-headers-2.6
192 - virtual/pkgconfig
193 - virtual/yacc
194 - X? ( x11-base/xorg-proto )
195 - prelink? ( sys-devel/prelink )
196 - staging? (
197 - dev-lang/perl
198 - dev-perl/XML-Simple
199 - )
200 - xinerama? ( x11-base/xorg-proto )"
201 -
202 -# These use a non-standard "Wine" category, which is provided by
203 -# /etc/xdg/applications-merged/wine.menu
204 -QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
205 -usr/share/applications/wine-notepad.desktop
206 -usr/share/applications/wine-uninstaller.desktop
207 -usr/share/applications/wine-winecfg.desktop"
208 -
209 -PATCHES=(
210 - "${PATCHDIR}/patches/${MY_PN}-5.0-winegcc.patch" #260726
211 - "${PATCHDIR}/patches/${MY_PN}-4.7-multilib-portage.patch" #395615
212 - "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611
213 - "${PATCHDIR}/patches/${MY_PN}-5.9-Revert-makedep-Install-also-generated-typelib-for-in.patch"
214 -)
215 -PATCHES_BIN=()
216 -
217 -# https://bugs.gentoo.org/show_bug.cgi?id=635222
218 -if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${MY_PV} == 9999 ]]; then
219 - DEPEND+=" dev-util/patchbin"
220 -fi
221 -
222 -wine_compiler_check() {
223 - # GCC-specific bugs
224 - if tc-is-gcc; then
225 - # bug #549768
226 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
227 - ebegin "Checking for gcc-5 ms_abi compiler bug"
228 - $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
229 - # Run in subshell to prevent "Aborted" message
230 - ( "${T}"/pr66838 || false ) >/dev/null 2>&1
231 - if ! eend $?; then
232 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
233 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
234 - eerror "or use gcc-config to select a different compiler version."
235 - eerror "See https://bugs.gentoo.org/549768"
236 - eerror
237 - return 1
238 - fi
239 - fi
240 - # bug #574044
241 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
242 - ebegin "Checking for gcc-5-3 stack realignment compiler bug"
243 - # Compile in subshell to prevent "Aborted" message
244 - ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
245 - if ! eend $?; then
246 - eerror "Wine cannot be built with this version of gcc-5.3"
247 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
248 - eerror "or use gcc-config to select a different compiler version."
249 - eerror "See https://bugs.gentoo.org/574044"
250 - eerror
251 - return 1
252 - fi
253 - fi
254 - fi
255 -
256 - # Ensure compiler support
257 - if use abi_x86_64; then
258 - ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
259 - # Compile in subshell to prevent "Aborted" message
260 - ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
261 - if ! eend $?; then
262 - eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
263 - eerror
264 - eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
265 - eerror
266 - return 1
267 - fi
268 - fi
269 -}
270 -
271 -wine_build_environment_check() {
272 - [[ ${MERGE_TYPE} = "binary" ]] && return 0
273 -
274 - if use abi_x86_64; then
275 - if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
276 - eerror "You need gcc-4.4+ to compile 64-bit wine"
277 - die
278 - elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
279 - eerror "You need clang-3.8+ to compile 64-bit wine"
280 - die
281 - fi
282 - fi
283 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
284 - ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
285 - ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
286 - ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
287 - fi
288 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
289 - if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
290 - ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
291 - ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
292 - ewarn "See package.env in man 5 portage for more information on how to do this."
293 - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
294 - fi
295 - fi
296 -
297 - if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
298 - eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
299 - eerror "See https://bugs.gentoo.org/487864 for more details."
300 - eerror
301 - return 1
302 - fi
303 -}
304 -
305 -wine_env_vcs_vars() {
306 - local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
307 - local pn_live_val="${pn_live_var}"
308 - eval pn_live_val='$'${pn_live_val}
309 - if [[ ! -z ${pn_live_val} ]]; then
310 - if use staging; then
311 - eerror "Because of the multi-repo nature of ${MY_PN}, ${pn_live_var}"
312 - eerror "cannot be used to set the commit. Instead, you may use the"
313 - eerror "environment variables:"
314 - eerror " EGIT_OVERRIDE_COMMIT_WINE"
315 - eerror " EGIT_OVERRIDE_COMMIT_WINE_STAGING_WINE_STAGING"
316 - eerror
317 - return 1
318 - fi
319 - fi
320 - if [[ ! -z ${EGIT_COMMIT} ]]; then
321 - eerror "Commits must now be specified using the environment variables:"
322 - eerror " EGIT_OVERRIDE_COMMIT_WINE"
323 - eerror " EGIT_OVERRIDE_COMMIT_WINE_STAGING_WINE_STAGING"
324 - eerror
325 - return 1
326 - fi
327 -}
328 -
329 -pkg_pretend() {
330 - if [[ ${MERGE_TYPE} != binary ]] ; then
331 - wine_build_environment_check || die
332 -
333 - # Verify OSS support
334 - if use oss && ! use kernel_FreeBSD; then
335 - if ! has_version ">=media-sound/oss-4"; then
336 - eerror "You cannot build wine with USE=oss without having support from a"
337 - eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
338 - eerror
339 - die
340 - fi
341 - fi
342 -
343 - if use mingw && use abi_x86_32 && ! has_version "cross-i686-w64-mingw32/gcc"; then
344 - eerror
345 - eerror "USE=\"mingw\" is currently experimental, and requires the"
346 - eerror "'cross-i686-w64-mingw32' compiler and its runtime for 32-bit builds."
347 - eerror
348 - eerror "These can be installed by using 'sys-devel/crossdev':"
349 - eerror
350 - eerror "crossdev --target i686-w64-mingw32"
351 - eerror
352 - eerror "For more information on setting up MinGW, see: https://wiki.gentoo.org/wiki/Mingw"
353 - eerror
354 - die "MinGW build was enabled, but no compiler to support it was found."
355 - fi
356 -
357 - if use mingw && use abi_x86_64 && ! has_version "cross-x86_64-w64-mingw32/gcc"; then
358 - eerror
359 - eerror "USE=\"mingw\" is currently experimental, and requires the"
360 - eerror "'cross-x86_64-w64-mingw32' compiler and its runtime for 64-bit builds."
361 - eerror
362 - eerror "These can be installed by using 'sys-devel/crossdev':"
363 - eerror
364 - eerror "crossdev --target x86_64-w64-mingw32"
365 - eerror
366 - eerror "For more information on setting up MinGW, see: https://wiki.gentoo.org/wiki/Mingw"
367 - eerror
368 - die "MinGW build was enabled, but no compiler to support it was found."
369 - fi
370 - fi
371 -}
372 -
373 -pkg_setup() {
374 - wine_build_environment_check || die
375 - wine_env_vcs_vars || die
376 -
377 - WINE_VARIANT="${PN#wine}-${MY_PV}"
378 - WINE_VARIANT="${WINE_VARIANT#-}"
379 -
380 - MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
381 - MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
382 - MY_DATADIR="${MY_DATAROOTDIR}"
383 - MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
384 - MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
385 - MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
386 - MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
387 - MY_MANDIR="${MY_DATADIR}/man"
388 -}
389 -
390 -src_unpack() {
391 - if [[ ${MY_PV} == "9999" ]] ; then
392 - EGIT_CHECKOUT_DIR="${S}" git-r3_src_unpack
393 - if use staging; then
394 - local CURRENT_WINE_COMMIT=${EGIT_VERSION}
395 -
396 - EGIT_CHECKOUT_DIR="${STAGING_DIR}" EGIT_REPO_URI="${STAGING_EGIT_REPO_URI}" git-r3_src_unpack
397 -
398 - local COMPAT_WINE_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die
399 -
400 - if [[ "${CURRENT_WINE_COMMIT}" != "${COMPAT_WINE_COMMIT}" ]]; then
401 - einfo "The current Staging patchset is not guaranteed to apply on this WINE commit."
402 - einfo "If src_prepare fails, try emerging with the env var WINE_COMMIT."
403 - einfo "Example: EGIT_OVERRIDE_COMMIT_WINE=${COMPAT_WINE_COMMIT} emerge -1 wine"
404 - fi
405 - fi
406 - fi
407 -
408 - default
409 -
410 - l10n_find_plocales_changes "${S}/po" "" ".po"
411 -}
412 -
413 -src_prepare() {
414 -
415 - eapply_bin() {
416 - local patch
417 - for patch in ${PATCHES_BIN[@]}; do
418 - patchbin --nogit < "${patch}" || die
419 - done
420 - }
421 -
422 - local md5="$(md5sum server/protocol.def)"
423 -
424 - if use staging; then
425 - ewarn "Applying the Wine-Staging patchset. Any bug reports to the"
426 - ewarn "Wine bugzilla should explicitly state that staging was used."
427 -
428 - local STAGING_EXCLUDE="-W winemenubuilder-Desktop_Icon_Path" #652176
429 - use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
430 -
431 - # Launch wine-staging patcher in a subshell, using eapply as a backend, and gitapply.sh as a backend for binary patches
432 - ebegin "Running Wine-Staging patch installer"
433 - (
434 - set -- DESTDIR="${S}" --backend=eapply --no-autoconf --all ${STAGING_EXCLUDE}
435 - cd "${STAGING_DIR}/patches"
436 - source "${STAGING_DIR}/patches/patchinstall.sh"
437 - )
438 - eend $? || die "Failed to apply Wine-Staging patches"
439 - fi
440 -
441 - default
442 - eapply_bin
443 - eautoreconf
444 -
445 - # Modification of the server protocol requires regenerating the server requests
446 - if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
447 - einfo "server/protocol.def was patched; running tools/make_requests"
448 - tools/make_requests || die #432348
449 - fi
450 - sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
451 - if ! use run-exes; then
452 - sed -i '/^MimeType/d' loader/wine.desktop || die #117785
453 - fi
454 -
455 - # Edit wine.desktop to work for specific variant
456 - sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
457 -
458 - # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652
459 - cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die
460 -
461 - l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
462 -
463 - # Fix manpage generation for locales #469418 and abi_x86_64 #617864
464 -
465 - # Duplicate manpages input files for wine64
466 - local f
467 - for f in loader/*.man.in; do
468 - cp ${f} ${f/wine/wine64} || die
469 - done
470 - # Add wine64 manpages to Makefile
471 - if use abi_x86_64; then
472 - sed -i "/wine.man.in/i \
473 - \\\twine64.man.in \\\\" loader/Makefile.in || die
474 - sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\
475 -\164\2/' loader/Makefile.in || die
476 - fi
477 -
478 - rm_man_file() {
479 - local file="${1}"
480 - loc=${2}
481 - sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die
482 - }
483 -
484 - while read f; do
485 - l10n_for_each_disabled_locale_do rm_man_file "${f}"
486 - done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print)
487 -}
488 -
489 -src_configure() {
490 - wine_compiler_check || die
491 -
492 - export LDCONFIG=/bin/true
493 - use custom-cflags || strip-flags
494 - if use mingw; then
495 - export CROSSCFLAGS="${CFLAGS}"
496 - fi
497 -
498 - multilib-minimal_src_configure
499 -}
500 -
501 -multilib_src_configure() {
502 - local myconf=(
503 - --prefix="${MY_PREFIX}"
504 - --datarootdir="${MY_DATAROOTDIR}"
505 - --datadir="${MY_DATADIR}"
506 - --docdir="${MY_DOCDIR}"
507 - --includedir="${MY_INCLUDEDIR}"
508 - --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
509 - --libexecdir="${MY_LIBEXECDIR}"
510 - --localstatedir="${MY_LOCALSTATEDIR}"
511 - --mandir="${MY_MANDIR}"
512 - --sysconfdir="${EPREFIX}/etc/wine"
513 - $(use_with alsa)
514 - $(use_with capi)
515 - $(use_with lcms cms)
516 - $(use_with cups)
517 - $(use_with udisks dbus)
518 - $(use_with faudio)
519 - $(use_with fontconfig)
520 - $(use_with ssl gnutls)
521 - $(use_enable gecko mshtml)
522 - $(use_with gcrypt)
523 - $(use_with gphoto2 gphoto)
524 - $(use_with gsm)
525 - $(use_with gssapi)
526 - $(use_with gstreamer)
527 - --without-hal
528 - $(use_with jpeg)
529 - $(use_with kerberos krb5)
530 - $(use_with ldap)
531 - # TODO: Will bug 685172 still need special handling?
532 - $(use_with mingw)
533 - $(use_enable mono mscoree)
534 - $(use_with mp3 mpg123)
535 - $(use_with netapi)
536 - $(use_with nls gettext)
537 - $(use_with openal)
538 - $(use_with opencl)
539 - $(use_with opengl)
540 - $(use_with osmesa)
541 - $(use_with oss)
542 - $(use_with pcap)
543 - $(use_with png)
544 - $(use_with pulseaudio pulse)
545 - $(use_with threads pthread)
546 - $(use_with scanner sane)
547 - $(use_with sdl)
548 - $(use_enable test tests)
549 - $(use_with truetype freetype)
550 - $(use_with udev)
551 - $(use_with unwind)
552 - $(use_with usb)
553 - $(use_with v4l v4l2)
554 - $(use_with vkd3d)
555 - $(use_with vulkan)
556 - $(use_with X x)
557 - $(use_with X xfixes)
558 - $(use_with xcomposite)
559 - $(use_with xinerama)
560 - $(use_with xml)
561 - $(use_with xml xslt)
562 - )
563 -
564 - use staging && myconf+=(
565 - --with-xattr
566 - $(use_with themes gtk3)
567 - $(use_with vaapi va)
568 - )
569 -
570 - local PKG_CONFIG AR RANLIB
571 - # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
572 - # set AR and RANLIB to make QA scripts happy; #483342
573 - tc-export PKG_CONFIG AR RANLIB
574 -
575 - if use amd64; then
576 - if [[ ${ABI} == amd64 ]]; then
577 - myconf+=( --enable-win64 )
578 - else
579 - myconf+=( --disable-win64 )
580 - fi
581 -
582 - # Note: using --with-wine64 results in problems with multilib.eclass
583 - # CC/LD hackery. We're using separate tools instead.
584 - fi
585 -
586 - ECONF_SOURCE=${S} \
587 - econf "${myconf[@]}"
588 - emake depend
589 -}
590 -
591 -multilib_src_test() {
592 - # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
593 - if [[ ${ABI} == x86 ]]; then
594 - if [[ $(id -u) == 0 ]]; then
595 - ewarn "Skipping tests since they cannot be run under the root user."
596 - ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
597 - return
598 - fi
599 -
600 - WINEPREFIX="${T}/.wine-${ABI}" \
601 - virtx emake test
602 - fi
603 -}
604 -
605 -multilib_src_install_all() {
606 - local DOCS=( ANNOUNCE AUTHORS README )
607 - add_locale_docs() {
608 - local locale_doc="documentation/README.$1"
609 - [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
610 - }
611 - l10n_for_each_locale_do add_locale_docs
612 -
613 - einstalldocs
614 - prune_libtool_files --all
615 -
616 - if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
617 - rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
618 - "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
619 - fi
620 -
621 - # Remove wineconsole if neither backend is installed #551124
622 - if ! use X; then
623 - rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
624 - rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
625 -
626 - if ! use mingw; then
627 - rm_wineconsole() {
628 - rm "${D%/}/usr/$(get_libdir)/wine-${WINE_VARIANT}"/wine/{,fakedlls/}wineconsole.exe* || die
629 - }
630 - else
631 - rm_wineconsole() {
632 - rm "${D%/}/usr/$(get_libdir)/wine-${WINE_VARIANT}"/wine/wineconsole.exe* || die
633 - }
634 - fi
635 -
636 - multilib_foreach_abi rm_wineconsole
637 - fi
638 -
639 - use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
640 - use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
641 -
642 - # Avoid double prefix from dosym and make_wrapper
643 - MY_PREFIX=${MY_PREFIX#${EPREFIX}}
644 -
645 - if use abi_x86_64 && ! use abi_x86_32; then
646 - dosym wine64 "${MY_PREFIX}"/bin/wine # 404331
647 - dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader
648 - fi
649 -
650 - # Failglob for binloops, shouldn't be necessary, but including to stay safe
651 - eshopts_push -s failglob #615218
652 - # Make wrappers for binaries for handling multiple variants
653 - # Note: wrappers instead of symlinks because some are shell which use basename
654 - local b
655 - for b in "${ED%/}${MY_PREFIX}"/bin/*; do
656 - make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
657 - done
658 - eshopts_pop
659 -}
660 -
661 -pkg_postinst() {
662 - eselect wine register ${PN}-${MY_PV}
663 - if [[ ${PN} == "wine-vanilla" ]]; then
664 - eselect wine register --vanilla ${PN}-${MY_PV} || die
665 - else
666 - if use staging; then
667 - eselect wine register --staging ${PN}-${MY_PV} || die
668 - fi
669 - fi
670 -
671 - eselect wine update --all --if-unset || die
672 -
673 - xdg_desktop_database_update
674 -
675 - if ! use gecko; then
676 - ewarn "Without Wine Gecko, wine prefixes will not have a default"
677 - ewarn "implementation of iexplore. Many older windows applications"
678 - ewarn "rely upon the existence of an iexplore implementation, so"
679 - ewarn "you will likely need to install an external one, like via winetricks"
680 - fi
681 - if ! use mono; then
682 - ewarn "Without Wine Mono, wine prefixes will not have a default"
683 - ewarn "implementation of .NET. Many windows applications rely upon"
684 - ewarn "the existence of a .NET implementation, so you will likely need"
685 - ewarn "to install an external one, like via winetricks"
686 - fi
687 -}
688 -
689 -pkg_prerm() {
690 - eselect wine deregister ${PN}-${MY_PV}
691 - if [[ ${PN} == "wine-vanilla" ]]; then
692 - eselect wine deregister --vanilla ${PN}-${MY_PV} || die
693 - else
694 - if use staging; then
695 - eselect wine deregister --staging ${PN}-${MY_PV}|| die
696 - fi
697 - fi
698 -
699 - eselect wine update --all --if-unset || die
700 -}
701 -
702 -pkg_postrm() {
703 - xdg_desktop_database_update
704 -}