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