1 |
commit: a436b6257d95bbda743dfb4d718ef056f6374595 |
2 |
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 15:11:02 2022 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 15:14:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a436b625 |
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 |
app-emulation/wine-staging/wine-staging-7.8.ebuild | 542 --------------------- |
15 |
2 files changed, 544 deletions(-) |
16 |
|
17 |
diff --git a/app-emulation/wine-staging/Manifest b/app-emulation/wine-staging/Manifest |
18 |
index 9bd27a08253e..5e63209ba3c9 100644 |
19 |
--- a/app-emulation/wine-staging/Manifest |
20 |
+++ b/app-emulation/wine-staging/Manifest |
21 |
@@ -2,10 +2,8 @@ DIST gentoo-wine-patches-20211122.tar.xz 59796 BLAKE2B 21460e6adf4934a52f8841f76 |
22 |
DIST wine-7.10.tar.xz 27915328 BLAKE2B fc778285cce52317d77461f0bce11d6e3214a536ecd42364d6cd31f609a23116fa582a7cb85873a99c61eb5cf5e1e3036e4d4d1887b87f75f501109ac3eb4625 SHA512 be460be6c3f6f54c20220287a7c4c9d41d27bd14fabb97b1f9824a4be361e38b2e2e51a621e0332d6c48934b1af425efaec92132f73e6d1270337ffbfcac2576 |
23 |
DIST wine-7.11.tar.xz 27975308 BLAKE2B 7031c950de4ee6d00c1006841a2d6fe55cebce644d354eb05cb963207b491a717c6ba7ce8f19c337167ec8bd6c1480427112a32b4363db745e99461be5917c77 SHA512 aff6a5996ba7336d97c59a1402688b109e6cca123c60fa6f03813d81ad6478f4ed4a62fb7813dc6952cca7ec1250182730873f3ac17f0855bbf000bf3c1d86fe |
24 |
DIST wine-7.12.tar.xz 28221024 BLAKE2B 551f37360a6dd2c535b5b1a9896cd9c9c091d56c4d2f3d2988092d48d54aa447fc0dad18034bad7b7beaa9c6587071e8d32bd08092a9ba93acb39dac9ddfc391 SHA512 4746fb1c3d0ec7f20e22d821f8e88e5415b85cb60f53e9ad61b89e8321b6a6b2999eb2b70c7ac46477f633bccb6c2aba49ce2655c380cb85cd5c71dbe4af50b4 |
25 |
-DIST wine-7.8.tar.xz 27728116 BLAKE2B 3c878de8377906a687026bf1d5f9167bdce6b13a3d750d2a92fdcf70aed8e3da01560d26e4b075b6564b741996fc2168bb98c409f95618ab9fbb8e8b583a5384 SHA512 5e63edabc7dcdce62a1ce683c9ef387a2d801af3a0f99c32daacfea566a3813086f4f5977279c7b7526574f5cd95d052805bd5c145b82221d321d8aa638bfe1d |
26 |
DIST wine-7.9.tar.xz 27783272 BLAKE2B 3265402b90913670b6a81a1f0d91d84d536734883749d31af572953e3b244ba721c15bb851e0e0e868c402d9add2e2007e49225bdaaa02a8dedee575d4e69602 SHA512 47ecbb8bc31a06d0f40a63469ffe3df4a1e05c9476a8926ec7f20c2230de8afecb5e0df9f3c5dd238ce3d0323d7cf9c9f48c41ef6ca149822458a4e605a2e029 |
27 |
DIST wine-staging-7.10.tar.gz 9646352 BLAKE2B acb68df0b79c5912ecfc400ac7b40fd0205908ce7edb06f69fa4c8e7a3c94d33551b98c7ae2aadded65c012aaf1b7990ac7aeefb37e7c07779aaeceb7d74397e SHA512 7c2aa5ec78f12ef3415f7e3615775f8a0a727f6e5bb0173f5746934166dbec5d4edfaa572d3fe26ef62fe933772346495a6c618d58ee0a6374028a158beb05c8 |
28 |
DIST wine-staging-7.11.tar.gz 9643832 BLAKE2B d215353a0163011b964d24d6e0cb3011286ce8d9ad6b42ad2bd389cb65c214db01a67a6f37db3eedd36d34995d7423112bbddbd06abbcbc5bb5f0d565d06a157 SHA512 5985f7536f7d0a8bedcfcdf095861a06589ea6ad9896c87043ca88f9ef3c4bc9854931b51b64471e361378f332cea70adc58ef9303e9e5d1a6dcc9789761c187 |
29 |
DIST wine-staging-7.12.tar.gz 9644343 BLAKE2B 760b34abf245b8d2e5baed13db57a841bba73f9dd6652f958428fec3617000cdc00d6f3ac305f4b580cf462938a56ef9a6f0c6931306c25ce82b7fe4da314d9f SHA512 0cf7554011835052b75a836fca89c6cf9b5fa1653c96a82b0dcd3cf40147602eebaf81aa6b94348432371bef9550c8dc21c9cf7d78b49a422bd113e8a6a8e3b0 |
30 |
-DIST wine-staging-7.8.tar.gz 9658435 BLAKE2B 0c089cd1498a5d8d90bbcabf8c3b55552176bc1f0c4717c6f7d1f6dcadfdaa0d52b0fdfd3c150de0da3626085e05fdb49343739950558bf47eff96f77f6a1464 SHA512 86f514a60d6f7ed612189a6834a18265a7551f3358903a3d67413d81d134c98f2aa7e4f79682be1a75d7bec194c4ca0bbf5d10c6e10277d451cd4aa332cc20ed |
31 |
DIST wine-staging-7.9.tar.gz 9657482 BLAKE2B 2b7f30fde6a73d1012f31e83ca9fd7bd20d87a0edcf1f175115139e47d8aecdfeea5e432cd8cc4253773755856fff00e36aab25098a9a59ed44a2f0c572e7ba5 SHA512 6c856eeaa18bad56b5302939968995221277f80eb380510762535063929b7d95e58df11ad01459ab4e6a7f97efada8c09034457a58ad637620d3a296c93ace6d |
32 |
|
33 |
diff --git a/app-emulation/wine-staging/wine-staging-7.8.ebuild b/app-emulation/wine-staging/wine-staging-7.8.ebuild |
34 |
deleted file mode 100644 |
35 |
index f4c0f73c2350..000000000000 |
36 |
--- a/app-emulation/wine-staging/wine-staging-7.8.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,542 +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 crossdev-mingw cups custom-cflags dos +fontconfig +gecko gphoto2 gssapi gstreamer kerberos ldap mingw +mono mp3 netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight pulseaudio +realtime +run-exes samba scanner sdl selinux +ssl staging test +threads +truetype udev +udisks +unwind usb v4l vulkan +X +xcomposite xinerama" |
90 |
-REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
91 |
- X? ( truetype ) |
92 |
- crossdev-mingw? ( mingw ) |
93 |
- elibc_glibc? ( threads ) |
94 |
- osmesa? ( opengl ) |
95 |
- pipelight? ( staging ) |
96 |
- test? ( abi_x86_32 )" # 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 |
- mingw? ( !crossdev-mingw? ( dev-util/mingw64-toolchain[${MULTILIB_USEDEP}] ) )" |
106 |
- |
107 |
-COMMON_DEPEND=" |
108 |
- X? ( |
109 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
110 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
111 |
- x11-libs/libXfixes[${MULTILIB_USEDEP}] |
112 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
113 |
- x11-libs/libXi[${MULTILIB_USEDEP}] |
114 |
- x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
115 |
- ) |
116 |
- alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
117 |
- capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
118 |
- cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
119 |
- fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
120 |
- gphoto2? ( |
121 |
- media-libs/libgphoto2:=[${MULTILIB_USEDEP}] |
122 |
- media-libs/libjpeg-turbo:0=[${MULTILIB_USEDEP}] |
123 |
- ) |
124 |
- gssapi? ( virtual/krb5[${MULTILIB_USEDEP}] ) |
125 |
- gstreamer? ( |
126 |
- media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
127 |
- media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
128 |
- ) |
129 |
- kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] ) |
130 |
- ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
131 |
- netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
132 |
- nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
133 |
- odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
134 |
- openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
135 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
136 |
- opengl? ( |
137 |
- virtual/opengl[${MULTILIB_USEDEP}] |
138 |
- ) |
139 |
- osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] ) |
140 |
- pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
141 |
- pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
142 |
- scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] ) |
143 |
- sdl? ( media-libs/libsdl2:=[haptic,joystick,${MULTILIB_USEDEP}] ) |
144 |
- ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
145 |
- staging? ( sys-apps/attr[${MULTILIB_USEDEP}] ) |
146 |
- truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] ) |
147 |
- udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) |
148 |
- udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
149 |
- unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] ) |
150 |
- usb? ( virtual/libusb:1[${MULTILIB_USEDEP}] ) |
151 |
- v4l? ( media-libs/libv4l[${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.2.0 ) |
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 |
- # Ensure compiler support |
205 |
- # (No checks here as of 2022) |
206 |
- return 0 |
207 |
-} |
208 |
- |
209 |
-wine_build_environment_check() { |
210 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
211 |
- |
212 |
- if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
213 |
- eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
214 |
- eerror "See https://bugs.gentoo.org/487864 for more details." |
215 |
- eerror |
216 |
- return 1 |
217 |
- fi |
218 |
-} |
219 |
- |
220 |
-wine_env_vcs_vars() { |
221 |
- local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
222 |
- local pn_live_val="${pn_live_var}" |
223 |
- eval pn_live_val='$'${pn_live_val} |
224 |
- if [[ ! -z ${pn_live_val} ]]; then |
225 |
- if use staging; then |
226 |
- eerror "Because of the multi-repo nature of ${MY_PN}, ${pn_live_var}" |
227 |
- eerror "cannot be used to set the commit. Instead, you may use the" |
228 |
- eerror "environment variables:" |
229 |
- eerror " EGIT_OVERRIDE_COMMIT_WINE" |
230 |
- eerror " EGIT_OVERRIDE_COMMIT_WINE_STAGING_WINE_STAGING" |
231 |
- eerror |
232 |
- return 1 |
233 |
- fi |
234 |
- fi |
235 |
- if [[ ! -z ${EGIT_COMMIT} ]]; then |
236 |
- eerror "Commits must now be specified using the environment variables:" |
237 |
- eerror " EGIT_OVERRIDE_COMMIT_WINE" |
238 |
- eerror " EGIT_OVERRIDE_COMMIT_WINE_STAGING_WINE_STAGING" |
239 |
- eerror |
240 |
- return 1 |
241 |
- fi |
242 |
-} |
243 |
- |
244 |
-pkg_pretend() { |
245 |
- if [[ ${MERGE_TYPE} != binary ]] ; then |
246 |
- wine_build_environment_check || die |
247 |
- |
248 |
- # Verify OSS support |
249 |
- if use oss; then |
250 |
- if ! has_version ">=media-sound/oss-4"; then |
251 |
- eerror "You cannot build wine with USE=oss without having support from" |
252 |
- eerror ">=media-sound/oss-4 (only available through external repos)" |
253 |
- eerror |
254 |
- die |
255 |
- fi |
256 |
- fi |
257 |
- |
258 |
- if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then |
259 |
- local mingw=-w64-mingw32 |
260 |
- for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do |
261 |
- type -P ${mingw}-gcc && continue |
262 |
- eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain" |
263 |
- eerror "yourself by installing sys-devel/crossdev then running:" |
264 |
- eerror |
265 |
- eerror " crossdev --target ${mingw}" |
266 |
- eerror |
267 |
- eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw" |
268 |
- die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found" |
269 |
- done |
270 |
- fi |
271 |
- fi |
272 |
-} |
273 |
- |
274 |
-pkg_setup() { |
275 |
- wine_build_environment_check || die |
276 |
- wine_env_vcs_vars || die |
277 |
- |
278 |
- WINE_VARIANT="${PN#wine}-${MY_PV}" |
279 |
- WINE_VARIANT="${WINE_VARIANT#-}" |
280 |
- |
281 |
- MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}" |
282 |
- MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}" |
283 |
- MY_DATADIR="${MY_DATAROOTDIR}" |
284 |
- MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
285 |
- MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}" |
286 |
- MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}" |
287 |
- MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}" |
288 |
- MY_MANDIR="${MY_DATADIR}/man" |
289 |
-} |
290 |
- |
291 |
-src_unpack() { |
292 |
- if [[ ${MY_PV} == "9999" ]] ; then |
293 |
- EGIT_CHECKOUT_DIR="${S}" git-r3_src_unpack |
294 |
- if use staging; then |
295 |
- local CURRENT_WINE_COMMIT=${EGIT_VERSION} |
296 |
- |
297 |
- EGIT_CHECKOUT_DIR="${STAGING_DIR}" EGIT_REPO_URI="${STAGING_EGIT_REPO_URI}" git-r3_src_unpack |
298 |
- |
299 |
- local COMPAT_WINE_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die |
300 |
- |
301 |
- if [[ "${CURRENT_WINE_COMMIT}" != "${COMPAT_WINE_COMMIT}" ]]; then |
302 |
- einfo "The current Staging patchset is not guaranteed to apply on this WINE commit." |
303 |
- einfo "If src_prepare fails, try emerging with the env var WINE_COMMIT." |
304 |
- einfo "Example: EGIT_OVERRIDE_COMMIT_WINE=${COMPAT_WINE_COMMIT} emerge -1 wine" |
305 |
- fi |
306 |
- fi |
307 |
- fi |
308 |
- |
309 |
- default |
310 |
- |
311 |
- plocale_find_changes "${S}/po" "" ".po" |
312 |
-} |
313 |
- |
314 |
-src_prepare() { |
315 |
- |
316 |
- eapply_bin(){ |
317 |
- local patch |
318 |
- for patch in ${PATCHES_BIN[@]}; do |
319 |
- patchbin --nogit < "${patch}" || die |
320 |
- done |
321 |
- } |
322 |
- |
323 |
- local md5="$(md5sum server/protocol.def)" |
324 |
- |
325 |
- if use staging; then |
326 |
- ewarn "Applying the Wine-Staging patchset. Any bug reports to the" |
327 |
- ewarn "Wine bugzilla should explicitly state that staging was used." |
328 |
- |
329 |
- local STAGING_EXCLUDE="-W winemenubuilder-Desktop_Icon_Path" #652176 |
330 |
- use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight" |
331 |
- |
332 |
- # Launch wine-staging patcher in a subshell, using eapply as a backend, and gitapply.sh as a backend for binary patches |
333 |
- ebegin "Running Wine-Staging patch installer" |
334 |
- ( |
335 |
- set -- DESTDIR="${S}" --backend=eapply --no-autoconf --all ${STAGING_EXCLUDE} |
336 |
- cd "${STAGING_DIR}/patches" |
337 |
- source "${STAGING_DIR}/patches/patchinstall.sh" |
338 |
- ) |
339 |
- eend $? || die "Failed to apply Wine-Staging patches" |
340 |
- fi |
341 |
- |
342 |
- default |
343 |
- eapply_bin |
344 |
- eautoreconf |
345 |
- |
346 |
- # Modification of the server protocol requires regenerating the server requests |
347 |
- if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
348 |
- einfo "server/protocol.def was patched; running tools/make_requests" |
349 |
- tools/make_requests || die #432348 |
350 |
- fi |
351 |
- sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
352 |
- if ! use run-exes; then |
353 |
- sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
354 |
- fi |
355 |
- |
356 |
- # Edit wine.desktop to work for specific variant |
357 |
- sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die |
358 |
- |
359 |
- # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652 |
360 |
- cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die |
361 |
- |
362 |
- plocale_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
363 |
- |
364 |
- # Fix manpage generation for locales #469418 and abi_x86_64 #617864 |
365 |
- |
366 |
- # Duplicate manpages input files for wine64 |
367 |
- local f |
368 |
- for f in loader/*.man.in; do |
369 |
- cp ${f} ${f/wine/wine64} || die |
370 |
- done |
371 |
- # Add wine64 manpages to Makefile |
372 |
- if use abi_x86_64; then |
373 |
- sed -i "/wine.man.in/i \ |
374 |
- \\\twine64.man.in \\\\" loader/Makefile.in || die |
375 |
- sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\ |
376 |
-\164\2/' loader/Makefile.in || die |
377 |
- fi |
378 |
- |
379 |
- rm_man_file(){ |
380 |
- local file="${1}" |
381 |
- loc=${2} |
382 |
- sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die |
383 |
- } |
384 |
- |
385 |
- while read f; do |
386 |
- plocale_for_each_disabled_locale rm_man_file "${f}" |
387 |
- done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print) |
388 |
-} |
389 |
- |
390 |
-src_configure() { |
391 |
- wine_compiler_check || die |
392 |
- |
393 |
- export LDCONFIG=/bin/true |
394 |
- use custom-cflags || strip-flags |
395 |
- if use mingw; then |
396 |
- use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH} |
397 |
- |
398 |
- # use *FLAGS for mingw, but strip unsupported (e.g. --hash-style=gnu) |
399 |
- local mingwcc=${CROSSCC:-$(usex x86 i686 x86_64)-w64-mingw32-gcc} |
400 |
- : "${CROSSCFLAGS:=$(CC=${mingwcc} test-flags-CC ${CFLAGS:--O2})}" |
401 |
- : "${CROSSLDFLAGS:=$(CC=${mingwcc} test-flags-CCLD ${LDFLAGS})}" |
402 |
- export CROSS{C,LD}FLAGS |
403 |
- fi |
404 |
- |
405 |
- multilib-minimal_src_configure |
406 |
-} |
407 |
- |
408 |
-multilib_src_configure() { |
409 |
- local myconf=( |
410 |
- --prefix="${MY_PREFIX}" |
411 |
- --datarootdir="${MY_DATAROOTDIR}" |
412 |
- --datadir="${MY_DATADIR}" |
413 |
- --docdir="${MY_DOCDIR}" |
414 |
- --includedir="${MY_INCLUDEDIR}" |
415 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}" |
416 |
- --libexecdir="${MY_LIBEXECDIR}" |
417 |
- --localstatedir="${MY_LOCALSTATEDIR}" |
418 |
- --mandir="${MY_MANDIR}" |
419 |
- --sysconfdir="${EPREFIX}/etc/wine" |
420 |
- $(use_with alsa) |
421 |
- $(use_with capi) |
422 |
- $(use_with cups) |
423 |
- $(use_with udisks dbus) |
424 |
- $(use_with fontconfig) |
425 |
- $(use_with ssl gnutls) |
426 |
- $(use_enable gecko mshtml) |
427 |
- $(use_with gphoto2 gphoto) |
428 |
- $(use_with gssapi) |
429 |
- $(use_with gstreamer) |
430 |
- --enable-hal |
431 |
- $(use_with kerberos krb5) |
432 |
- $(use_with ldap) |
433 |
- # TODO: Will bug 685172 still need special handling? |
434 |
- $(use_with mingw) |
435 |
- $(use_enable mono mscoree) |
436 |
- $(use_with netapi) |
437 |
- $(use_with nls gettext) |
438 |
- $(use_with openal) |
439 |
- $(use_with opencl) |
440 |
- $(use_with opengl) |
441 |
- $(use_with osmesa) |
442 |
- $(use_with oss) |
443 |
- $(use_with pcap) |
444 |
- $(use_with pulseaudio pulse) |
445 |
- $(use_with threads pthread) |
446 |
- $(use_with scanner sane) |
447 |
- $(use_with sdl) |
448 |
- $(use_enable test tests) |
449 |
- $(use_with truetype freetype) |
450 |
- $(use_with udev) |
451 |
- $(use_with unwind) |
452 |
- $(use_with usb) |
453 |
- $(use_with v4l v4l2) |
454 |
- $(use_with vulkan) |
455 |
- $(use_with X x) |
456 |
- $(use_with X xfixes) |
457 |
- $(use_with xcomposite) |
458 |
- $(use_with xinerama) |
459 |
- ) |
460 |
- |
461 |
- use staging && myconf+=( |
462 |
- --with-xattr |
463 |
- ) |
464 |
- |
465 |
- local PKG_CONFIG |
466 |
- # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
467 |
- tc-export PKG_CONFIG |
468 |
- |
469 |
- if use amd64; then |
470 |
- if [[ ${ABI} == amd64 ]]; then |
471 |
- myconf+=( --enable-win64 ) |
472 |
- else |
473 |
- myconf+=( --disable-win64 ) |
474 |
- fi |
475 |
- |
476 |
- # Note: using --with-wine64 results in problems with multilib.eclass |
477 |
- # CC/LD hackery. We're using separate tools instead. |
478 |
- fi |
479 |
- |
480 |
- ECONF_SOURCE=${S} \ |
481 |
- econf "${myconf[@]}" |
482 |
- emake depend |
483 |
-} |
484 |
- |
485 |
-multilib_src_test() { |
486 |
- # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
487 |
- if [[ ${ABI} == x86 ]]; then |
488 |
- if [[ $(id -u) == 0 ]]; then |
489 |
- ewarn "Skipping tests since they cannot be run under the root user." |
490 |
- ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" |
491 |
- return |
492 |
- fi |
493 |
- |
494 |
- WINEPREFIX="${T}/.wine-${ABI}" \ |
495 |
- virtx emake test |
496 |
- fi |
497 |
-} |
498 |
- |
499 |
-multilib_src_install_all() { |
500 |
- local DOCS=( ANNOUNCE AUTHORS README ) |
501 |
- add_locale_docs() { |
502 |
- local locale_doc="documentation/README.$1" |
503 |
- [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
504 |
- } |
505 |
- plocale_for_each_locale add_locale_docs |
506 |
- |
507 |
- einstalldocs |
508 |
- find "${ED}" -name *.la -delete || die |
509 |
- |
510 |
- if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
511 |
- rm "${D%}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \ |
512 |
- "${D%}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die |
513 |
- fi |
514 |
- |
515 |
- use abi_x86_32 && pax-mark psmr "${D%}${MY_PREFIX}"/bin/wine{,-preloader} #255055 |
516 |
- use abi_x86_64 && pax-mark psmr "${D%}${MY_PREFIX}"/bin/wine64{,-preloader} |
517 |
- |
518 |
- # Avoid double prefix from dosym and make_wrapper |
519 |
- MY_PREFIX=${MY_PREFIX#${EPREFIX}} |
520 |
- |
521 |
- if use abi_x86_64 && ! use abi_x86_32; then |
522 |
- dosym wine64 "${MY_PREFIX}"/bin/wine # 404331 |
523 |
- dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader |
524 |
- fi |
525 |
- |
526 |
- # Failglob for binloops, shouldn't be necessary, but including to stay safe |
527 |
- eshopts_push -s failglob #615218 |
528 |
- # Make wrappers for binaries for handling multiple variants |
529 |
- # Note: wrappers instead of symlinks because some are shell which use basename |
530 |
- local b |
531 |
- for b in "${ED%}${MY_PREFIX}"/bin/*; do |
532 |
- make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}" |
533 |
- done |
534 |
- eshopts_pop |
535 |
-} |
536 |
- |
537 |
-pkg_postinst() { |
538 |
- eselect wine register ${PN}-${MY_PV} |
539 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
540 |
- eselect wine register --vanilla ${PN}-${MY_PV} || die |
541 |
- else |
542 |
- if use staging; then |
543 |
- eselect wine register --staging ${PN}-${MY_PV} || die |
544 |
- fi |
545 |
- fi |
546 |
- |
547 |
- eselect wine update --all --if-unset || die |
548 |
- |
549 |
- xdg_desktop_database_update |
550 |
- |
551 |
- if ! use gecko; then |
552 |
- ewarn "Without Wine Gecko, wine prefixes will not have a default" |
553 |
- ewarn "implementation of iexplore. Many older windows applications" |
554 |
- ewarn "rely upon the existence of an iexplore implementation, so" |
555 |
- ewarn "you will likely need to install an external one, like via winetricks" |
556 |
- fi |
557 |
- if ! use mono; then |
558 |
- ewarn "Without Wine Mono, wine prefixes will not have a default" |
559 |
- ewarn "implementation of .NET. Many windows applications rely upon" |
560 |
- ewarn "the existence of a .NET implementation, so you will likely need" |
561 |
- ewarn "to install an external one, like via winetricks" |
562 |
- fi |
563 |
-} |
564 |
- |
565 |
-pkg_prerm() { |
566 |
- eselect wine deregister ${PN}-${MY_PV} |
567 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
568 |
- eselect wine deregister --vanilla ${PN}-${MY_PV} || die |
569 |
- else |
570 |
- if use staging; then |
571 |
- eselect wine deregister --staging ${PN}-${MY_PV}|| die |
572 |
- fi |
573 |
- fi |
574 |
- |
575 |
- eselect wine update --all --if-unset || die |
576 |
-} |
577 |
- |
578 |
-pkg_postrm() { |
579 |
- xdg_desktop_database_update |
580 |
-} |