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