Gentoo Archives: gentoo-commits

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