1 |
commit: 9dddf2d2b07d1c3f141ebd07b858a7a7b586fe38 |
2 |
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 20:13:01 2021 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 20:14:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dddf2d2 |
7 |
|
8 |
app-emulation/wine-vanilla: Drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
11 |
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org> |
12 |
|
13 |
app-emulation/wine-vanilla/Manifest | 2 - |
14 |
.../wine-vanilla/wine-vanilla-5.21.ebuild | 538 ------------------- |
15 |
.../wine-vanilla/wine-vanilla-5.22-r2.ebuild | 576 --------------------- |
16 |
3 files changed, 1116 deletions(-) |
17 |
|
18 |
diff --git a/app-emulation/wine-vanilla/Manifest b/app-emulation/wine-vanilla/Manifest |
19 |
index 1a593964a00..0d0cc62dcc3 100644 |
20 |
--- a/app-emulation/wine-vanilla/Manifest |
21 |
+++ b/app-emulation/wine-vanilla/Manifest |
22 |
@@ -2,8 +2,6 @@ DIST gentoo-wine-patches-20191222.tar.xz 59236 BLAKE2B 1b2c7b3ab69e5603d0f176a88 |
23 |
DIST gentoo-wine-patches-20200523.tar.xz 59740 BLAKE2B 951d7f305a6e5b3759c8095629d48de4830b8a0c9558de859a9e02d9824fe85553fda2bc0820ca97022a0ca63ac28473dadfe827821220445dbf1a7fd15c7c98 SHA512 46eea45c982b475e3ff444cbd87c6a0a235fc8dcaf3d83d89655a10ed8841a9ddb09e5a638a05803f3bf2c3bd34165c16067aba561efa4c183ee396dc31cdf75 |
24 |
DIST wine-5.0.2.tar.xz 22484932 BLAKE2B 93253a86605b32dc8f7c79a16336643e6f84937094f8c96ea336289c2076a4d9f759fc1ad128f7b1a009da5eb2ed25cdc893da99e338093608bf5fc0ef1a85fc SHA512 9ff902ff929d9ac8c81843eea141c96446d26b14f70781a40a3ea1fdef5f412ca4c87374a5a3af9b42b52236159645e55d6e54f8b06178a4d210a72fb1d5358e |
25 |
DIST wine-5.0.3.tar.xz 22495496 BLAKE2B 459399b940111fb573d3060e74c17423ff43b510a196d70eadb5d57e7d57b44c990f8c9bb69eb258a76515c2d50fb756f82229a1a7cd391a32c407bedc1e9f14 SHA512 3217cc8a91e898e15130314fb7ebc2cdd93e2a4e88a46d3778ff4790a635b28e951ba974b83a56414d387b710da21a998e519f1df0cde636ff5fffdceff7f652 |
26 |
-DIST wine-5.21.tar.xz 24178740 BLAKE2B 9d6b2766536fb019d69dbffc8dbae0004eeb6d5b3d3f57d0577b4952159b9a5388d1f767d982b3837d713175ac7baec47c7b017e21f4fb586d3d97707491066e SHA512 0879e4edeca60880799736ac831f8ae28c6e5156dde161685aa84a5d8bd20c4f3a51a178fa2b130a9e8af44432bb239160a04829fcef5d8332e2bbf829d2bc18 |
27 |
-DIST wine-5.22.tar.xz 24214812 BLAKE2B 7bc093501cb20fbe52e277aadb867e4f55abc9898ae570aebf3496c2f7938129498e6ad8b6de7f8efe28ccffee734c94754da703e0c5d6bad6c1293cefb42c0e SHA512 9e86a1f74a142513121c155ffa5e1dd863ecc00092952878f44185725e81793fd7291e0e3c93275cd0d083d17af99eb1d8feba1c96e8607f44919b9045737271 |
28 |
DIST wine-6.0.tar.xz 24192280 BLAKE2B baf0eee582190ede8d210390b51d330c1879cb442100bc2e957052898fbd84bcc047a885065f9bf96ac4f072f92eee44f0e1c3baddc68937286e7cc6f976bd4e SHA512 c0732fbab1da8737d595a876b28ce87eef1440c317746e798642b59b44b34e890de562e0c0cc674e97096f39db82f8e9c3b1cc1ba9edc246b7266a0f7cb00057 |
29 |
DIST wine-6.1.tar.xz 24227160 BLAKE2B 968405fb8a4060732a6070687e28aecc9169692bf18e058d358e859a2626281b5adb67b94d849628ecbfa87ad772a367f62fd3c5f45aecdf7d0a7e7aa8167c33 SHA512 49ee77c41e2fb1c4f22417117b26f8a467ec6c99583fca66f147003f776fcaf5ca42227153c7ca3325dfe70141ae9bfb88e3eb6e4cf25dd31a5ba5115d2685d0 |
30 |
DIST wine-6.2.tar.xz 24270924 BLAKE2B b83e7ff097d8f48cc46588a672515e8c1eafeafd592d4ced6a8347eaa33c31f9c5a2603958a10ce02463993c8ca5db77b227d0fbce452c1e3a637e5ea42cf635 SHA512 d28870ba58fc4ed9dc083f843d7f4ee8921722bb33e0b84c89f281fc27e5f827c0998ad629eb21c92f860dade77194d3c8a0f5b4c6ae3407fe7acef245cfa9a4 |
31 |
|
32 |
diff --git a/app-emulation/wine-vanilla/wine-vanilla-5.21.ebuild b/app-emulation/wine-vanilla/wine-vanilla-5.21.ebuild |
33 |
deleted file mode 100644 |
34 |
index 7182d108ab2..00000000000 |
35 |
--- a/app-emulation/wine-vanilla/wine-vanilla-5.21.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,538 +0,0 @@ |
38 |
-# Copyright 1999-2021 Gentoo Authors |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=6 |
42 |
- |
43 |
-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" |
44 |
-PLOCALE_BACKUP="en" |
45 |
- |
46 |
-inherit autotools eapi7-ver estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx xdg-utils |
47 |
- |
48 |
-MY_PN="${PN%%-*}" |
49 |
-MY_P="${MY_PN}-${PV}" |
50 |
- |
51 |
-if [[ ${PV} == "9999" ]] ; then |
52 |
- EGIT_REPO_URI="https://source.winehq.org/git/wine.git" |
53 |
- EGIT_BRANCH="master" |
54 |
- inherit git-r3 |
55 |
- SRC_URI="" |
56 |
-else |
57 |
- MAJOR_V=$(ver_cut 1) |
58 |
- SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz" |
59 |
- KEYWORDS="-* ~amd64 ~x86" |
60 |
-fi |
61 |
-S="${WORKDIR}/${MY_P}" |
62 |
- |
63 |
-GWP_V="20200523" |
64 |
-PATCHDIR="${WORKDIR}/gentoo-wine-patches" |
65 |
- |
66 |
-DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets" |
67 |
-HOMEPAGE="https://www.winehq.org/" |
68 |
-SRC_URI="${SRC_URI} |
69 |
- https://dev.gentoo.org/~sarnex/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz |
70 |
-" |
71 |
- |
72 |
-LICENSE="LGPL-2.1" |
73 |
-SLOT="${PV}" |
74 |
-IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +faudio +fontconfig +gecko gphoto2 gsm gssapi 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 sdl selinux +ssl test +threads +truetype udev +udisks +unwind v4l vkd3d vulkan +X +xcomposite xinerama +xml" |
75 |
-REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
76 |
- X? ( truetype ) |
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 |
-COMMON_DEPEND=" |
87 |
- X? ( |
88 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
89 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
90 |
- x11-libs/libXfixes[${MULTILIB_USEDEP}] |
91 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
92 |
- x11-libs/libXi[${MULTILIB_USEDEP}] |
93 |
- x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
94 |
- ) |
95 |
- alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
96 |
- capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
97 |
- cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
98 |
- faudio? ( app-emulation/faudio:=[${MULTILIB_USEDEP}] ) |
99 |
- fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
100 |
- gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] ) |
101 |
- gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] ) |
102 |
- gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] ) |
103 |
- gstreamer? ( |
104 |
- media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
105 |
- media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
106 |
- ) |
107 |
- jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
108 |
- kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] ) |
109 |
- lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] ) |
110 |
- ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
111 |
- mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] ) |
112 |
- ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] ) |
113 |
- netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
114 |
- nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
115 |
- odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
116 |
- openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
117 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
118 |
- opengl? ( |
119 |
- virtual/glu[${MULTILIB_USEDEP}] |
120 |
- virtual/opengl[${MULTILIB_USEDEP}] |
121 |
- ) |
122 |
- osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] ) |
123 |
- pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
124 |
- png? ( media-libs/libpng:0=[${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 |
- v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) |
134 |
- vkd3d? ( >=app-emulation/vkd3d-1.2[${MULTILIB_USEDEP}] ) |
135 |
- vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] ) |
136 |
- xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] ) |
137 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
138 |
- xml? ( |
139 |
- dev-libs/libxml2[${MULTILIB_USEDEP}] |
140 |
- dev-libs/libxslt[${MULTILIB_USEDEP}] |
141 |
- )" |
142 |
- |
143 |
-RDEPEND="${COMMON_DEPEND} |
144 |
- app-emulation/wine-desktop-common |
145 |
- >app-eselect/eselect-wine-0.3 |
146 |
- !app-emulation/wine:0 |
147 |
- dos? ( >=games-emulation/dosbox-0.74_p20160629 ) |
148 |
- gecko? ( app-emulation/wine-gecko:2.47.1[abi_x86_32?,abi_x86_64?] ) |
149 |
- mono? ( app-emulation/wine-mono:5.1.1 ) |
150 |
- perl? ( |
151 |
- dev-lang/perl |
152 |
- dev-perl/XML-Simple |
153 |
- ) |
154 |
- pulseaudio? ( |
155 |
- realtime? ( sys-auth/rtkit ) |
156 |
- ) |
157 |
- samba? ( >=net-fs/samba-3.0.25[winbind] ) |
158 |
- selinux? ( sec-policy/selinux-wine ) |
159 |
- udisks? ( sys-fs/udisks:2 )" |
160 |
- |
161 |
-# tools/make_requests requires perl |
162 |
-DEPEND="${COMMON_DEPEND} |
163 |
- sys-devel/flex |
164 |
- >=sys-kernel/linux-headers-2.6 |
165 |
- virtual/pkgconfig |
166 |
- virtual/yacc |
167 |
- X? ( x11-base/xorg-proto ) |
168 |
- prelink? ( sys-devel/prelink ) |
169 |
- xinerama? ( x11-base/xorg-proto )" |
170 |
- |
171 |
-# These use a non-standard "Wine" category, which is provided by |
172 |
-# /etc/xdg/applications-merged/wine.menu |
173 |
-QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
174 |
-usr/share/applications/wine-notepad.desktop |
175 |
-usr/share/applications/wine-uninstaller.desktop |
176 |
-usr/share/applications/wine-winecfg.desktop" |
177 |
- |
178 |
-PATCHES=( |
179 |
- "${PATCHDIR}/patches/${MY_PN}-5.0-winegcc.patch" #260726 |
180 |
- "${PATCHDIR}/patches/${MY_PN}-4.7-multilib-portage.patch" #395615 |
181 |
- "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611 |
182 |
- "${PATCHDIR}/patches/${MY_PN}-5.9-Revert-makedep-Install-also-generated-typelib-for-in.patch" |
183 |
-) |
184 |
-PATCHES_BIN=() |
185 |
- |
186 |
-# https://bugs.gentoo.org/show_bug.cgi?id=635222 |
187 |
-if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then |
188 |
- DEPEND+=" dev-util/patchbin" |
189 |
-fi |
190 |
- |
191 |
-wine_compiler_check() { |
192 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
193 |
- |
194 |
- # GCC-specific bugs |
195 |
- if tc-is-gcc; then |
196 |
- # bug #549768 |
197 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
198 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
199 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
200 |
- # Run in subshell to prevent "Aborted" message |
201 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
202 |
- if ! eend $?; then |
203 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
204 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
205 |
- eerror "or use gcc-config to select a different compiler version." |
206 |
- eerror "See https://bugs.gentoo.org/549768" |
207 |
- eerror |
208 |
- return 1 |
209 |
- fi |
210 |
- fi |
211 |
- # bug #574044 |
212 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
213 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
214 |
- # Compile in subshell to prevent "Aborted" message |
215 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
216 |
- if ! eend $?; then |
217 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
218 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
219 |
- eerror "or use gcc-config to select a different compiler version." |
220 |
- eerror "See https://bugs.gentoo.org/574044" |
221 |
- eerror |
222 |
- return 1 |
223 |
- fi |
224 |
- fi |
225 |
- fi |
226 |
- |
227 |
- # Ensure compiler support |
228 |
- if use abi_x86_64; then |
229 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
230 |
- # Compile in subshell to prevent "Aborted" message |
231 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
232 |
- if ! eend $?; then |
233 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
234 |
- eerror |
235 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
236 |
- eerror |
237 |
- return 1 |
238 |
- fi |
239 |
- fi |
240 |
-} |
241 |
- |
242 |
-wine_build_environment_check() { |
243 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
244 |
- |
245 |
- if use abi_x86_64; then |
246 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
247 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
248 |
- die |
249 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
250 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
251 |
- die |
252 |
- fi |
253 |
- fi |
254 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
255 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
256 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
257 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
258 |
- fi |
259 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
260 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
261 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
262 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
263 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
264 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
265 |
- fi |
266 |
- fi |
267 |
- |
268 |
- if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
269 |
- eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
270 |
- eerror "See https://bugs.gentoo.org/487864 for more details." |
271 |
- eerror |
272 |
- return 1 |
273 |
- fi |
274 |
-} |
275 |
- |
276 |
-wine_env_vcs_vars() { |
277 |
- local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
278 |
- local pn_live_val="${pn_live_var}" |
279 |
- eval pn_live_val='$'${pn_live_val} |
280 |
- if [[ ! -z ${EGIT_COMMIT} ]]; then |
281 |
- eerror "Commits must now be specified using the environmental variables" |
282 |
- eerror "EGIT_OVERRIDE_COMMIT_WINE" |
283 |
- eerror |
284 |
- return 1 |
285 |
- fi |
286 |
-} |
287 |
- |
288 |
-pkg_pretend() { |
289 |
- wine_build_environment_check || die |
290 |
- |
291 |
- # Verify OSS support |
292 |
- if use oss && ! use kernel_FreeBSD; then |
293 |
- if ! has_version ">=media-sound/oss-4"; then |
294 |
- eerror "You cannot build wine with USE=oss without having support from a" |
295 |
- eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)" |
296 |
- eerror |
297 |
- die |
298 |
- fi |
299 |
- fi |
300 |
-} |
301 |
- |
302 |
-pkg_setup() { |
303 |
- wine_build_environment_check || die |
304 |
- wine_env_vcs_vars || die |
305 |
- |
306 |
- WINE_VARIANT="${PN#wine}-${PV}" |
307 |
- WINE_VARIANT="${WINE_VARIANT#-}" |
308 |
- |
309 |
- MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}" |
310 |
- MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}" |
311 |
- MY_DATADIR="${MY_DATAROOTDIR}" |
312 |
- MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
313 |
- MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}" |
314 |
- MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}" |
315 |
- MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}" |
316 |
- MY_MANDIR="${MY_DATADIR}/man" |
317 |
-} |
318 |
- |
319 |
-src_unpack() { |
320 |
- if [[ ${PV} == "9999" ]] ; then |
321 |
- EGIT_CHECKOUT_DIR="${S}" git-r3_src_unpack |
322 |
- fi |
323 |
- |
324 |
- default |
325 |
- |
326 |
- l10n_find_plocales_changes "${S}/po" "" ".po" |
327 |
-} |
328 |
- |
329 |
-src_prepare() { |
330 |
- |
331 |
- eapply_bin(){ |
332 |
- local patch |
333 |
- for patch in ${PATCHES_BIN[@]}; do |
334 |
- patchbin --nogit < "${patch}" || die |
335 |
- done |
336 |
- } |
337 |
- |
338 |
- local md5="$(md5sum server/protocol.def)" |
339 |
- |
340 |
- default |
341 |
- eapply_bin |
342 |
- eautoreconf |
343 |
- |
344 |
- # Modification of the server protocol requires regenerating the server requests |
345 |
- if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
346 |
- einfo "server/protocol.def was patched; running tools/make_requests" |
347 |
- tools/make_requests || die #432348 |
348 |
- fi |
349 |
- sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
350 |
- if ! use run-exes; then |
351 |
- sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
352 |
- fi |
353 |
- |
354 |
- # Edit wine.desktop to work for specific variant |
355 |
- sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die |
356 |
- |
357 |
- # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652 |
358 |
- cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die |
359 |
- |
360 |
- l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
361 |
- |
362 |
- # Fix manpage generation for locales #469418 and abi_x86_64 #617864 |
363 |
- |
364 |
- # Duplicate manpages input files for wine64 |
365 |
- local f |
366 |
- for f in loader/*.man.in; do |
367 |
- cp ${f} ${f/wine/wine64} || die |
368 |
- done |
369 |
- # Add wine64 manpages to Makefile |
370 |
- if use abi_x86_64; then |
371 |
- sed -i "/wine.man.in/i \ |
372 |
- \\\twine64.man.in \\\\" loader/Makefile.in || die |
373 |
- sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\ |
374 |
-\164\2/' loader/Makefile.in || die |
375 |
- fi |
376 |
- |
377 |
- rm_man_file(){ |
378 |
- local file="${1}" |
379 |
- loc=${2} |
380 |
- sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die |
381 |
- } |
382 |
- |
383 |
- while read f; do |
384 |
- l10n_for_each_disabled_locale_do rm_man_file "${f}" |
385 |
- done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print) |
386 |
-} |
387 |
- |
388 |
-src_configure() { |
389 |
- wine_compiler_check || die |
390 |
- |
391 |
- export LDCONFIG=/bin/true |
392 |
- use custom-cflags || strip-flags |
393 |
- |
394 |
- multilib-minimal_src_configure |
395 |
-} |
396 |
- |
397 |
-multilib_src_configure() { |
398 |
- local myconf=( |
399 |
- --prefix="${MY_PREFIX}" |
400 |
- --datarootdir="${MY_DATAROOTDIR}" |
401 |
- --datadir="${MY_DATADIR}" |
402 |
- --docdir="${MY_DOCDIR}" |
403 |
- --includedir="${MY_INCLUDEDIR}" |
404 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}" |
405 |
- --libexecdir="${MY_LIBEXECDIR}" |
406 |
- --localstatedir="${MY_LOCALSTATEDIR}" |
407 |
- --mandir="${MY_MANDIR}" |
408 |
- --sysconfdir="${EPREFIX}/etc/wine" |
409 |
- $(use_with alsa) |
410 |
- $(use_with capi) |
411 |
- $(use_with lcms cms) |
412 |
- $(use_with cups) |
413 |
- $(use_with ncurses curses) |
414 |
- $(use_with udisks dbus) |
415 |
- $(use_with faudio) |
416 |
- $(use_with fontconfig) |
417 |
- $(use_with ssl gnutls) |
418 |
- $(use_enable gecko mshtml) |
419 |
- $(use_with gphoto2 gphoto) |
420 |
- $(use_with gsm) |
421 |
- $(use_with gssapi) |
422 |
- $(use_with gstreamer) |
423 |
- --without-hal |
424 |
- $(use_with jpeg) |
425 |
- $(use_with kerberos krb5) |
426 |
- $(use_with ldap) |
427 |
- --without-mingw # linux LDFLAGS leak in mingw32: bug #685172 |
428 |
- $(use_enable mono mscoree) |
429 |
- $(use_with mp3 mpg123) |
430 |
- $(use_with netapi) |
431 |
- $(use_with nls gettext) |
432 |
- $(use_with openal) |
433 |
- $(use_with opencl) |
434 |
- $(use_with opengl) |
435 |
- $(use_with osmesa) |
436 |
- $(use_with oss) |
437 |
- $(use_with pcap) |
438 |
- $(use_with png) |
439 |
- $(use_with pulseaudio pulse) |
440 |
- $(use_with threads pthread) |
441 |
- $(use_with scanner sane) |
442 |
- $(use_with sdl) |
443 |
- $(use_enable test tests) |
444 |
- $(use_with truetype freetype) |
445 |
- $(use_with udev) |
446 |
- $(use_with unwind) |
447 |
- $(use_with v4l v4l2) |
448 |
- $(use_with vkd3d) |
449 |
- $(use_with vulkan) |
450 |
- $(use_with X x) |
451 |
- $(use_with X xfixes) |
452 |
- $(use_with xcomposite) |
453 |
- $(use_with xinerama) |
454 |
- $(use_with xml) |
455 |
- $(use_with xml xslt) |
456 |
- ) |
457 |
- |
458 |
- local PKG_CONFIG |
459 |
- # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
460 |
- tc-export PKG_CONFIG |
461 |
- |
462 |
- if use amd64; then |
463 |
- if [[ ${ABI} == amd64 ]]; then |
464 |
- myconf+=( --enable-win64 ) |
465 |
- else |
466 |
- myconf+=( --disable-win64 ) |
467 |
- fi |
468 |
- |
469 |
- # Note: using --with-wine64 results in problems with multilib.eclass |
470 |
- # CC/LD hackery. We're using separate tools instead. |
471 |
- fi |
472 |
- |
473 |
- ECONF_SOURCE=${S} \ |
474 |
- econf "${myconf[@]}" |
475 |
- emake depend |
476 |
-} |
477 |
- |
478 |
-multilib_src_test() { |
479 |
- # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
480 |
- if [[ ${ABI} == x86 ]]; then |
481 |
- if [[ $(id -u) == 0 ]]; then |
482 |
- ewarn "Skipping tests since they cannot be run under the root user." |
483 |
- ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" |
484 |
- return |
485 |
- fi |
486 |
- |
487 |
- WINEPREFIX="${T}/.wine-${ABI}" \ |
488 |
- Xemake test |
489 |
- fi |
490 |
-} |
491 |
- |
492 |
-multilib_src_install_all() { |
493 |
- local DOCS=( ANNOUNCE AUTHORS README ) |
494 |
- add_locale_docs() { |
495 |
- local locale_doc="documentation/README.$1" |
496 |
- [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
497 |
- } |
498 |
- l10n_for_each_locale_do add_locale_docs |
499 |
- |
500 |
- einstalldocs |
501 |
- prune_libtool_files --all |
502 |
- |
503 |
- if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
504 |
- rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \ |
505 |
- "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die |
506 |
- fi |
507 |
- |
508 |
- # Remove wineconsole if neither backend is installed #551124 |
509 |
- if ! use X && ! use ncurses; then |
510 |
- rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die |
511 |
- rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die |
512 |
- rm_wineconsole() { |
513 |
- rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die |
514 |
- } |
515 |
- multilib_foreach_abi rm_wineconsole |
516 |
- fi |
517 |
- |
518 |
- use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 |
519 |
- use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} |
520 |
- |
521 |
- # Avoid double prefix from dosym and make_wrapper |
522 |
- MY_PREFIX=${MY_PREFIX#${EPREFIX}} |
523 |
- |
524 |
- if use abi_x86_64 && ! use abi_x86_32; then |
525 |
- dosym wine64 "${MY_PREFIX}"/bin/wine # 404331 |
526 |
- dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader |
527 |
- fi |
528 |
- |
529 |
- # Failglob for binloops, shouldn't be necessary, but including to stay safe |
530 |
- eshopts_push -s failglob #615218 |
531 |
- # Make wrappers for binaries for handling multiple variants |
532 |
- # Note: wrappers instead of symlinks because some are shell which use basename |
533 |
- local b |
534 |
- for b in "${ED%/}${MY_PREFIX}"/bin/*; do |
535 |
- make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}" |
536 |
- done |
537 |
- eshopts_pop |
538 |
-} |
539 |
- |
540 |
-pkg_postinst() { |
541 |
- eselect wine register ${P} |
542 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
543 |
- eselect wine register --vanilla ${P} || die |
544 |
- fi |
545 |
- |
546 |
- eselect wine update --all --if-unset || die |
547 |
- |
548 |
- xdg_desktop_database_update |
549 |
- |
550 |
- if ! use gecko; then |
551 |
- ewarn "Without Wine Gecko, wine prefixes will not have a default" |
552 |
- ewarn "implementation of iexplore. Many older windows applications" |
553 |
- ewarn "rely upon the existence of an iexplore implementation, so" |
554 |
- ewarn "you will likely need to install an external one, like via winetricks" |
555 |
- fi |
556 |
- if ! use mono; then |
557 |
- ewarn "Without Wine Mono, wine prefixes will not have a default" |
558 |
- ewarn "implementation of .NET. Many windows applications rely upon" |
559 |
- ewarn "the existence of a .NET implementation, so you will likely need" |
560 |
- ewarn "to install an external one, like via winetricks" |
561 |
- fi |
562 |
-} |
563 |
- |
564 |
-pkg_prerm() { |
565 |
- eselect wine deregister ${P} |
566 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
567 |
- eselect wine deregister --vanilla ${P} || die |
568 |
- fi |
569 |
- |
570 |
- eselect wine update --all --if-unset || die |
571 |
-} |
572 |
- |
573 |
-pkg_postrm() { |
574 |
- xdg_desktop_database_update |
575 |
-} |
576 |
|
577 |
diff --git a/app-emulation/wine-vanilla/wine-vanilla-5.22-r2.ebuild b/app-emulation/wine-vanilla/wine-vanilla-5.22-r2.ebuild |
578 |
deleted file mode 100644 |
579 |
index d96df570367..00000000000 |
580 |
--- a/app-emulation/wine-vanilla/wine-vanilla-5.22-r2.ebuild |
581 |
+++ /dev/null |
582 |
@@ -1,576 +0,0 @@ |
583 |
-# Copyright 1999-2021 Gentoo Authors |
584 |
-# Distributed under the terms of the GNU General Public License v2 |
585 |
- |
586 |
-EAPI=6 |
587 |
- |
588 |
-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" |
589 |
-PLOCALE_BACKUP="en" |
590 |
- |
591 |
-inherit autotools eapi7-ver estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx xdg-utils |
592 |
- |
593 |
-MY_PN="${PN%%-*}" |
594 |
-MY_P="${MY_PN}-${PV}" |
595 |
- |
596 |
-if [[ ${PV} == "9999" ]] ; then |
597 |
- EGIT_REPO_URI="https://source.winehq.org/git/wine.git" |
598 |
- EGIT_BRANCH="master" |
599 |
- inherit git-r3 |
600 |
- SRC_URI="" |
601 |
-else |
602 |
- MAJOR_V=$(ver_cut 1) |
603 |
- SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz" |
604 |
- KEYWORDS="-* ~amd64 ~x86" |
605 |
-fi |
606 |
-S="${WORKDIR}/${MY_P}" |
607 |
- |
608 |
-GWP_V="20200523" |
609 |
-PATCHDIR="${WORKDIR}/gentoo-wine-patches" |
610 |
- |
611 |
-DESCRIPTION="Free implementation of Windows(tm) on Unix, without external patchsets" |
612 |
-HOMEPAGE="https://www.winehq.org/" |
613 |
-SRC_URI="${SRC_URI} |
614 |
- https://dev.gentoo.org/~sarnex/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz |
615 |
-" |
616 |
- |
617 |
-LICENSE="LGPL-2.1" |
618 |
-SLOT="${PV}" |
619 |
-IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +faudio +fontconfig +gecko gphoto2 gsm gssapi gstreamer +jpeg kerberos kernel_FreeBSD +lcms ldap mingw +mono mp3 netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner sdl selinux +ssl test +threads +truetype udev +udisks +unwind v4l vkd3d vulkan +X +xcomposite xinerama +xml" |
620 |
-REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
621 |
- X? ( truetype ) |
622 |
- elibc_glibc? ( threads ) |
623 |
- osmesa? ( opengl ) |
624 |
- test? ( abi_x86_32 ) |
625 |
- vkd3d? ( vulkan )" # osmesa-opengl #286560 # X-truetype #551124 |
626 |
- |
627 |
-# FIXME: the test suite is unsuitable for us; many tests require net access |
628 |
-# or fail due to Xvfb's opengl limitations. |
629 |
-RESTRICT="test" |
630 |
- |
631 |
-COMMON_DEPEND=" |
632 |
- X? ( |
633 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
634 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
635 |
- x11-libs/libXfixes[${MULTILIB_USEDEP}] |
636 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
637 |
- x11-libs/libXi[${MULTILIB_USEDEP}] |
638 |
- x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
639 |
- ) |
640 |
- alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
641 |
- capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
642 |
- cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
643 |
- faudio? ( app-emulation/faudio:=[${MULTILIB_USEDEP}] ) |
644 |
- fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
645 |
- gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] ) |
646 |
- gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] ) |
647 |
- gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] ) |
648 |
- gstreamer? ( |
649 |
- media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
650 |
- media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
651 |
- ) |
652 |
- jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
653 |
- kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] ) |
654 |
- lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] ) |
655 |
- ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
656 |
- mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] ) |
657 |
- netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
658 |
- nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
659 |
- odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
660 |
- openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
661 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
662 |
- opengl? ( |
663 |
- virtual/glu[${MULTILIB_USEDEP}] |
664 |
- virtual/opengl[${MULTILIB_USEDEP}] |
665 |
- ) |
666 |
- osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] ) |
667 |
- pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
668 |
- png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] ) |
669 |
- pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
670 |
- scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] ) |
671 |
- sdl? ( media-libs/libsdl2:=[haptic,joystick,${MULTILIB_USEDEP}] ) |
672 |
- ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
673 |
- truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] ) |
674 |
- udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) |
675 |
- udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
676 |
- unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] ) |
677 |
- v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) |
678 |
- vkd3d? ( >=app-emulation/vkd3d-1.2[${MULTILIB_USEDEP}] ) |
679 |
- vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] ) |
680 |
- xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] ) |
681 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
682 |
- xml? ( |
683 |
- dev-libs/libxml2[${MULTILIB_USEDEP}] |
684 |
- dev-libs/libxslt[${MULTILIB_USEDEP}] |
685 |
- )" |
686 |
- |
687 |
-RDEPEND="${COMMON_DEPEND} |
688 |
- app-emulation/wine-desktop-common |
689 |
- >app-eselect/eselect-wine-0.3 |
690 |
- !app-emulation/wine:0 |
691 |
- dos? ( >=games-emulation/dosbox-0.74_p20160629 ) |
692 |
- gecko? ( app-emulation/wine-gecko:2.47.1[abi_x86_32?,abi_x86_64?] ) |
693 |
- mono? ( app-emulation/wine-mono:5.1.1 ) |
694 |
- perl? ( |
695 |
- dev-lang/perl |
696 |
- dev-perl/XML-Simple |
697 |
- ) |
698 |
- pulseaudio? ( |
699 |
- realtime? ( sys-auth/rtkit ) |
700 |
- ) |
701 |
- samba? ( >=net-fs/samba-3.0.25[winbind] ) |
702 |
- selinux? ( sec-policy/selinux-wine ) |
703 |
- udisks? ( sys-fs/udisks:2 )" |
704 |
- |
705 |
-# tools/make_requests requires perl |
706 |
-DEPEND="${COMMON_DEPEND} |
707 |
- sys-devel/flex |
708 |
- >=sys-kernel/linux-headers-2.6 |
709 |
- virtual/pkgconfig |
710 |
- virtual/yacc |
711 |
- X? ( x11-base/xorg-proto ) |
712 |
- prelink? ( sys-devel/prelink ) |
713 |
- xinerama? ( x11-base/xorg-proto )" |
714 |
- |
715 |
-# These use a non-standard "Wine" category, which is provided by |
716 |
-# /etc/xdg/applications-merged/wine.menu |
717 |
-QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
718 |
-usr/share/applications/wine-notepad.desktop |
719 |
-usr/share/applications/wine-uninstaller.desktop |
720 |
-usr/share/applications/wine-winecfg.desktop" |
721 |
- |
722 |
-PATCHES=( |
723 |
- "${PATCHDIR}/patches/${MY_PN}-5.0-winegcc.patch" #260726 |
724 |
- "${PATCHDIR}/patches/${MY_PN}-4.7-multilib-portage.patch" #395615 |
725 |
- "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611 |
726 |
- "${PATCHDIR}/patches/${MY_PN}-5.9-Revert-makedep-Install-also-generated-typelib-for-in.patch" |
727 |
-) |
728 |
-PATCHES_BIN=() |
729 |
- |
730 |
-# https://bugs.gentoo.org/show_bug.cgi?id=635222 |
731 |
-if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then |
732 |
- DEPEND+=" dev-util/patchbin" |
733 |
-fi |
734 |
- |
735 |
-wine_compiler_check() { |
736 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
737 |
- |
738 |
- # GCC-specific bugs |
739 |
- if tc-is-gcc; then |
740 |
- # bug #549768 |
741 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
742 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
743 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
744 |
- # Run in subshell to prevent "Aborted" message |
745 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
746 |
- if ! eend $?; then |
747 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
748 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
749 |
- eerror "or use gcc-config to select a different compiler version." |
750 |
- eerror "See https://bugs.gentoo.org/549768" |
751 |
- eerror |
752 |
- return 1 |
753 |
- fi |
754 |
- fi |
755 |
- # bug #574044 |
756 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
757 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
758 |
- # Compile in subshell to prevent "Aborted" message |
759 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
760 |
- if ! eend $?; then |
761 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
762 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
763 |
- eerror "or use gcc-config to select a different compiler version." |
764 |
- eerror "See https://bugs.gentoo.org/574044" |
765 |
- eerror |
766 |
- return 1 |
767 |
- fi |
768 |
- fi |
769 |
- fi |
770 |
- |
771 |
- # Ensure compiler support |
772 |
- if use abi_x86_64; then |
773 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
774 |
- # Compile in subshell to prevent "Aborted" message |
775 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
776 |
- if ! eend $?; then |
777 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
778 |
- eerror |
779 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
780 |
- eerror |
781 |
- return 1 |
782 |
- fi |
783 |
- fi |
784 |
-} |
785 |
- |
786 |
-wine_build_environment_check() { |
787 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
788 |
- |
789 |
- if use abi_x86_64; then |
790 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
791 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
792 |
- die |
793 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
794 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
795 |
- die |
796 |
- fi |
797 |
- fi |
798 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
799 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
800 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
801 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
802 |
- fi |
803 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
804 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
805 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
806 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
807 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
808 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
809 |
- fi |
810 |
- fi |
811 |
- |
812 |
- if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
813 |
- eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
814 |
- eerror "See https://bugs.gentoo.org/487864 for more details." |
815 |
- eerror |
816 |
- return 1 |
817 |
- fi |
818 |
-} |
819 |
- |
820 |
-wine_env_vcs_vars() { |
821 |
- local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
822 |
- local pn_live_val="${pn_live_var}" |
823 |
- eval pn_live_val='$'${pn_live_val} |
824 |
- if [[ ! -z ${EGIT_COMMIT} ]]; then |
825 |
- eerror "Commits must now be specified using the environmental variables" |
826 |
- eerror "EGIT_OVERRIDE_COMMIT_WINE" |
827 |
- eerror |
828 |
- return 1 |
829 |
- fi |
830 |
-} |
831 |
- |
832 |
-pkg_pretend() { |
833 |
- wine_build_environment_check || die |
834 |
- |
835 |
- # Verify OSS support |
836 |
- if use oss && ! use kernel_FreeBSD; then |
837 |
- if ! has_version ">=media-sound/oss-4"; then |
838 |
- eerror "You cannot build wine with USE=oss without having support from a" |
839 |
- eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)" |
840 |
- eerror |
841 |
- die |
842 |
- fi |
843 |
- fi |
844 |
- |
845 |
- if use mingw && use abi_x86_32 && ! has_version "cross-i686-w64-mingw32/gcc"; then |
846 |
- eerror |
847 |
- eerror "USE=\"mingw\" is currently experimental, and requires the" |
848 |
- eerror "'cross-i686-w64-mingw32' compiler and its runtime for 32-bit builds." |
849 |
- eerror |
850 |
- eerror "These can be installed by using 'sys-devel/crossdev':" |
851 |
- eerror |
852 |
- eerror "crossdev --target i686-w64-mingw32" |
853 |
- eerror |
854 |
- eerror "For more information on setting up MinGW, see: https://wiki.gentoo.org/wiki/Mingw" |
855 |
- eerror |
856 |
- die "MinGW build was enabled, but no compiler to support it was found." |
857 |
- fi |
858 |
- |
859 |
- if use mingw && use abi_x86_64 && ! has_version "cross-x86_64-w64-mingw32/gcc"; then |
860 |
- eerror |
861 |
- eerror "USE=\"mingw\" is currently experimental, and requires the" |
862 |
- eerror "'cross-x86_64-w64-mingw32' compiler and its runtime for 64-bit builds." |
863 |
- eerror |
864 |
- eerror "These can be installed by using 'sys-devel/crossdev':" |
865 |
- eerror |
866 |
- eerror "crossdev --target x86_64-w64-mingw32" |
867 |
- eerror |
868 |
- eerror "For more information on setting up MinGW, see: https://wiki.gentoo.org/wiki/Mingw" |
869 |
- eerror |
870 |
- die "MinGW build was enabled, but no compiler to support it was found." |
871 |
- fi |
872 |
-} |
873 |
- |
874 |
-pkg_setup() { |
875 |
- wine_build_environment_check || die |
876 |
- wine_env_vcs_vars || die |
877 |
- |
878 |
- WINE_VARIANT="${PN#wine}-${PV}" |
879 |
- WINE_VARIANT="${WINE_VARIANT#-}" |
880 |
- |
881 |
- MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}" |
882 |
- MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}" |
883 |
- MY_DATADIR="${MY_DATAROOTDIR}" |
884 |
- MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
885 |
- MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}" |
886 |
- MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}" |
887 |
- MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}" |
888 |
- MY_MANDIR="${MY_DATADIR}/man" |
889 |
-} |
890 |
- |
891 |
-src_unpack() { |
892 |
- if [[ ${PV} == "9999" ]] ; then |
893 |
- EGIT_CHECKOUT_DIR="${S}" git-r3_src_unpack |
894 |
- fi |
895 |
- |
896 |
- default |
897 |
- |
898 |
- l10n_find_plocales_changes "${S}/po" "" ".po" |
899 |
-} |
900 |
- |
901 |
-src_prepare() { |
902 |
- |
903 |
- eapply_bin(){ |
904 |
- local patch |
905 |
- for patch in ${PATCHES_BIN[@]}; do |
906 |
- patchbin --nogit < "${patch}" || die |
907 |
- done |
908 |
- } |
909 |
- |
910 |
- local md5="$(md5sum server/protocol.def)" |
911 |
- |
912 |
- default |
913 |
- eapply_bin |
914 |
- eautoreconf |
915 |
- |
916 |
- # Modification of the server protocol requires regenerating the server requests |
917 |
- if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
918 |
- einfo "server/protocol.def was patched; running tools/make_requests" |
919 |
- tools/make_requests || die #432348 |
920 |
- fi |
921 |
- sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
922 |
- if ! use run-exes; then |
923 |
- sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
924 |
- fi |
925 |
- |
926 |
- # Edit wine.desktop to work for specific variant |
927 |
- sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die |
928 |
- |
929 |
- # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652 |
930 |
- cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die |
931 |
- |
932 |
- l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
933 |
- |
934 |
- # Fix manpage generation for locales #469418 and abi_x86_64 #617864 |
935 |
- |
936 |
- # Duplicate manpages input files for wine64 |
937 |
- local f |
938 |
- for f in loader/*.man.in; do |
939 |
- cp ${f} ${f/wine/wine64} || die |
940 |
- done |
941 |
- # Add wine64 manpages to Makefile |
942 |
- if use abi_x86_64; then |
943 |
- sed -i "/wine.man.in/i \ |
944 |
- \\\twine64.man.in \\\\" loader/Makefile.in || die |
945 |
- sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\ |
946 |
-\164\2/' loader/Makefile.in || die |
947 |
- fi |
948 |
- |
949 |
- rm_man_file(){ |
950 |
- local file="${1}" |
951 |
- loc=${2} |
952 |
- sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die |
953 |
- } |
954 |
- |
955 |
- while read f; do |
956 |
- l10n_for_each_disabled_locale_do rm_man_file "${f}" |
957 |
- done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print) |
958 |
-} |
959 |
- |
960 |
-src_configure() { |
961 |
- wine_compiler_check || die |
962 |
- |
963 |
- export LDCONFIG=/bin/true |
964 |
- use custom-cflags || strip-flags |
965 |
- if use mingw; then |
966 |
- export CROSSCFLAGS="${CFLAGS}" |
967 |
- fi |
968 |
- |
969 |
- multilib-minimal_src_configure |
970 |
-} |
971 |
- |
972 |
-multilib_src_configure() { |
973 |
- local myconf=( |
974 |
- --prefix="${MY_PREFIX}" |
975 |
- --datarootdir="${MY_DATAROOTDIR}" |
976 |
- --datadir="${MY_DATADIR}" |
977 |
- --docdir="${MY_DOCDIR}" |
978 |
- --includedir="${MY_INCLUDEDIR}" |
979 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}" |
980 |
- --libexecdir="${MY_LIBEXECDIR}" |
981 |
- --localstatedir="${MY_LOCALSTATEDIR}" |
982 |
- --mandir="${MY_MANDIR}" |
983 |
- --sysconfdir="${EPREFIX}/etc/wine" |
984 |
- $(use_with alsa) |
985 |
- $(use_with capi) |
986 |
- $(use_with lcms cms) |
987 |
- $(use_with cups) |
988 |
- $(use_with udisks dbus) |
989 |
- $(use_with faudio) |
990 |
- $(use_with fontconfig) |
991 |
- $(use_with ssl gnutls) |
992 |
- $(use_enable gecko mshtml) |
993 |
- $(use_with gphoto2 gphoto) |
994 |
- $(use_with gsm) |
995 |
- $(use_with gssapi) |
996 |
- $(use_with gstreamer) |
997 |
- --without-hal |
998 |
- $(use_with jpeg) |
999 |
- $(use_with kerberos krb5) |
1000 |
- $(use_with ldap) |
1001 |
- # TODO: Will bug 685172 still need special handling? |
1002 |
- $(use_with mingw) |
1003 |
- $(use_enable mono mscoree) |
1004 |
- $(use_with mp3 mpg123) |
1005 |
- $(use_with netapi) |
1006 |
- $(use_with nls gettext) |
1007 |
- $(use_with openal) |
1008 |
- $(use_with opencl) |
1009 |
- $(use_with opengl) |
1010 |
- $(use_with osmesa) |
1011 |
- $(use_with oss) |
1012 |
- $(use_with pcap) |
1013 |
- $(use_with png) |
1014 |
- $(use_with pulseaudio pulse) |
1015 |
- $(use_with threads pthread) |
1016 |
- $(use_with scanner sane) |
1017 |
- $(use_with sdl) |
1018 |
- $(use_enable test tests) |
1019 |
- $(use_with truetype freetype) |
1020 |
- $(use_with udev) |
1021 |
- $(use_with unwind) |
1022 |
- $(use_with v4l v4l2) |
1023 |
- $(use_with vkd3d) |
1024 |
- $(use_with vulkan) |
1025 |
- $(use_with X x) |
1026 |
- $(use_with X xfixes) |
1027 |
- $(use_with xcomposite) |
1028 |
- $(use_with xinerama) |
1029 |
- $(use_with xml) |
1030 |
- $(use_with xml xslt) |
1031 |
- ) |
1032 |
- |
1033 |
- local PKG_CONFIG |
1034 |
- # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
1035 |
- tc-export PKG_CONFIG |
1036 |
- |
1037 |
- if use amd64; then |
1038 |
- if [[ ${ABI} == amd64 ]]; then |
1039 |
- myconf+=( --enable-win64 ) |
1040 |
- else |
1041 |
- myconf+=( --disable-win64 ) |
1042 |
- fi |
1043 |
- |
1044 |
- # Note: using --with-wine64 results in problems with multilib.eclass |
1045 |
- # CC/LD hackery. We're using separate tools instead. |
1046 |
- fi |
1047 |
- |
1048 |
- ECONF_SOURCE=${S} \ |
1049 |
- econf "${myconf[@]}" |
1050 |
- emake depend |
1051 |
-} |
1052 |
- |
1053 |
-multilib_src_test() { |
1054 |
- # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
1055 |
- if [[ ${ABI} == x86 ]]; then |
1056 |
- if [[ $(id -u) == 0 ]]; then |
1057 |
- ewarn "Skipping tests since they cannot be run under the root user." |
1058 |
- ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" |
1059 |
- return |
1060 |
- fi |
1061 |
- |
1062 |
- WINEPREFIX="${T}/.wine-${ABI}" \ |
1063 |
- Xemake test |
1064 |
- fi |
1065 |
-} |
1066 |
- |
1067 |
-multilib_src_install_all() { |
1068 |
- local DOCS=( ANNOUNCE AUTHORS README ) |
1069 |
- add_locale_docs() { |
1070 |
- local locale_doc="documentation/README.$1" |
1071 |
- [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
1072 |
- } |
1073 |
- l10n_for_each_locale_do add_locale_docs |
1074 |
- |
1075 |
- einstalldocs |
1076 |
- prune_libtool_files --all |
1077 |
- |
1078 |
- if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
1079 |
- rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \ |
1080 |
- "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die |
1081 |
- fi |
1082 |
- |
1083 |
- # Remove wineconsole if neither backend is installed #551124 |
1084 |
- if ! use X; then |
1085 |
- rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die |
1086 |
- rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die |
1087 |
- |
1088 |
- if ! use mingw; then |
1089 |
- rm_wineconsole() { |
1090 |
- rm "${D%/}/usr/$(get_libdir)/wine-${WINE_VARIANT}"/wine/{,fakedlls/}wineconsole.exe* || die |
1091 |
- } |
1092 |
- else |
1093 |
- rm_wineconsole() { |
1094 |
- rm "${D%/}/usr/$(get_libdir)/wine-${WINE_VARIANT}"/wine/wineconsole.exe* || die |
1095 |
- } |
1096 |
- fi |
1097 |
- |
1098 |
- multilib_foreach_abi rm_wineconsole |
1099 |
- fi |
1100 |
- |
1101 |
- use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 |
1102 |
- use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} |
1103 |
- |
1104 |
- # Avoid double prefix from dosym and make_wrapper |
1105 |
- MY_PREFIX=${MY_PREFIX#${EPREFIX}} |
1106 |
- |
1107 |
- if use abi_x86_64 && ! use abi_x86_32; then |
1108 |
- dosym wine64 "${MY_PREFIX}"/bin/wine # 404331 |
1109 |
- dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader |
1110 |
- fi |
1111 |
- |
1112 |
- # Failglob for binloops, shouldn't be necessary, but including to stay safe |
1113 |
- eshopts_push -s failglob #615218 |
1114 |
- # Make wrappers for binaries for handling multiple variants |
1115 |
- # Note: wrappers instead of symlinks because some are shell which use basename |
1116 |
- local b |
1117 |
- for b in "${ED%/}${MY_PREFIX}"/bin/*; do |
1118 |
- make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}" |
1119 |
- done |
1120 |
- eshopts_pop |
1121 |
-} |
1122 |
- |
1123 |
-pkg_postinst() { |
1124 |
- eselect wine register ${P} |
1125 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
1126 |
- eselect wine register --vanilla ${P} || die |
1127 |
- fi |
1128 |
- |
1129 |
- eselect wine update --all --if-unset || die |
1130 |
- |
1131 |
- xdg_desktop_database_update |
1132 |
- |
1133 |
- if ! use gecko; then |
1134 |
- ewarn "Without Wine Gecko, wine prefixes will not have a default" |
1135 |
- ewarn "implementation of iexplore. Many older windows applications" |
1136 |
- ewarn "rely upon the existence of an iexplore implementation, so" |
1137 |
- ewarn "you will likely need to install an external one, like via winetricks" |
1138 |
- fi |
1139 |
- if ! use mono; then |
1140 |
- ewarn "Without Wine Mono, wine prefixes will not have a default" |
1141 |
- ewarn "implementation of .NET. Many windows applications rely upon" |
1142 |
- ewarn "the existence of a .NET implementation, so you will likely need" |
1143 |
- ewarn "to install an external one, like via winetricks" |
1144 |
- fi |
1145 |
-} |
1146 |
- |
1147 |
-pkg_prerm() { |
1148 |
- eselect wine deregister ${P} |
1149 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
1150 |
- eselect wine deregister --vanilla ${P} || die |
1151 |
- fi |
1152 |
- |
1153 |
- eselect wine update --all --if-unset || die |
1154 |
-} |
1155 |
- |
1156 |
-pkg_postrm() { |
1157 |
- xdg_desktop_database_update |
1158 |
-} |