1 |
commit: 414c6e6a74ae58a536c8b2530a548cad0f8da588 |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 17 19:30:17 2017 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 17 21:09:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414c6e6a |
7 |
|
8 |
app-emulation/wine-staging: Bump to 2.12 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
app-emulation/wine-staging/Manifest | 2 + |
13 |
.../wine-staging/wine-staging-2.12.ebuild | 586 +++++++++++++++++++++ |
14 |
2 files changed, 588 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/wine-staging/Manifest b/app-emulation/wine-staging/Manifest |
17 |
index c50e41ef10e..e1a03080d13 100644 |
18 |
--- a/app-emulation/wine-staging/Manifest |
19 |
+++ b/app-emulation/wine-staging/Manifest |
20 |
@@ -2,6 +2,7 @@ DIST wine-2.0.tar.bz2 23662707 SHA256 9756f5a2129b6a83ba701e546173cbff86caa671b0 |
21 |
DIST wine-2.1.tar.xz 18887032 SHA256 bfb9abf63691c93df28d9599aaa866dc2b4e27209b3b7b546df8a37d7d9d1e6e SHA512 03d678ee6e89c2804813f2827255fcf59e96ca9a45b7d8ac441cfc84f835e5e5689c70a79a41a04c631e1add7807fa4a5758acef3bd7aadfb2e92e68958c6ef6 WHIRLPOOL 063d935f1ff0922100641f2f53cdac23d2993a83182d45e028e485fd7d0a13bc5cfb77bca76550b1537b3f42fecacef7fd64785adbf6425af823f56f96973b54 |
22 |
DIST wine-2.10.tar.xz 19209580 SHA256 488df7ffd2e81da455bf428fc9eb784bb4273a890334500895665711bd52f179 SHA512 8807e16a571bf45d99097ad5fdfb9fe755f6dbe84010a330fed82f1d48c76b7f19589bfc0e5dde0b9e49a608fd0501db3f7e3e129e4d9d34bcae03bc51a73139 WHIRLPOOL e9a8248aac31593fbac28a3d8d4e62bfce14a7c41cc416ebfca8606518d28efd31b32196133da211f75f48bd228bd5d21fcbbc0479293e813ed99b258b37126e |
23 |
DIST wine-2.11.tar.xz 19251116 SHA256 efa96dade206aa21accf0da195335a805d38209d6a14320607c6308ebde4cc3c SHA512 691f329c47af5e51498287029988b8ca0777bfc3902ed80fd315004aba2337a938e79177e752efe86423c9b34544df3952b8c443bf43149356575fac75a779ac WHIRLPOOL 4933e1ce640b0abeebccd6969b5eaf4eec76cd135d9cfc1d904a902219f776a68f72e2bd1ae9019d69f0d0d81fd8ead0084785d1b9710590349365977f9c1817 |
24 |
+DIST wine-2.12.tar.xz 19301968 SHA256 496c11af841487e6ec4e1953ac19b05a7f48e397da502653ffbd9fe9004213a7 SHA512 d44c1937d7d2d797150381f70317b810616d61355a59be096366d3507f59b678cffaf6d841cecf02bf9d2afa3dbf4d19270f80fb1d3ba5f0f93787d40c328f62 WHIRLPOOL 6f4b9baa6fcfe86f3d195fe603c2b9450a72a593c8f7042959b42a76880cb4ae680fde7beb70a8e823150849fda36c42985035de891ebf0088c8ffc2bceb15bf |
25 |
DIST wine-2.2.tar.xz 18916364 SHA256 64cb57e1d8aa07f5c89ef26743b494f2d3ef9c0f4e50d3ee896a93535f7751f4 SHA512 0700868244d397c1442948716321e5ff030c667edce464570f76aa4340199489a422872aa3975bc0a57b8285c9d59fc04e223a4bde094169fc6db460acb626c4 WHIRLPOOL ffc3d357a76592651b589c6ac6608720d0258474890faf8fe3e20ac29cdd1496d569721256f9389d347bf2734a556099154fd18ef1b56f45bb46c4c15771d6ca |
26 |
DIST wine-2.3.tar.xz 18931732 SHA256 afc95c7a87cc8f0730b462c50a5dfc9c462eb02c6bf5874b4fa99946f49e067e SHA512 bea78e8468555ff9e08dedf3918da5ea82721549c43984869989bbdafeea00e454820ff9558aa29925c97a165a9b01e5cd1fd397f133833c58824984a6686171 WHIRLPOOL 1f5ec8e5c32d124277e4c71d95726d3a5337575757c3029567c77165d65fcfec2ddf33d3863b4bf55c9eff7c3582c1ec7dbd76d84ed8bbbe89dd16db6b0128c1 |
27 |
DIST wine-2.4.tar.xz 18953748 SHA256 87b5df07e4781fecce2f92415a4717208ea253a20a0df8b36b9f90b69b72748e SHA512 15ae7e97dc72a8636b2c15c93803ed430fa456d673add61457cf3e479e769559c682b40949b5d38828f6681f13183e560fcb4a2eb0f0ba25e6eade46f7d3d7c0 WHIRLPOOL 558ab7b7517ad5e03366b4db974047eba776585e958a5b71bb2e93993e21bc725ea7a8bcf2a4354f34ca38c94ba99ccd15f2f8b5e4b58066bf339d3517eec56c |
28 |
@@ -15,6 +16,7 @@ DIST wine-staging-2.0.tar.gz 10182575 SHA256 22a43cb50c1fff9c6f233a965247056e332 |
29 |
DIST wine-staging-2.1.tar.gz 10101781 SHA256 1d193be2734ea495df2cae1dc54ce89204ca68699979174b0bd726d2e5e0576b SHA512 c64c48b265f0779c621a643ddbd2d12aaa548e4bff3b2b728280cdb9613214989911ee8ba5e46c7770f5f6430014a5da1c98e95d5008c1174bd14bf9ce5250db WHIRLPOOL ecf970ef436089bbcd0088e1608b22e808d54560e905c7d8046b3e21508166a595c3ef7b69819c45e4b13183bd9134a2bd7016d29c4da52985701d392eb35a0a |
30 |
DIST wine-staging-2.10.tar.gz 10091114 SHA256 b361ec92b2e40de983b987f6564dbb75dcb121c6e2f0123fe1ae234fd81a591b SHA512 c3bf7027ddfd1405263cce844a7cbeb923e9de56cffdb296384449c0cc600b3c9a37c7fe09b62fb9ae0b47f97a2d4f208cc589f0e4205fa84ce5d112953ac2e7 WHIRLPOOL 01c5436179bcbd29ee0468f2f4d839ba805c064d80835fcd1d5e6eba562881c65ac576657a733c726ccf4b37473da6724ae06ebc023fb988d8810ed1f8096c6b |
31 |
DIST wine-staging-2.11.tar.gz 10083147 SHA256 45c40fbca76cab987e7adfe47fc8e24692f896805c8a6dc6030da28e3bd842bc SHA512 e2d05ee88e1cc932c2890f1db867a9382f2c62a00ea7d63fc6bd7b3fab57ea2f0e4908313cbed08b92e48d5bc17753b0b78f6cdf2cb64e81aa5725fd86cbc695 WHIRLPOOL e2d13ed7d258b1ee442c8c87f852c1564ce5f262bd7cd31710b975882ab8cb454a1e2ec308c6c17e5bd0a691b0492fdea22a182323cb963c055592ce538db690 |
32 |
+DIST wine-staging-2.12.tar.gz 10105899 SHA256 0f186d2268011c12094ecac8747378ad8f4ee7152e8854cb00496ba9565b7974 SHA512 a8c21c923153a42609e3ea9065b84208b01f3b14d55b7e68e548ebf6d27df956051b29dc2f053aec6287422c13eed5b6ec71e667ae6f46b1c80ae7c84a51b648 WHIRLPOOL 01cf39fa257e9975cfd16976e680117dac3d0ea3f9bc41e2d0a636023bd4afba0676587e41c55d4417cff97080b90eb11b3fe475970eec70be64f5c788c1cf88 |
33 |
DIST wine-staging-2.2.tar.gz 10078327 SHA256 9d3cbf7e5f12c623d275457b910a158e0b176fcf50c09a5f8425864de604bc1d SHA512 8ad3f8ba4c6439a9ec4884a55018a67c9e2c2384830074646aac7b70cb9f4f5a20f760247ab42dc3d2f697cdac7ea5322be8ed12c435cb0bc185ac08fdd4dd91 WHIRLPOOL a34c19aaace64307de56d935cb0cef17d7c066c39b83c51e70ea76a20083f928bea55fe38d62b7a8250b0a9e8f00e0d2b744f43fcab433069ffb96625d955303 |
34 |
DIST wine-staging-2.3.tar.gz 10071742 SHA256 9a81be606836fab6203857f7937ff97575947f75d52c80fb5489418efb8b87e1 SHA512 8e8af1e36cc69c63ec3542f0ec4db18b6d8c16b5c9077eb211297f3a886519da71bcf72934bf8d6d72e44c7c9f765e1d00203d0d75cab8544f69f9b0c10a7133 WHIRLPOOL 50738a6e20890748d7eb01152244d34b259759f61b3587ba39815dc066fc8e2b66ce182e1ddbc912f50076a3599aa060ec6a94eeaab4513ce3a776711929b9b1 |
35 |
DIST wine-staging-2.4.tar.gz 10067020 SHA256 709cab12c0ebf7cf9504fd4a67eb851272309e00066ad81f184b0f55c63e9deb SHA512 55d11851697836b582ba54696cadc812ef6b14872440f5c3ed6fbe30a05abcb8abe2ab31a11ea4daeb354854c7c0e6549401d4b26b26621808bdeb89aeb206f9 WHIRLPOOL 8d344b7e6e89322c8dbbe6fd211851c90a45a33b514c182609cc60dc21939f791abc71d8665cd66e5c5161f159fe24c4772b99405833e3d11985a644e1335eaf |
36 |
|
37 |
diff --git a/app-emulation/wine-staging/wine-staging-2.12.ebuild b/app-emulation/wine-staging/wine-staging-2.12.ebuild |
38 |
new file mode 100644 |
39 |
index 00000000000..bc539a6b1b9 |
40 |
--- /dev/null |
41 |
+++ b/app-emulation/wine-staging/wine-staging-2.12.ebuild |
42 |
@@ -0,0 +1,586 @@ |
43 |
+# Copyright 1999-2017 Gentoo Foundation |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=6 |
47 |
+ |
48 |
+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" |
49 |
+PLOCALE_BACKUP="en" |
50 |
+ |
51 |
+inherit autotools eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator |
52 |
+ |
53 |
+MY_PN="${PN%%-*}" |
54 |
+MY_P="${MY_PN}-${PV}" |
55 |
+ |
56 |
+if [[ ${PV} == "9999" ]] ; then |
57 |
+ EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git" |
58 |
+ EGIT_BRANCH="master" |
59 |
+ inherit git-r3 |
60 |
+ SRC_URI="" |
61 |
+ #KEYWORDS="" |
62 |
+else |
63 |
+ MAJOR_V=$(get_version_component_range 1) |
64 |
+ SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz" |
65 |
+ KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
66 |
+fi |
67 |
+S="${WORKDIR}/${MY_P}" |
68 |
+ |
69 |
+STAGING_P="wine-staging-${PV}" |
70 |
+STAGING_DIR="${WORKDIR}/${STAGING_P}" |
71 |
+WDC_V="20150204" |
72 |
+WINE_DESKTOP_COMMON_P="wine-desktop-common-${WDC_V}" |
73 |
+ |
74 |
+DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset" |
75 |
+HOMEPAGE="http://www.winehq.org/" |
76 |
+SRC_URI="${SRC_URI} |
77 |
+ https://github.com/NP-Hardass/wine-desktop-common/archive/${WDC_V}.tar.gz -> ${WINE_DESKTOP_COMMON_P}.tar.gz |
78 |
+" |
79 |
+ |
80 |
+if [[ ${PV} == "9999" ]] ; then |
81 |
+ STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git" |
82 |
+else |
83 |
+ SRC_URI="${SRC_URI} |
84 |
+ staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )" |
85 |
+fi |
86 |
+ |
87 |
+LICENSE="LGPL-2.1" |
88 |
+SLOT="${PV}" |
89 |
+IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags 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" |
90 |
+REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
91 |
+ X? ( truetype ) |
92 |
+ elibc_glibc? ( threads ) |
93 |
+ osmesa? ( opengl ) |
94 |
+ pipelight? ( staging ) |
95 |
+ s3tc? ( staging ) |
96 |
+ test? ( abi_x86_32 ) |
97 |
+ themes? ( staging ) |
98 |
+ vaapi? ( staging )" # 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 |
+COMMON_DEPEND=" |
105 |
+ X? ( |
106 |
+ x11-libs/libXcursor[${MULTILIB_USEDEP}] |
107 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
108 |
+ x11-libs/libXrandr[${MULTILIB_USEDEP}] |
109 |
+ x11-libs/libXi[${MULTILIB_USEDEP}] |
110 |
+ x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
111 |
+ ) |
112 |
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
113 |
+ capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
114 |
+ cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
115 |
+ fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
116 |
+ gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] ) |
117 |
+ gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] ) |
118 |
+ gstreamer? ( |
119 |
+ media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
120 |
+ media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
121 |
+ ) |
122 |
+ jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
123 |
+ lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] ) |
124 |
+ ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
125 |
+ mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] ) |
126 |
+ ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] ) |
127 |
+ netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
128 |
+ nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
129 |
+ odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
130 |
+ openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
131 |
+ opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
132 |
+ opengl? ( |
133 |
+ virtual/glu[${MULTILIB_USEDEP}] |
134 |
+ virtual/opengl[${MULTILIB_USEDEP}] |
135 |
+ ) |
136 |
+ osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] ) |
137 |
+ pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
138 |
+ png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] ) |
139 |
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
140 |
+ scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] ) |
141 |
+ ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
142 |
+ staging? ( sys-apps/attr[${MULTILIB_USEDEP}] ) |
143 |
+ themes? ( |
144 |
+ dev-libs/glib:2[${MULTILIB_USEDEP}] |
145 |
+ x11-libs/cairo[${MULTILIB_USEDEP}] |
146 |
+ x11-libs/gtk+:3[${MULTILIB_USEDEP}] |
147 |
+ ) |
148 |
+ truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] ) |
149 |
+ udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) |
150 |
+ udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
151 |
+ v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) |
152 |
+ vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] ) |
153 |
+ xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] ) |
154 |
+ xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
155 |
+ xml? ( |
156 |
+ dev-libs/libxml2[${MULTILIB_USEDEP}] |
157 |
+ dev-libs/libxslt[${MULTILIB_USEDEP}] |
158 |
+ ) |
159 |
+ abi_x86_32? ( |
160 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
161 |
+ !<app-emulation/emul-linux-x86-baselibs-20140508-r14 |
162 |
+ !app-emulation/emul-linux-x86-db[-abi_x86_32(-)] |
163 |
+ !<app-emulation/emul-linux-x86-db-20140508-r3 |
164 |
+ !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] |
165 |
+ !<app-emulation/emul-linux-x86-medialibs-20140508-r6 |
166 |
+ !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] |
167 |
+ !<app-emulation/emul-linux-x86-opengl-20140508-r1 |
168 |
+ !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)] |
169 |
+ !<app-emulation/emul-linux-x86-sdl-20140508-r1 |
170 |
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
171 |
+ !<app-emulation/emul-linux-x86-soundlibs-20140508 |
172 |
+ !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)] |
173 |
+ !<app-emulation/emul-linux-x86-xlibs-20140508 |
174 |
+ )" |
175 |
+ |
176 |
+RDEPEND="${COMMON_DEPEND} |
177 |
+ app-emulation/wine-desktop-common |
178 |
+ >app-eselect/eselect-wine-0.3 |
179 |
+ !app-emulation/wine:0 |
180 |
+ dos? ( >=games-emulation/dosbox-0.74_p20160629 ) |
181 |
+ gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] ) |
182 |
+ mono? ( app-emulation/wine-mono:4.7.0 ) |
183 |
+ perl? ( |
184 |
+ dev-lang/perl |
185 |
+ dev-perl/XML-Simple |
186 |
+ ) |
187 |
+ pulseaudio? ( |
188 |
+ realtime? ( sys-auth/rtkit ) |
189 |
+ ) |
190 |
+ s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] ) |
191 |
+ samba? ( >=net-fs/samba-3.0.25[winbind] ) |
192 |
+ selinux? ( sec-policy/selinux-wine ) |
193 |
+ udisks? ( sys-fs/udisks:2 )" |
194 |
+ |
195 |
+# tools/make_requests requires perl |
196 |
+DEPEND="${COMMON_DEPEND} |
197 |
+ sys-devel/flex |
198 |
+ >=sys-kernel/linux-headers-2.6 |
199 |
+ virtual/pkgconfig |
200 |
+ virtual/yacc |
201 |
+ X? ( |
202 |
+ x11-proto/inputproto |
203 |
+ x11-proto/xextproto |
204 |
+ x11-proto/xf86vidmodeproto |
205 |
+ ) |
206 |
+ prelink? ( sys-devel/prelink ) |
207 |
+ staging? ( |
208 |
+ dev-lang/perl |
209 |
+ dev-perl/XML-Simple |
210 |
+ ) |
211 |
+ xinerama? ( x11-proto/xineramaproto )" |
212 |
+ |
213 |
+# These use a non-standard "Wine" category, which is provided by |
214 |
+# /etc/xdg/applications-merged/wine.menu |
215 |
+QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
216 |
+usr/share/applications/wine-notepad.desktop |
217 |
+usr/share/applications/wine-uninstaller.desktop |
218 |
+usr/share/applications/wine-winecfg.desktop" |
219 |
+ |
220 |
+wine_compiler_check() { |
221 |
+ [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
222 |
+ |
223 |
+ # GCC-specific bugs |
224 |
+ if tc-is-gcc; then |
225 |
+ # bug #549768 |
226 |
+ if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
227 |
+ ebegin "Checking for gcc-5 ms_abi compiler bug" |
228 |
+ $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die |
229 |
+ # Run in subshell to prevent "Aborted" message |
230 |
+ ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
231 |
+ if ! eend $?; then |
232 |
+ eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
233 |
+ eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
234 |
+ eerror "or use gcc-config to select a different compiler version." |
235 |
+ eerror "See https://bugs.gentoo.org/549768" |
236 |
+ eerror |
237 |
+ return 1 |
238 |
+ fi |
239 |
+ fi |
240 |
+ # bug #574044 |
241 |
+ if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
242 |
+ ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
243 |
+ # Compile in subshell to prevent "Aborted" message |
244 |
+ ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 ) >/dev/null 2>&1 |
245 |
+ if ! eend $?; then |
246 |
+ eerror "Wine cannot be built with this version of gcc-5.3" |
247 |
+ eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
248 |
+ eerror "or use gcc-config to select a different compiler version." |
249 |
+ eerror "See https://bugs.gentoo.org/574044" |
250 |
+ eerror |
251 |
+ return 1 |
252 |
+ fi |
253 |
+ fi |
254 |
+ fi |
255 |
+ |
256 |
+ # Ensure compiler support |
257 |
+ if use abi_x86_64; then |
258 |
+ ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
259 |
+ # Compile in subshell to prevent "Aborted" message |
260 |
+ ( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
261 |
+ if ! eend $?; then |
262 |
+ eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
263 |
+ eerror |
264 |
+ eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
265 |
+ eerror |
266 |
+ return 1 |
267 |
+ fi |
268 |
+ fi |
269 |
+} |
270 |
+ |
271 |
+wine_build_environment_check() { |
272 |
+ [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
273 |
+ |
274 |
+ if use abi_x86_64; then |
275 |
+ if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
276 |
+ eerror "You need gcc-4.4+ to compile 64-bit wine" |
277 |
+ die |
278 |
+ elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
279 |
+ eerror "You need clang-3.8+ to compile 64-bit wine" |
280 |
+ die |
281 |
+ fi |
282 |
+ fi |
283 |
+ if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
284 |
+ ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
285 |
+ ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
286 |
+ ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
287 |
+ fi |
288 |
+ if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
289 |
+ if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
290 |
+ ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
291 |
+ ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
292 |
+ ewarn "See package.env in man 5 portage for more information on how to do this." |
293 |
+ ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
294 |
+ fi |
295 |
+ fi |
296 |
+ |
297 |
+ if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
298 |
+ eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
299 |
+ eerror "See https://bugs.gentoo.org/487864 for more details." |
300 |
+ eerror |
301 |
+ return 1 |
302 |
+ fi |
303 |
+} |
304 |
+ |
305 |
+wine_env_vcs_vars() { |
306 |
+ local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
307 |
+ local pn_live_val="${pn_live_var}" |
308 |
+ eval pn_live_val='$'${pn_live_val} |
309 |
+ if [[ ! -z ${pn_live_val} ]]; then |
310 |
+ if use staging; then |
311 |
+ eerror "Because of the multi-repo nature of ${MY_PN}, ${pn_live_var}" |
312 |
+ eerror "cannot be used to set the commit. Instead, you may use the" |
313 |
+ eerror "environmental variables WINE_COMMIT, and STAGING_COMMIT." |
314 |
+ eerror |
315 |
+ return 1 |
316 |
+ fi |
317 |
+ fi |
318 |
+ if [[ ! -z ${EGIT_COMMIT} ]]; then |
319 |
+ eerror "Commits must now be specified using the environmental variables" |
320 |
+ eerror "WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT" |
321 |
+ eerror |
322 |
+ return 1 |
323 |
+ fi |
324 |
+} |
325 |
+ |
326 |
+pkg_pretend() { |
327 |
+ wine_build_environment_check || die |
328 |
+ |
329 |
+ # Verify OSS support |
330 |
+ if use oss && ! use kernel_FreeBSD; then |
331 |
+ if ! has_version ">=media-sound/oss-4"; then |
332 |
+ eerror "You cannot build wine with USE=oss without having support from a" |
333 |
+ eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)" |
334 |
+ eerror |
335 |
+ die |
336 |
+ fi |
337 |
+ fi |
338 |
+} |
339 |
+ |
340 |
+pkg_setup() { |
341 |
+ wine_build_environment_check || die |
342 |
+ wine_env_vcs_vars || die |
343 |
+ |
344 |
+ WINE_VARIANT="${PN#wine}-${PV}" |
345 |
+ WINE_VARIANT="${WINE_VARIANT#-}" |
346 |
+ |
347 |
+ MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}" |
348 |
+ MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}" |
349 |
+ MY_DATADIR="${MY_DATAROOTDIR}" |
350 |
+ MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
351 |
+ MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}" |
352 |
+ MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}" |
353 |
+ MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}" |
354 |
+ MY_MANDIR="${MY_DATADIR}/man" |
355 |
+} |
356 |
+ |
357 |
+src_unpack() { |
358 |
+ if [[ ${PV} == "9999" ]] ; then |
359 |
+ EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack |
360 |
+ if use staging; then |
361 |
+ local CURRENT_WINE_COMMIT=${EGIT_VERSION} |
362 |
+ |
363 |
+ git-r3_fetch "${STAGING_EGIT_REPO_URI}" "${STAGING_COMMIT}" |
364 |
+ git-r3_checkout "${STAGING_EGIT_REPO_URI}" "${STAGING_DIR}" |
365 |
+ |
366 |
+ local COMPAT_WINE_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die |
367 |
+ |
368 |
+ if [[ "${CURRENT_WINE_COMMIT}" != "${COMPAT_WINE_COMMIT}" ]]; then |
369 |
+ einfo "The current Staging patchset is not guaranteed to apply on this WINE commit." |
370 |
+ einfo "If src_prepare fails, try emerging with the env var WINE_COMMIT." |
371 |
+ einfo "Example: WINE_COMMIT=${COMPAT_WINE_COMMIT} emerge -1 wine" |
372 |
+ fi |
373 |
+ fi |
374 |
+ fi |
375 |
+ |
376 |
+ default |
377 |
+ |
378 |
+ l10n_find_plocales_changes "${S}/po" "" ".po" |
379 |
+} |
380 |
+ |
381 |
+src_prepare() { |
382 |
+ local md5="$(md5sum server/protocol.def)" |
383 |
+ local PATCHES=( |
384 |
+ "${FILESDIR}"/${MY_PN}-1.5.26-winegcc.patch #260726 |
385 |
+ "${FILESDIR}"/${MY_PN}-1.9.5-multilib-portage.patch #395615 |
386 |
+ "${FILESDIR}"/${MY_PN}-1.6-memset-O3.patch #480508 |
387 |
+ "${FILESDIR}"/${MY_PN}-2.0-multislot-apploader.patch |
388 |
+ ) |
389 |
+ if use staging; then |
390 |
+ ewarn "Applying the Wine-Staging patchset. Any bug reports to the" |
391 |
+ ewarn "Wine bugzilla should explicitly state that staging was used." |
392 |
+ |
393 |
+ local STAGING_EXCLUDE="" |
394 |
+ STAGING_EXCLUDE="${STAGING_EXCLUDE} -W winhlp32-Flex_Workaround" # Avoid double patching https://bugs.winehq.org/show_bug.cgi?id=42132 |
395 |
+ use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight" |
396 |
+ |
397 |
+ # Launch wine-staging patcher in a subshell, using eapply as a backend, and gitapply.sh as a backend for binary patches |
398 |
+ ebegin "Running Wine-Staging patch installer" |
399 |
+ ( |
400 |
+ set -- DESTDIR="${S}" --backend=eapply --no-autoconf --all ${STAGING_EXCLUDE} |
401 |
+ cd "${STAGING_DIR}/patches" |
402 |
+ source "${STAGING_DIR}/patches/patchinstall.sh" |
403 |
+ ) |
404 |
+ eend $? || die "Failed to apply Wine-Staging patches" |
405 |
+ fi |
406 |
+ |
407 |
+ default |
408 |
+ eautoreconf |
409 |
+ |
410 |
+ # Modification of the server protocol requires regenerating the server requests |
411 |
+ if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
412 |
+ einfo "server/protocol.def was patched; running tools/make_requests" |
413 |
+ tools/make_requests || die #432348 |
414 |
+ fi |
415 |
+ sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
416 |
+ if ! use run-exes; then |
417 |
+ sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
418 |
+ fi |
419 |
+ |
420 |
+ # Edit wine.desktop to work for specific variant |
421 |
+ sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die |
422 |
+ |
423 |
+ # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652 |
424 |
+ cp "${WORKDIR}/${WINE_DESKTOP_COMMON_P}/icons/oic_winlogo.ico" dlls/user32/resources/ || die |
425 |
+ |
426 |
+ l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
427 |
+} |
428 |
+ |
429 |
+src_configure() { |
430 |
+ wine_compiler_check || die |
431 |
+ |
432 |
+ export LDCONFIG=/bin/true |
433 |
+ use custom-cflags || strip-flags |
434 |
+ |
435 |
+ multilib-minimal_src_configure |
436 |
+} |
437 |
+ |
438 |
+multilib_src_configure() { |
439 |
+ local myconf=( |
440 |
+ --prefix="${MY_PREFIX}" |
441 |
+ --datarootdir="${MY_DATAROOTDIR}" |
442 |
+ --datadir="${MY_DATADIR}" |
443 |
+ --docdir="${MY_DOCDIR}" |
444 |
+ --includedir="${MY_INCLUDEDIR}" |
445 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}" |
446 |
+ --libexecdir="${MY_LIBEXECDIR}" |
447 |
+ --localstatedir="${MY_LOCALSTATEDIR}" |
448 |
+ --mandir="${MY_MANDIR}" |
449 |
+ --sysconfdir=/etc/wine |
450 |
+ $(use_with alsa) |
451 |
+ $(use_with capi) |
452 |
+ $(use_with lcms cms) |
453 |
+ $(use_with cups) |
454 |
+ $(use_with ncurses curses) |
455 |
+ $(use_with udisks dbus) |
456 |
+ $(use_with fontconfig) |
457 |
+ $(use_with ssl gnutls) |
458 |
+ $(use_enable gecko mshtml) |
459 |
+ $(use_with gphoto2 gphoto) |
460 |
+ $(use_with gsm) |
461 |
+ $(use_with gstreamer) |
462 |
+ --without-hal |
463 |
+ $(use_with jpeg) |
464 |
+ $(use_with ldap) |
465 |
+ $(use_enable mono mscoree) |
466 |
+ $(use_with mp3 mpg123) |
467 |
+ $(use_with netapi) |
468 |
+ $(use_with nls gettext) |
469 |
+ $(use_with openal) |
470 |
+ $(use_with opencl) |
471 |
+ $(use_with opengl) |
472 |
+ $(use_with osmesa) |
473 |
+ $(use_with oss) |
474 |
+ $(use_with pcap) |
475 |
+ $(use_with png) |
476 |
+ $(use_with pulseaudio pulse) |
477 |
+ $(use_with threads pthread) |
478 |
+ $(use_with scanner sane) |
479 |
+ $(use_enable test tests) |
480 |
+ $(use_with truetype freetype) |
481 |
+ $(use_with udev) |
482 |
+ $(use_with v4l) |
483 |
+ $(use_with X x) |
484 |
+ $(use_with xcomposite) |
485 |
+ $(use_with xinerama) |
486 |
+ $(use_with xml) |
487 |
+ $(use_with xml xslt) |
488 |
+ ) |
489 |
+ |
490 |
+ use staging && myconf+=( |
491 |
+ --with-xattr |
492 |
+ $(use_with themes gtk3) |
493 |
+ $(use_with vaapi va) |
494 |
+ ) |
495 |
+ |
496 |
+ local PKG_CONFIG AR RANLIB |
497 |
+ # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
498 |
+ # set AR and RANLIB to make QA scripts happy; #483342 |
499 |
+ tc-export PKG_CONFIG AR RANLIB |
500 |
+ |
501 |
+ if use amd64; then |
502 |
+ if [[ ${ABI} == amd64 ]]; then |
503 |
+ myconf+=( --enable-win64 ) |
504 |
+ else |
505 |
+ myconf+=( --disable-win64 ) |
506 |
+ fi |
507 |
+ |
508 |
+ # Note: using --with-wine64 results in problems with multilib.eclass |
509 |
+ # CC/LD hackery. We're using separate tools instead. |
510 |
+ fi |
511 |
+ |
512 |
+ ECONF_SOURCE=${S} \ |
513 |
+ econf "${myconf[@]}" |
514 |
+ emake depend |
515 |
+} |
516 |
+ |
517 |
+multilib_src_test() { |
518 |
+ # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
519 |
+ if [[ ${ABI} == x86 ]]; then |
520 |
+ if [[ $(id -u) == 0 ]]; then |
521 |
+ ewarn "Skipping tests since they cannot be run under the root user." |
522 |
+ ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" |
523 |
+ return |
524 |
+ fi |
525 |
+ |
526 |
+ WINEPREFIX="${T}/.wine-${ABI}" \ |
527 |
+ Xemake test |
528 |
+ fi |
529 |
+} |
530 |
+ |
531 |
+multilib_src_install_all() { |
532 |
+ local DOCS=( ANNOUNCE AUTHORS README ) |
533 |
+ add_locale_docs() { |
534 |
+ local locale_doc="documentation/README.$1" |
535 |
+ [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
536 |
+ } |
537 |
+ l10n_for_each_locale_do add_locale_docs |
538 |
+ |
539 |
+ einstalldocs |
540 |
+ prune_libtool_files --all |
541 |
+ |
542 |
+ if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
543 |
+ rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \ |
544 |
+ "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die |
545 |
+ fi |
546 |
+ |
547 |
+ # Remove wineconsole if neither backend is installed #551124 |
548 |
+ if ! use X && ! use ncurses; then |
549 |
+ rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die |
550 |
+ rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die |
551 |
+ rm_wineconsole() { |
552 |
+ rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die |
553 |
+ } |
554 |
+ multilib_foreach_abi rm_wineconsole |
555 |
+ fi |
556 |
+ |
557 |
+ use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 |
558 |
+ use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} |
559 |
+ |
560 |
+ if use abi_x86_64 && ! use abi_x86_32; then |
561 |
+ dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 |
562 |
+ dosym "${MY_PREFIX}"/bin/wine{64,}-preloader |
563 |
+ fi |
564 |
+ |
565 |
+ # Failglob for bin and man loops |
566 |
+ local glob_state=$(shopt -p failglob) |
567 |
+ shopt -s failglob |
568 |
+ |
569 |
+ # Make wrappers for binaries for handling multiple variants |
570 |
+ # Note: wrappers instead of symlinks because some are shell which use basename |
571 |
+ local b |
572 |
+ for b in "${D%/}${MY_PREFIX}"/bin/*; do |
573 |
+ make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}" |
574 |
+ done |
575 |
+ |
576 |
+ # respect LINGUAS when installing man pages, #469418 |
577 |
+ local l |
578 |
+ for l in de fr pl; do |
579 |
+ use linguas_${l} || rm -r "${D%/}${MY_MANDIR}"/${l}* |
580 |
+ done |
581 |
+ |
582 |
+ eval "${glob_state}" |
583 |
+} |
584 |
+ |
585 |
+pkg_postinst() { |
586 |
+ eselect wine register ${P} |
587 |
+ if [[ ${PN} == "wine-vanilla" ]]; then |
588 |
+ eselect wine register --vanilla ${P} || die |
589 |
+ else |
590 |
+ if use staging; then |
591 |
+ eselect wine register --staging ${P} || die |
592 |
+ fi |
593 |
+ fi |
594 |
+ |
595 |
+ eselect wine update --all --if-unset || die |
596 |
+ |
597 |
+ fdo-mime_desktop_database_update |
598 |
+ |
599 |
+ if ! use gecko; then |
600 |
+ ewarn "Without Wine Gecko, wine prefixes will not have a default" |
601 |
+ ewarn "implementation of iexplore. Many older windows applications" |
602 |
+ ewarn "rely upon the existence of an iexplore implementation, so" |
603 |
+ ewarn "you will likely need to install an external one, like via winetricks" |
604 |
+ fi |
605 |
+ if ! use mono; then |
606 |
+ ewarn "Without Wine Mono, wine prefixes will not have a default" |
607 |
+ ewarn "implementation of .NET. Many windows applications rely upon" |
608 |
+ ewarn "the existence of a .NET implementation, so you will likely need" |
609 |
+ ewarn "to install an external one, like via winetricks" |
610 |
+ fi |
611 |
+} |
612 |
+ |
613 |
+pkg_prerm() { |
614 |
+ eselect wine deregister ${P} |
615 |
+ if [[ ${PN} == "wine-vanilla" ]]; then |
616 |
+ eselect wine deregister --vanilla ${P} || die |
617 |
+ else |
618 |
+ if use staging; then |
619 |
+ eselect wine deregister --staging ${P} || die |
620 |
+ fi |
621 |
+ fi |
622 |
+ |
623 |
+ eselect wine update --all --if-unset || die |
624 |
+} |
625 |
+ |
626 |
+pkg_postrm() { |
627 |
+ fdo-mime_desktop_database_update |
628 |
+} |