1 |
commit: 63a0d05a8364bd9ebf83993950b19c3f60a156dc |
2 |
Author: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 2 01:08:42 2018 +0000 |
4 |
Commit: Nick Sarnie <sarnex <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 2 01:08:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63a0d05a |
7 |
|
8 |
app-emulation/wine-any: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
app-emulation/wine-any/Manifest | 3 - |
13 |
app-emulation/wine-any/metadata.xml | 1 - |
14 |
app-emulation/wine-any/wine-any-2.0-r1.ebuild | 634 -------------------------- |
15 |
3 files changed, 638 deletions(-) |
16 |
|
17 |
diff --git a/app-emulation/wine-any/Manifest b/app-emulation/wine-any/Manifest |
18 |
index b3b5310d5b1..b5ea40088ac 100644 |
19 |
--- a/app-emulation/wine-any/Manifest |
20 |
+++ b/app-emulation/wine-any/Manifest |
21 |
@@ -1,15 +1,12 @@ |
22 |
DIST gentoo-wine-patches-20180120.tar.xz 58672 BLAKE2B 84d621075b65475cec41a06429680b518d7eafb938cefd903f3f8aa71ea3049ac9d8de05af48f9f4f4a1b9172c7ef17784540413e410eb8ec11e8ec4a63858c6 SHA512 5b354a409c7a2b77499aaa593b9248a1d15d755e3687b095755faacc30068bfcdbdd5c2a2a78617cb1a78c46d2931162bd69ec3379b035d81494bea7108263c2 |
23 |
-DIST wine-2.0.tar.bz2 23662707 BLAKE2B 1d485c1359ce8a0395a9f6378c1f8be33ea2836b80390d1eb1095057a0acedd21708daab16e1851a315391b9f9b0a360879b9d98c73bcc8371c5023e9a8037f5 SHA512 b0a57ba8202d9fc396e5bfb7a7718d6bababbed8f3351e7fdc36afa37f35a871e04903757618f73427aeb71a52b2d323977d79e48f8b38d636f23fd404441186 |
24 |
DIST wine-3.11.tar.xz 20501100 BLAKE2B 793fe0a83ed13f4ca436c710198ffcbde5e0109d9890551a410b1d836d79adf4060f0cc7e20861eb806878db79f8003023821ac1b0d72a0710235412863c4576 SHA512 8f7226364648ec30eb77f1848ee6bf01be2445fd96f902309575ac1f6ece31bf54d415516fcda76ae438010a36a9d4846d22cc37365aac4a230701376f9589d7 |
25 |
DIST wine-3.12.tar.xz 20516708 BLAKE2B 6ff32f8d471492c1ca42db434b16c0273e98cd15215d2f67e3d8e34e298d36620f55409bb781687f3ab11e6a44bd95eaa033e642fdb0d7aae90319ac2ddd2fb6 SHA512 afc76e8975ea780f664de27a17128f730bcbe72a9fad0c01bfe6dcc98c2f98729ccde32e97fe4df2cf98f5d1b254b28f0e7cd380855148c5cfb41dd88f3012a1 |
26 |
DIST wine-3.13.tar.xz 20551460 BLAKE2B 2f8b1c2f72761b3c5541b8760be3009295dc9482257539edce83aa9d6022b2e8a25e1cee4fe56b69808e51e338fd330db5da17dec5dea4ba7684b5d7eb7e77d5 SHA512 a07a3d2a19261f9251f165ca4c14871e6ebda4d3f99da16f9fc41f06e80cae3fb50aeab96628c7a739e635e896dbb31c55df8b42c4637a058f9035c664c93a59 |
27 |
DIST wine-3.14.tar.xz 20583696 BLAKE2B 5e9410c5dadd0c08cbe0e52b0170840492890784dbd1afc8f01ab50caac8443513133575fa6f64143276ce315dde8614f5ece4b3cd5568c224a3379c85619b63 SHA512 50dbbf8a832abfa01247b9d170c6e1fe4f722cc8868659512df7bc17efd7e9d618db10283baf1eda0f1e4abbcdd130be16dbdb8d5a91b155c2c441e50e2b43f1 |
28 |
-DIST wine-d3d9-2.0.tar.gz 48373 BLAKE2B 80370a7519141030a7e54c2ea5db410b2bf1cde8d8389618487c52e4ff40f87cf7b0f9087331bb43fa6436e1b9936de9cc00a02b9ab9ce6528635a245e6a8b3f SHA512 a9e2d1c9f2784128e4c53a8dc923070a5057b5ff3d83c2b536a2d2df0bc8433ac92b8ab1c3cdf34158c0e7bfe497ddb5974605fbc1736a92307639d59450c7a1 |
29 |
DIST wine-d3d9-3.11.tar.gz 50540 BLAKE2B c9c6469fb0dfff9be5cf50796f47a747d02c736a22b186ec561c0dcc3715a0da1cfce24e852da075685ea3047131d98cf506810ab7d555fd91ca334dbf8c315c SHA512 57ebadc6764c36a925c8e9130b3b436513795bb53e96566a88c22337b37a8c3efcb84aada19d3e5dd6ae2eb24f64b46a33376027600cb7863254369b4555de05 |
30 |
DIST wine-d3d9-3.12.tar.gz 50544 BLAKE2B 68c58a8800facf910b72e07f8be77d260060175da25583d3e6562cbe18c4fa1cf2fe0f5d109747e6901677231483adf02a0f1d76105e66733faf1e932c75e876 SHA512 9beb98528600b6699a6112abaf037d73a7cd0e791de04dee2c1874075b9b99a24438df92421802eb89e1285e1235e6a36b6cd7260757fc43d7f8cb3b913296ad |
31 |
DIST wine-d3d9-3.13.tar.gz 50546 BLAKE2B 2773503ad2c952c47982258c8b7d7486b5822bfd759a96aa138996aed5ac16d7e3c7add7700f4394292f6154fdd8d58dbfabad1faf8b5013fb88f68ed7657521 SHA512 c3da30c0ce7fca433a703e42213c4a4f6c7a1f8a2d7744555a385641e5c344772dfd142779978d131bf42e79cddb4925b9926fd96e7e1497e173a755f1ec6ce5 |
32 |
DIST wine-d3d9-3.14.tar.gz 50546 BLAKE2B 47169741d0330902a006ce4a7663de317b221cfaa3e19abfbb3af2ff886e2a42a1185151531c2b67b57bdafc5646c10f57cd4ff11faf1d2f36c9f269f382637d SHA512 921bd096aa039d002b0f3c5f856668063a34164ad097cee696f45af7d148e80a78b05dfb879f91337fea2cb6e06dd99be2d199b5186c9cd7726dc72f31ddd1ea |
33 |
-DIST wine-staging-2.0.tar.gz 10182575 BLAKE2B 1de645f66fa3e5e0d8ceddf5439fd246510470f63d6331c7029abed7192180b7b8430e43a2e732a30a5fbe0c73ba39b7fafcfc08830c68e679dff90576c3a960 SHA512 51412299259d6e92c8993543d5fdb3239ebe31e0d1d715e0a9e8ce94b3139c0567b08ff1600d41be94f12427cbfccc2f6b6b2ed030535445c95618aaf6578580 |
34 |
DIST wine-staging-3.11.tar.gz 9950753 BLAKE2B bffc6a86b652695d9ed4e0e2ce6f165e45fc2f6fb7e898704fd22624b1b0497ae35319b2444b49ee62eb8d0e308dd32148af64e38f480ce4408170aa2c91a828 SHA512 811a8668c3747f02850928a99bc66612937c38d98068dddec47bffe427d00c7c83b172f12807e1cb609d83c00e978949f913877bfbf5d8443a5ad29011c03545 |
35 |
DIST wine-staging-3.12.tar.gz 9936375 BLAKE2B 5c48fb1037d39ce6ab78c03a002b2edfc2fc434c0f661bb6def050becd7411998b9ae763db99bda3b5190e3e6ab355699806d976d01f813904080c6156dafb7e SHA512 166f991f7c8f59df656f3fb28150a8e26e48d1ff6906b3eccd31cb84524e28efe7e7df00eadc21881940308ccc4b4edebcb2a71bdd03ba3de5beb1cf42e2f058 |
36 |
DIST wine-staging-3.13.tar.gz 9936353 BLAKE2B f5791c6f1bc43395860ea938cfadefe88e6839e44d6e3a8c5b9474e1ec17654645145459a2a9c32adbec6a5cd6441f754b0121958ff4c12e424262bb61c18358 SHA512 0124950cc18d566daecc532a432bce27d712f48eaaa9b37bf930e056b460e30a8fb1806aa179f72b44a95dc56963a3dc063b4acb71affb7b8ddff3001fe59b9a |
37 |
|
38 |
diff --git a/app-emulation/wine-any/metadata.xml b/app-emulation/wine-any/metadata.xml |
39 |
index d7df26c2b5c..5e010fdca87 100644 |
40 |
--- a/app-emulation/wine-any/metadata.xml |
41 |
+++ b/app-emulation/wine-any/metadata.xml |
42 |
@@ -37,7 +37,6 @@ This variant of the wine packaging allows for the use of the Wine-Staging patchs |
43 |
For versions before wine-1.7.55 or hardened, do not disable if you do not know what this means as it can break things at runtime</flag> |
44 |
<flag name="realtime">Pull in <pkg>sys-auth/rtkit</pkg> for low-latency pulseaudio support</flag> |
45 |
<flag name="run-exes">Use Wine to open and run .EXE and .MSI files</flag> |
46 |
- <flag name="s3tc">Pull in <pkg>media-libs/libtxc_dxtn</pkg> for DXTn texture compression, needed for many games</flag> |
47 |
<flag name="samba">Add support for NTLM auth. see |
48 |
http://wiki.winehq.org/NtlmAuthSetupGuide and |
49 |
http://wiki.winehq.org/NtlmSigningAndSealing</flag> |
50 |
|
51 |
diff --git a/app-emulation/wine-any/wine-any-2.0-r1.ebuild b/app-emulation/wine-any/wine-any-2.0-r1.ebuild |
52 |
deleted file mode 100644 |
53 |
index 52aa80d79f2..00000000000 |
54 |
--- a/app-emulation/wine-any/wine-any-2.0-r1.ebuild |
55 |
+++ /dev/null |
56 |
@@ -1,634 +0,0 @@ |
57 |
-# Copyright 1999-2018 Gentoo Foundation |
58 |
-# Distributed under the terms of the GNU General Public License v2 |
59 |
- |
60 |
-EAPI=6 |
61 |
- |
62 |
-PLOCALES="ar 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 sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW" |
63 |
-PLOCALE_BACKUP="en" |
64 |
- |
65 |
-inherit autotools estack eutils flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator xdg-utils |
66 |
- |
67 |
-MY_PN="${PN%%-*}" |
68 |
-MY_P="${MY_PN}-${PV}" |
69 |
- |
70 |
-if [[ ${PV} == "9999" ]] ; then |
71 |
- EGIT_REPO_URI="https://source.winehq.org/git/wine.git" |
72 |
- EGIT_BRANCH="master" |
73 |
- inherit git-r3 |
74 |
- SRC_URI="" |
75 |
- #KEYWORDS="" |
76 |
-else |
77 |
- MAJOR_V=$(get_version_component_range 1) |
78 |
- SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.0/${MY_P}.tar.bz2" |
79 |
- KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
80 |
-fi |
81 |
-S="${WORKDIR}/${MY_P}" |
82 |
- |
83 |
-STAGING_P="wine-staging-${PV}" |
84 |
-STAGING_DIR="${WORKDIR}/${STAGING_P}" |
85 |
-D3D9_P="wine-d3d9-${PV}" |
86 |
-D3D9_DIR="${WORKDIR}/wine-d3d9-patches-${D3D9_P}" |
87 |
-GWP_V="20180120" |
88 |
-PATCHDIR="${WORKDIR}/gentoo-wine-patches" |
89 |
- |
90 |
-DESCRIPTION="Free implementation of Windows(tm) on Unix, with optional external patchsets" |
91 |
-HOMEPAGE="https://www.winehq.org/" |
92 |
-SRC_URI="${SRC_URI} |
93 |
- https://dev.gentoo.org/~np-hardass/distfiles/wine/gentoo-wine-patches-${GWP_V}.tar.xz |
94 |
-" |
95 |
- |
96 |
-if [[ ${PV} == "9999" ]] ; then |
97 |
- STAGING_EGIT_REPO_URI="https://github.com/wine-compholio/wine-staging.git" |
98 |
- D3D9_EGIT_REPO_URI="https://github.com/sarnex/wine-d3d9-patches.git" |
99 |
-else |
100 |
- SRC_URI="${SRC_URI} |
101 |
- staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz ) |
102 |
- d3d9? ( https://github.com/sarnex/wine-d3d9-patches/archive/${D3D9_P}.tar.gz )" |
103 |
-fi |
104 |
- |
105 |
-LICENSE="LGPL-2.1" |
106 |
-SLOT="${PV}" |
107 |
-IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags d3d9 dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap pipelight +png prelink pulseaudio +realtime +run-exes s3tc samba scanner selinux +ssl staging test themes +threads +truetype udev +udisks v4l vaapi +X +xcomposite xinerama +xml" |
108 |
-REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
109 |
- X? ( truetype ) |
110 |
- elibc_glibc? ( threads ) |
111 |
- osmesa? ( opengl ) |
112 |
- pipelight? ( staging ) |
113 |
- s3tc? ( staging ) |
114 |
- test? ( abi_x86_32 ) |
115 |
- themes? ( staging ) |
116 |
- vaapi? ( staging )" # osmesa-opengl #286560 # X-truetype #551124 |
117 |
- |
118 |
-# FIXME: the test suite is unsuitable for us; many tests require net access |
119 |
-# or fail due to Xvfb's opengl limitations. |
120 |
-RESTRICT="test" |
121 |
- |
122 |
-COMMON_DEPEND=" |
123 |
- X? ( |
124 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
125 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
126 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
127 |
- x11-libs/libXi[${MULTILIB_USEDEP}] |
128 |
- x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
129 |
- ) |
130 |
- alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
131 |
- capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
132 |
- cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
133 |
- d3d9? ( |
134 |
- media-libs/mesa[d3d9,egl,${MULTILIB_USEDEP}] |
135 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
136 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
137 |
- x11-libs/libxcb[${MULTILIB_USEDEP}] |
138 |
- ) |
139 |
- fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
140 |
- gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] ) |
141 |
- gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] ) |
142 |
- gstreamer? ( |
143 |
- media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
144 |
- media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
145 |
- ) |
146 |
- jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
147 |
- lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] ) |
148 |
- ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
149 |
- mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] ) |
150 |
- ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] ) |
151 |
- netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
152 |
- nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
153 |
- odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
154 |
- openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
155 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
156 |
- opengl? ( |
157 |
- virtual/glu[${MULTILIB_USEDEP}] |
158 |
- virtual/opengl[${MULTILIB_USEDEP}] |
159 |
- ) |
160 |
- osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] ) |
161 |
- pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
162 |
- png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] ) |
163 |
- pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
164 |
- scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] ) |
165 |
- ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
166 |
- staging? ( sys-apps/attr[${MULTILIB_USEDEP}] ) |
167 |
- themes? ( |
168 |
- dev-libs/glib:2[${MULTILIB_USEDEP}] |
169 |
- x11-libs/cairo[${MULTILIB_USEDEP}] |
170 |
- x11-libs/gtk+:3[${MULTILIB_USEDEP}] |
171 |
- ) |
172 |
- truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] ) |
173 |
- udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) |
174 |
- udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
175 |
- v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) |
176 |
- vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] ) |
177 |
- xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] ) |
178 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
179 |
- xml? ( |
180 |
- dev-libs/libxml2[${MULTILIB_USEDEP}] |
181 |
- dev-libs/libxslt[${MULTILIB_USEDEP}] |
182 |
- )" |
183 |
- |
184 |
-RDEPEND="${COMMON_DEPEND} |
185 |
- app-emulation/wine-desktop-common |
186 |
- >app-eselect/eselect-wine-0.3 |
187 |
- !app-emulation/wine:0 |
188 |
- dos? ( >=games-emulation/dosbox-0.74_p20160629 ) |
189 |
- gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] ) |
190 |
- mono? ( app-emulation/wine-mono:4.6.4 ) |
191 |
- perl? ( |
192 |
- dev-lang/perl |
193 |
- dev-perl/XML-Simple |
194 |
- ) |
195 |
- pulseaudio? ( |
196 |
- realtime? ( sys-auth/rtkit ) |
197 |
- ) |
198 |
- s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] ) |
199 |
- samba? ( >=net-fs/samba-3.0.25[winbind] ) |
200 |
- selinux? ( sec-policy/selinux-wine ) |
201 |
- udisks? ( sys-fs/udisks:2 )" |
202 |
- |
203 |
-# tools/make_requests requires perl |
204 |
-DEPEND="${COMMON_DEPEND} |
205 |
- sys-devel/flex |
206 |
- >=sys-kernel/linux-headers-2.6 |
207 |
- virtual/pkgconfig |
208 |
- virtual/yacc |
209 |
- X? ( x11-base/xorg-proto ) |
210 |
- prelink? ( sys-devel/prelink ) |
211 |
- staging? ( |
212 |
- dev-lang/perl |
213 |
- dev-perl/XML-Simple |
214 |
- ) |
215 |
- xinerama? ( x11-base/xorg-proto )" |
216 |
- |
217 |
-# These use a non-standard "Wine" category, which is provided by |
218 |
-# /etc/xdg/applications-merged/wine.menu |
219 |
-QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
220 |
-usr/share/applications/wine-notepad.desktop |
221 |
-usr/share/applications/wine-uninstaller.desktop |
222 |
-usr/share/applications/wine-winecfg.desktop" |
223 |
- |
224 |
-PATCHES=( |
225 |
- "${PATCHDIR}/patches/${MY_PN}-1.5.26-winegcc.patch" #260726 |
226 |
- "${PATCHDIR}/patches/${MY_PN}-1.9.5-multilib-portage.patch" #395615 |
227 |
- "${PATCHDIR}/patches/${MY_PN}-1.6-memset-O3.patch" #480508 |
228 |
- "${PATCHDIR}/patches/${MY_PN}-2.0-multislot-apploader.patch" #310611 |
229 |
- "${PATCHDIR}/patches/freetype-2.8.1-segfault.patch" #631676 |
230 |
- "${PATCHDIR}/patches/freetype-2.8.1-drop-glyphs.patch" #631376 |
231 |
- "${PATCHDIR}/patches/${MY_PN}-2.0-rearrange-manpages.patch" #469418 #617864 |
232 |
-) |
233 |
-PATCHES_BIN=( |
234 |
- "${PATCHDIR}/patches/freetype-2.8.1-patch-fonts.patch" #631376 |
235 |
-) |
236 |
- |
237 |
-# https://bugs.gentoo.org/show_bug.cgi?id=635222 |
238 |
-if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${PV} == 9999 ]]; then |
239 |
- DEPEND+=" dev-util/patchbin" |
240 |
-fi |
241 |
- |
242 |
-wine_compiler_check() { |
243 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
244 |
- |
245 |
- # GCC-specific bugs |
246 |
- if tc-is-gcc; then |
247 |
- # bug #549768 |
248 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
249 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
250 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
251 |
- # Run in subshell to prevent "Aborted" message |
252 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
253 |
- if ! eend $?; then |
254 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
255 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
256 |
- eerror "or use gcc-config to select a different compiler version." |
257 |
- eerror "See https://bugs.gentoo.org/549768" |
258 |
- eerror |
259 |
- return 1 |
260 |
- fi |
261 |
- fi |
262 |
- # bug #574044 |
263 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
264 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
265 |
- # Compile in subshell to prevent "Aborted" message |
266 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
267 |
- if ! eend $?; then |
268 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
269 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
270 |
- eerror "or use gcc-config to select a different compiler version." |
271 |
- eerror "See https://bugs.gentoo.org/574044" |
272 |
- eerror |
273 |
- return 1 |
274 |
- fi |
275 |
- fi |
276 |
- fi |
277 |
- |
278 |
- # Ensure compiler support |
279 |
- if use abi_x86_64; then |
280 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
281 |
- # Compile in subshell to prevent "Aborted" message |
282 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
283 |
- if ! eend $?; then |
284 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
285 |
- eerror |
286 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
287 |
- eerror |
288 |
- return 1 |
289 |
- fi |
290 |
- fi |
291 |
-} |
292 |
- |
293 |
-wine_build_environment_check() { |
294 |
- [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
295 |
- |
296 |
- if use abi_x86_64; then |
297 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
298 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
299 |
- die |
300 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
301 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
302 |
- die |
303 |
- fi |
304 |
- fi |
305 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
306 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
307 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
308 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
309 |
- fi |
310 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
311 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
312 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
313 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
314 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
315 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
316 |
- fi |
317 |
- fi |
318 |
- |
319 |
- if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
320 |
- eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
321 |
- eerror "See https://bugs.gentoo.org/487864 for more details." |
322 |
- eerror |
323 |
- return 1 |
324 |
- fi |
325 |
-} |
326 |
- |
327 |
-wine_env_vcs_vars() { |
328 |
- local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
329 |
- local pn_live_val="${pn_live_var}" |
330 |
- eval pn_live_val='$'${pn_live_val} |
331 |
- if [[ ! -z ${pn_live_val} ]]; then |
332 |
- if use staging || use d3d9; then |
333 |
- eerror "Because of the multi-repo nature of ${MY_PN}, ${pn_live_var}" |
334 |
- eerror "cannot be used to set the commit. Instead, you may use the" |
335 |
- eerror "environmental variables WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT." |
336 |
- eerror |
337 |
- return 1 |
338 |
- fi |
339 |
- fi |
340 |
- if [[ ! -z ${EGIT_COMMIT} ]]; then |
341 |
- eerror "Commits must now be specified using the environmental variables" |
342 |
- eerror "WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT" |
343 |
- eerror |
344 |
- return 1 |
345 |
- fi |
346 |
-} |
347 |
- |
348 |
-pkg_pretend() { |
349 |
- wine_build_environment_check || die |
350 |
- |
351 |
- # Verify OSS support |
352 |
- if use oss && ! use kernel_FreeBSD; then |
353 |
- if ! has_version ">=media-sound/oss-4"; then |
354 |
- eerror "You cannot build wine with USE=oss without having support from a" |
355 |
- eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)" |
356 |
- eerror |
357 |
- die |
358 |
- fi |
359 |
- fi |
360 |
-} |
361 |
- |
362 |
-pkg_setup() { |
363 |
- wine_build_environment_check || die |
364 |
- wine_env_vcs_vars || die |
365 |
- |
366 |
- WINE_VARIANT="${PN#wine}-${PV}" |
367 |
- WINE_VARIANT="${WINE_VARIANT#-}" |
368 |
- |
369 |
- MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}" |
370 |
- MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}" |
371 |
- MY_DATADIR="${MY_DATAROOTDIR}" |
372 |
- MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
373 |
- MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}" |
374 |
- MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}" |
375 |
- MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}" |
376 |
- MY_MANDIR="${MY_DATADIR}/man" |
377 |
-} |
378 |
- |
379 |
-src_unpack() { |
380 |
- if [[ ${PV} == "9999" ]] ; then |
381 |
- EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack |
382 |
- if use staging; then |
383 |
- local CURRENT_WINE_COMMIT=${EGIT_VERSION} |
384 |
- |
385 |
- git-r3_fetch "${STAGING_EGIT_REPO_URI}" "${STAGING_COMMIT}" |
386 |
- git-r3_checkout "${STAGING_EGIT_REPO_URI}" "${STAGING_DIR}" |
387 |
- |
388 |
- local COMPAT_WINE_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die |
389 |
- |
390 |
- if [[ "${CURRENT_WINE_COMMIT}" != "${COMPAT_WINE_COMMIT}" ]]; then |
391 |
- einfo "The current Staging patchset is not guaranteed to apply on this WINE commit." |
392 |
- einfo "If src_prepare fails, try emerging with the env var WINE_COMMIT." |
393 |
- einfo "Example: WINE_COMMIT=${COMPAT_WINE_COMMIT} emerge -1 wine" |
394 |
- fi |
395 |
- fi |
396 |
- if use d3d9; then |
397 |
- git-r3_fetch "${D3D9_EGIT_REPO_URI}" "${D3D9_COMMIT}" |
398 |
- git-r3_checkout "${D3D9_EGIT_REPO_URI}" "${D3D9_DIR}" |
399 |
- fi |
400 |
- fi |
401 |
- |
402 |
- default |
403 |
- |
404 |
- l10n_find_plocales_changes "${S}/po" "" ".po" |
405 |
-} |
406 |
- |
407 |
-src_prepare() { |
408 |
- |
409 |
- eapply_bin(){ |
410 |
- local patch |
411 |
- for patch in ${PATCHES_BIN[@]}; do |
412 |
- patchbin --nogit < "${patch}" || die |
413 |
- done |
414 |
- } |
415 |
- |
416 |
- local md5="$(md5sum server/protocol.def)" |
417 |
- |
418 |
- if use staging; then |
419 |
- ewarn "Applying the Wine-Staging patchset. Any bug reports to the" |
420 |
- ewarn "Wine bugzilla should explicitly state that staging was used." |
421 |
- |
422 |
- local STAGING_EXCLUDE="" |
423 |
- STAGING_EXCLUDE="${STAGING_EXCLUDE} -W winhlp32-Flex_Workaround" # Avoid double patching https://bugs.winehq.org/show_bug.cgi?id=42132 |
424 |
- use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight" |
425 |
- |
426 |
- # Launch wine-staging patcher in a subshell, using eapply as a backend, and gitapply.sh as a backend for binary patches |
427 |
- ebegin "Running Wine-Staging patch installer" |
428 |
- ( |
429 |
- set -- DESTDIR="${S}" --backend=eapply --no-autoconf --all ${STAGING_EXCLUDE} |
430 |
- cd "${STAGING_DIR}/patches" |
431 |
- source "${STAGING_DIR}/patches/patchinstall.sh" |
432 |
- ) |
433 |
- eend $? || die "Failed to apply Wine-Staging patches" |
434 |
- fi |
435 |
- if use d3d9; then |
436 |
- if use staging; then |
437 |
- PATCHES+=( "${D3D9_DIR}/staging-helper.patch" ) |
438 |
- else |
439 |
- PATCHES+=( "${D3D9_DIR}/d3d9-helper.patch" ) |
440 |
- fi |
441 |
- PATCHES+=( "${D3D9_DIR}/wine-d3d9.patch" ) |
442 |
- fi |
443 |
- |
444 |
- default |
445 |
- eapply_bin |
446 |
- eautoreconf |
447 |
- |
448 |
- # Modification of the server protocol requires regenerating the server requests |
449 |
- if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
450 |
- einfo "server/protocol.def was patched; running tools/make_requests" |
451 |
- tools/make_requests || die #432348 |
452 |
- fi |
453 |
- sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
454 |
- if ! use run-exes; then |
455 |
- sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
456 |
- fi |
457 |
- |
458 |
- # Edit wine.desktop to work for specific variant |
459 |
- sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die |
460 |
- |
461 |
- # hi-res default icon, #472990, https://bugs.winehq.org/show_bug.cgi?id=24652 |
462 |
- cp "${PATCHDIR}/files/oic_winlogo.ico" dlls/user32/resources/ || die |
463 |
- |
464 |
- l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
465 |
- |
466 |
- # Fix manpage generation for locales #469418 and abi_x86_64 #617864 |
467 |
- # Requires wine-2.0-rearrange-manpages.patch |
468 |
- |
469 |
- # Duplicate manpages input files for wine64 |
470 |
- local f |
471 |
- for f in loader/*.man.in; do |
472 |
- cp ${f} ${f/wine/wine64} || die |
473 |
- done |
474 |
- # Add wine64 manpages to Makefile |
475 |
- if use abi_x86_64; then |
476 |
- sed -i "/wine.man.in/i \ |
477 |
- \\\twine64.man.in \\\\" loader/Makefile.in || die |
478 |
- sed -i -E 's/(.*wine)(.*\.UTF-8\.man\.in.*)/&\ |
479 |
-\164\2/' loader/Makefile.in || die |
480 |
- fi |
481 |
- |
482 |
- rm_man_file(){ |
483 |
- local file="${1}" |
484 |
- loc=${2} |
485 |
- sed -i "/${loc}\.UTF-8\.man\.in/d" "${file}" || die |
486 |
- } |
487 |
- |
488 |
- while read f; do |
489 |
- l10n_for_each_disabled_locale_do rm_man_file "${f}" |
490 |
- done < <(find -name "Makefile.in" -exec grep -q "UTF-8.man.in" "{}" \; -print) |
491 |
-} |
492 |
- |
493 |
-src_configure() { |
494 |
- wine_compiler_check || die |
495 |
- |
496 |
- export LDCONFIG=/bin/true |
497 |
- use custom-cflags || strip-flags |
498 |
- |
499 |
- multilib-minimal_src_configure |
500 |
-} |
501 |
- |
502 |
-multilib_src_configure() { |
503 |
- local myconf=( |
504 |
- --prefix="${MY_PREFIX}" |
505 |
- --datarootdir="${MY_DATAROOTDIR}" |
506 |
- --datadir="${MY_DATADIR}" |
507 |
- --docdir="${MY_DOCDIR}" |
508 |
- --includedir="${MY_INCLUDEDIR}" |
509 |
- --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}" |
510 |
- --libexecdir="${MY_LIBEXECDIR}" |
511 |
- --localstatedir="${MY_LOCALSTATEDIR}" |
512 |
- --mandir="${MY_MANDIR}" |
513 |
- --sysconfdir=/etc/wine |
514 |
- $(use_with alsa) |
515 |
- $(use_with capi) |
516 |
- $(use_with lcms cms) |
517 |
- $(use_with cups) |
518 |
- $(use_with ncurses curses) |
519 |
- $(use_with udisks dbus) |
520 |
- $(use_with fontconfig) |
521 |
- $(use_with ssl gnutls) |
522 |
- $(use_enable gecko mshtml) |
523 |
- $(use_with gphoto2 gphoto) |
524 |
- $(use_with gsm) |
525 |
- $(use_with gstreamer) |
526 |
- --without-hal |
527 |
- $(use_with jpeg) |
528 |
- $(use_with ldap) |
529 |
- $(use_enable mono mscoree) |
530 |
- $(use_with mp3 mpg123) |
531 |
- $(use_with netapi) |
532 |
- $(use_with nls gettext) |
533 |
- $(use_with openal) |
534 |
- $(use_with opencl) |
535 |
- $(use_with opengl) |
536 |
- $(use_with osmesa) |
537 |
- $(use_with oss) |
538 |
- $(use_with pcap) |
539 |
- $(use_with png) |
540 |
- $(use_with pulseaudio pulse) |
541 |
- $(use_with threads pthread) |
542 |
- $(use_with scanner sane) |
543 |
- $(use_enable test tests) |
544 |
- $(use_with truetype freetype) |
545 |
- $(use_with udev) |
546 |
- $(use_with v4l) |
547 |
- $(use_with X x) |
548 |
- $(use_with xcomposite) |
549 |
- $(use_with xinerama) |
550 |
- $(use_with xml) |
551 |
- $(use_with xml xslt) |
552 |
- ) |
553 |
- |
554 |
- use staging && myconf+=( |
555 |
- --with-xattr |
556 |
- $(use_with themes gtk3) |
557 |
- $(use_with vaapi va) |
558 |
- ) |
559 |
- use d3d9 && myconf+=( $(use_with d3d9 d3d9-nine) ) |
560 |
- |
561 |
- local PKG_CONFIG AR RANLIB |
562 |
- # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
563 |
- # set AR and RANLIB to make QA scripts happy; #483342 |
564 |
- tc-export PKG_CONFIG AR RANLIB |
565 |
- |
566 |
- if use amd64; then |
567 |
- if [[ ${ABI} == amd64 ]]; then |
568 |
- myconf+=( --enable-win64 ) |
569 |
- else |
570 |
- myconf+=( --disable-win64 ) |
571 |
- fi |
572 |
- |
573 |
- # Note: using --with-wine64 results in problems with multilib.eclass |
574 |
- # CC/LD hackery. We're using separate tools instead. |
575 |
- fi |
576 |
- |
577 |
- ECONF_SOURCE=${S} \ |
578 |
- econf "${myconf[@]}" |
579 |
- emake depend |
580 |
-} |
581 |
- |
582 |
-multilib_src_test() { |
583 |
- # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
584 |
- if [[ ${ABI} == x86 ]]; then |
585 |
- if [[ $(id -u) == 0 ]]; then |
586 |
- ewarn "Skipping tests since they cannot be run under the root user." |
587 |
- ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" |
588 |
- return |
589 |
- fi |
590 |
- |
591 |
- WINEPREFIX="${T}/.wine-${ABI}" \ |
592 |
- Xemake test |
593 |
- fi |
594 |
-} |
595 |
- |
596 |
-multilib_src_install_all() { |
597 |
- local DOCS=( ANNOUNCE AUTHORS README ) |
598 |
- add_locale_docs() { |
599 |
- local locale_doc="documentation/README.$1" |
600 |
- [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
601 |
- } |
602 |
- l10n_for_each_locale_do add_locale_docs |
603 |
- |
604 |
- einstalldocs |
605 |
- prune_libtool_files --all |
606 |
- |
607 |
- if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
608 |
- rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \ |
609 |
- "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die |
610 |
- fi |
611 |
- |
612 |
- # Remove wineconsole if neither backend is installed #551124 |
613 |
- if ! use X && ! use ncurses; then |
614 |
- rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die |
615 |
- rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die |
616 |
- rm_wineconsole() { |
617 |
- rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die |
618 |
- } |
619 |
- multilib_foreach_abi rm_wineconsole |
620 |
- fi |
621 |
- |
622 |
- use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 |
623 |
- use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} |
624 |
- |
625 |
- if use abi_x86_64 && ! use abi_x86_32; then |
626 |
- dosym wine64 "${MY_PREFIX}"/bin/wine # 404331 |
627 |
- dosym wine64-preloader "${MY_PREFIX}"/bin/wine-preloader |
628 |
- fi |
629 |
- |
630 |
- # Failglob for binloops, shouldn't be necessary, but including to stay safe |
631 |
- eshopts_push -s failglob #615218 |
632 |
- # Make wrappers for binaries for handling multiple variants |
633 |
- # Note: wrappers instead of symlinks because some are shell which use basename |
634 |
- local b |
635 |
- for b in "${D%/}${MY_PREFIX}"/bin/*; do |
636 |
- make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}" |
637 |
- done |
638 |
- eshopts_pop |
639 |
-} |
640 |
- |
641 |
-pkg_postinst() { |
642 |
- eselect wine register ${P} |
643 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
644 |
- eselect wine register --vanilla ${P} || die |
645 |
- else |
646 |
- if use staging; then |
647 |
- eselect wine register --staging ${P} || die |
648 |
- fi |
649 |
- if use d3d9; then |
650 |
- eselect wine register --d3d9 ${P} || die |
651 |
- fi |
652 |
- fi |
653 |
- |
654 |
- eselect wine update --all --if-unset || die |
655 |
- |
656 |
- xdg_desktop_database_update |
657 |
- |
658 |
- if ! use gecko; then |
659 |
- ewarn "Without Wine Gecko, wine prefixes will not have a default" |
660 |
- ewarn "implementation of iexplore. Many older windows applications" |
661 |
- ewarn "rely upon the existence of an iexplore implementation, so" |
662 |
- ewarn "you will likely need to install an external one, like via winetricks" |
663 |
- fi |
664 |
- if ! use mono; then |
665 |
- ewarn "Without Wine Mono, wine prefixes will not have a default" |
666 |
- ewarn "implementation of .NET. Many windows applications rely upon" |
667 |
- ewarn "the existence of a .NET implementation, so you will likely need" |
668 |
- ewarn "to install an external one, like via winetricks" |
669 |
- fi |
670 |
-} |
671 |
- |
672 |
-pkg_prerm() { |
673 |
- eselect wine deregister ${P} |
674 |
- if [[ ${PN} == "wine-vanilla" ]]; then |
675 |
- eselect wine deregister --vanilla ${P} || die |
676 |
- else |
677 |
- if use staging; then |
678 |
- eselect wine deregister --staging ${P} || die |
679 |
- fi |
680 |
- if use d3d9; then |
681 |
- eselect wine deregister --d3d9 ${P} || die |
682 |
- fi |
683 |
- fi |
684 |
- |
685 |
- eselect wine update --all --if-unset || die |
686 |
-} |
687 |
- |
688 |
-pkg_postrm() { |
689 |
- xdg_desktop_database_update |
690 |
-} |