1 |
commit: cfa1c5c2360263bc40e435cf9671ae66c445c77c |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 3 22:24:33 2016 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 03:31:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfa1c5c2 |
7 |
|
8 |
app-emulation/wine: Bump to 1.8.4 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
app-emulation/wine/Manifest | 2 + |
13 |
app-emulation/wine/wine-1.8.4.ebuild | 540 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 542 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/wine/Manifest b/app-emulation/wine/Manifest |
17 |
index 9a012c3..ac63439 100644 |
18 |
--- a/app-emulation/wine/Manifest |
19 |
+++ b/app-emulation/wine/Manifest |
20 |
@@ -2,6 +2,7 @@ DIST wine-1.8-gstreamer-1.0.patch.bz2 30908 SHA256 00cc1e943e2dffb7d588bb5befd44 |
21 |
DIST wine-1.8.1.tar.bz2 22839063 SHA256 149ad3daaf8593b36c5c061285df0ec2a25e20ea48c61323be91088c4d22ca97 SHA512 e4cc3d00f28a616326f3069c7eeb94dc07759018b719bc37fe733b0f5e5d17f54ed2e877a964e9ea235362c49bf45bb3ec7072fba3d66648e6c7d55568e863cb WHIRLPOOL 8970d900c769add34a079f84c0562fca2d7e303ee9aa15de0fe2fde059de01256951c5ffeddb7b0a126599636e83d0d4ebdb8c0df5cde218fe8858e8b2451a0a |
22 |
DIST wine-1.8.2.tar.bz2 22857786 SHA256 51624fadf0145e87f0c01e7ce8524ea1e8d9d360c3e8a86e78cd26a52ce55a6f SHA512 ed4883443b29c00409143932de40c543a65acfc01ce61f223e6ed852e6869d1936e5d6c1c3942335d2fb6c9ee923f6187ba9f3207af9900911c4258c0266a321 WHIRLPOOL 6e658ad3def7b3784753df00534ba67f6b634691a058e20bfefcf4dc44c126e5afc1789135b9e6925e1d79afa82d1c2c39ff696b6a0318d080774d829c5e978d |
23 |
DIST wine-1.8.3.tar.bz2 22901016 SHA256 d7cecdf7aab93bfe950e6f83ec526681b8770788c7b2a802bfe50ff97fc17a6c SHA512 16e0e0161ded64d6abd4503e4a458e62cc630fd1ce7f8eee885404c42be784159213144aa049ff6628924828e13438453071d29b6975747ea4101c9da7e89f28 WHIRLPOOL 2f31ee6e261bd38ecbdcadedaf94d8fcb24324edfc1f85703b6ab91922a95c36a7b958375e499a26529cdfa190e6d6e065f396f9efec02027e04c001db694ed7 |
24 |
+DIST wine-1.8.4.tar.bz2 22907393 SHA256 515d10439777a4816fe5b0a0fc9a4ce498a2ecfd23eba0c25dc00f3d6c805079 SHA512 fa4d24e064683a0b9995dc506e54cbd1ea306a531d2ed11c951b50c19e43735da4616b325891647bf731ade218cc25ae684fb21af3db2758333e2ada6ffba0ea WHIRLPOOL b62126d02a7e538eb3dffdc22e8c386218148cbc8bf0108e4a64ff05f2506405303e96678df3f57027aa6084e03c9f2862504482c3147c16ac5b115039ddf791 |
25 |
DIST wine-1.8.tar.bz2 22843418 SHA256 f33b45c18112b2071fbf9edee0e8c575407f9e2a9855ca4ee918ed33efa7c6f4 SHA512 34308e82e04dee714fdbd10f29cd6cf6326e5e6e9134f7076e58b09988211065b8c6584881b7e5dcbc9b3906a819ab8a72b612b060cb9aa50b5b67f03bdab089 WHIRLPOOL 335a48f1b34cd1038d62290e52c3189b842d4077b7cf0bcb9d003595992360dc36eac1c592d31db44598de68010f3934daa1f4bcd0a2ca74aa130a39a74f7ce3 |
26 |
DIST wine-1.9.10.tar.bz2 23139814 SHA256 8d4900dff6542c973c3e6112fe23da6d85c28be9a4f842a9d0041e8530861bbf SHA512 0a81171d42b38ec3eb549ac1a4b31dd6230c5b4bd1accbb0ec05e29dc901336a995cea648a4463eb5cba2a34fd34389980e848f748d48cd43e4dbbdd3bf48c30 WHIRLPOOL 052d25f4b7183588107f14f41545ccf2430e65369629992999a8d985470ecc924be4dba5d94f4399fa9146a55832ba96b8cde71f7af3abfe30b410dac4e32ad6 |
27 |
DIST wine-1.9.11.tar.bz2 23165061 SHA256 728f794280fcb5b5d8814e38542d769e2d54ee0d6bf27c7ed74de34fbacdab96 SHA512 3c2037558b0e3dc833b68e18bee91642f22d19b201c604cd95c09a33ebe72ee1252139e2eb138efea666cf24bb727232b12d4c456459068ab228bfe951c793b2 WHIRLPOOL 7a911377b0c8a78fd18ca158c1b492fb58399a1404cc033ddd33e7abead617551d55d33e2ef9184c7df1b669a8074d41aa9b896a81120be930bb5730428026ee |
28 |
@@ -34,6 +35,7 @@ DIST wine-mono-4.6.3.msi 45591040 SHA256 f883e88ae78c7ea3d887c24023aa1ed03bb71a8 |
29 |
DIST wine-staging-1.8.1.tar.gz 9598557 SHA256 12a4e54376515e2ab8ad79855ba724ba065c8de619c5da192ec528cc365f9c97 SHA512 d24bb78aed1e50ad73e742608048a68097d40e3c6563c1bd5adc2fab6abe0838dbce2d9f700ef71d876c6dfee232e97bef91bbc8f6b6c9092ff8db5a2d0f05ac WHIRLPOOL cb1400586860d4e6dad3f3bad78bdde27f8ea9fb703180533f5852368041879efe93e716df8f54bbeabba38b7d921ec0e2737bc6121c8cb5fd5af8d117d7e538 |
30 |
DIST wine-staging-1.8.2.tar.gz 9593817 SHA256 388cdcdfcb80df56df10c0487c03b1f2a5d5ad5762eaf4036ea59dacd43eb64c SHA512 8dc795b99cecdc852d9725c90250de1441f2a9ba8abb96f9c7340115541cd670efd1e8640d34502c15a6e3eb77a1d9fc581f5464109976e148665ab25465b7b9 WHIRLPOOL 0a54f239fb21201bc72e72aa3fd5f94b5411a8fdbda85515b53cf04d77439d7d98db3c385a175036b1d3478af071e478f1fb16050823c6455078f719ab85b2b6 |
31 |
DIST wine-staging-1.8.3.tar.gz 9581722 SHA256 f217439b29c296f9f61f5bfc84b17d97ae86e2fe87e3a2a0b259889c4dcdb65e SHA512 762f1d6569d5b585540e9adf2cfe9a4a76b958e5f4e4442265b19abc1e621b2020ca77896c6aa7c34d19b792084693468ca0f07ec6e90361f5e8a95c5bbec8da WHIRLPOOL a23cfaa28d7abd78cba8306b57a5900ce2d6a720aa6f580ec7dacd159c4648442ad994d68d428ce9690e35713d4c75d4b42a18d307897a51230bc0183999e752 |
32 |
+DIST wine-staging-1.8.4.tar.gz 9577341 SHA256 db489655677d95e4028f4cbbada3ce61e8c1d5d4a309264a6cdf5d401ddf0d92 SHA512 59c09d1d9e564cbbae29534cdc899eb396975c3b2f8244ceef48abc005ade73dee514ebcbd39fae99a4b83d598e420562723868c65219a8ed72061c9cdabaa66 WHIRLPOOL b4551a4cdd6d4de139d5098fe902f671e52d0a225b91af47713eca268a70acce719f4ffa79775079441da678b1b2b3c12581da81a693bb664b31c89d102404cc |
33 |
DIST wine-staging-1.8.tar.gz 9632566 SHA256 c66f3dd6a760d516affe7467c4fb2d15ea8e2f0c72bcda1982219948dcdff11b SHA512 7b030b217ed0b37b8037d782406f75fcdb681c81371eafcab87175c0e6ac8b50fc58fe364e933e79eff168c1755412276fae3f914b7c36a6937aea1f6e35b022 WHIRLPOOL 8cff5d1d4c23405b820dbf9e7f73f7bba785e04ec2d9087b0977bb7aa1e6b84c2e6c3ac2f9cc72ba3c16f2b9c8c3607ea02ef1cd52d428a2b441333a424d9a21 |
34 |
DIST wine-staging-1.9.10.tar.gz 9951778 SHA256 9f5218622565b00e5caa1026a28bdb2b2756886b1a55fed2f1e64a76b9716046 SHA512 f694a113240adfa0181ee6681b6558ff86fd9e8e4d0b24399c310121fdc8d9d3bd85086ce75cb21bc838132a1ff4c834029da9a1a7d5e0841a22b63d265a52d3 WHIRLPOOL 6597a0db47defeeff87c208ce5dc55f8b8ef799efdc8cc6c72f85b9836e71cdf8fb6d763f499afd6e1ec83498f08d7f90d2575d994a270fd7035539d017b7d53 |
35 |
DIST wine-staging-1.9.11.tar.gz 9960530 SHA256 2497b88d2c6ce4e8ea2f149e9f764cf4610b52e521a9c0bf0f56b61668e49c66 SHA512 9a3f558def08d8997811e5d1dbed43901829dc65733887864fbc78f814f63adae43008a753493485e9db045fba028d9ec082fd6ba7e72d5be994027e10a5c0eb WHIRLPOOL 8aaa3bbaf3ba35bf134543e1acbb1d0db2b6f2146d69d98cb58498cb6a52d918b9a52e2ae2af26db861607eacdd58e906d995bcc482746828cdd54470f41845f |
36 |
|
37 |
diff --git a/app-emulation/wine/wine-1.8.4.ebuild b/app-emulation/wine/wine-1.8.4.ebuild |
38 |
new file mode 100644 |
39 |
index 00000000..3a81b95 |
40 |
--- /dev/null |
41 |
+++ b/app-emulation/wine/wine-1.8.4.ebuild |
42 |
@@ -0,0 +1,540 @@ |
43 |
+# Copyright 1999-2016 Gentoo Foundation |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+# $Id$ |
46 |
+ |
47 |
+EAPI=6 |
48 |
+ |
49 |
+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" |
50 |
+PLOCALE_BACKUP="en" |
51 |
+ |
52 |
+inherit autotools eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator |
53 |
+ |
54 |
+if [[ ${PV} == "9999" ]] ; then |
55 |
+ EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git" |
56 |
+ EGIT_BRANCH="master" |
57 |
+ inherit git-r3 |
58 |
+ SRC_URI="" |
59 |
+ #KEYWORDS="" |
60 |
+else |
61 |
+ MAJOR_V=$(get_version_component_range 1-2) |
62 |
+ SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}/${P}.tar.bz2" |
63 |
+ KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
64 |
+fi |
65 |
+ |
66 |
+VANILLA_GV="2.40" |
67 |
+VANILLA_MV="4.5.6" |
68 |
+STAGING_GV="2.40" |
69 |
+STAGING_MV="4.5.6" |
70 |
+[[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial" |
71 |
+STAGING_P="wine-staging-${PV}" |
72 |
+STAGING_DIR="${WORKDIR}/${STAGING_P}${SUFFIX}" |
73 |
+WINE_GENTOO="wine-gentoo-2015.03.07" |
74 |
+GST_P="wine-1.8-gstreamer-1.0" |
75 |
+DESCRIPTION="Free implementation of Windows(tm) on Unix" |
76 |
+HOMEPAGE="http://www.winehq.org/" |
77 |
+SRC_URI="${SRC_URI} |
78 |
+ !staging? ( |
79 |
+ gecko? ( |
80 |
+ abi_x86_32? ( https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86.msi ) |
81 |
+ abi_x86_64? ( https://dl.winehq.org/wine/wine-gecko/${VANILLA_GV}/wine_gecko-${VANILLA_GV}-x86_64.msi ) |
82 |
+ ) |
83 |
+ mono? ( https://dl.winehq.org/wine/wine-mono/${VANILLA_MV}/wine-mono-${VANILLA_MV}.msi ) |
84 |
+ ) |
85 |
+ staging? ( |
86 |
+ gecko? ( |
87 |
+ abi_x86_32? ( https://dl.winehq.org/wine/wine-gecko/${STAGING_GV}/wine_gecko-${STAGING_GV}-x86.msi ) |
88 |
+ abi_x86_64? ( https://dl.winehq.org/wine/wine-gecko/${STAGING_GV}/wine_gecko-${STAGING_GV}-x86_64.msi ) |
89 |
+ ) |
90 |
+ mono? ( https://dl.winehq.org/wine/wine-mono/${STAGING_MV}/wine-mono-${STAGING_MV}.msi ) |
91 |
+ ) |
92 |
+ https://dev.gentoo.org/~np-hardass/distfiles/${PN}/${GST_P}.patch.bz2 |
93 |
+ https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" |
94 |
+ |
95 |
+if [[ ${PV} == "9999" ]] ; then |
96 |
+ STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git" |
97 |
+else |
98 |
+ SRC_URI="${SRC_URI} |
99 |
+ staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}${SUFFIX}.tar.gz -> ${STAGING_P}.tar.gz )" |
100 |
+fi |
101 |
+ |
102 |
+LICENSE="LGPL-2.1" |
103 |
+SLOT="0" |
104 |
+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 +udisks v4l vaapi +X +xcomposite xinerama +xml" |
105 |
+REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
106 |
+ X? ( truetype ) |
107 |
+ elibc_glibc? ( threads ) |
108 |
+ mono? ( abi_x86_32 ) |
109 |
+ osmesa? ( opengl ) |
110 |
+ pipelight? ( staging ) |
111 |
+ s3tc? ( staging ) |
112 |
+ test? ( abi_x86_32 ) |
113 |
+ themes? ( staging ) |
114 |
+ vaapi? ( staging )" # osmesa-opengl #286560 # X-truetype #551124 |
115 |
+ |
116 |
+# FIXME: the test suite is unsuitable for us; many tests require net access |
117 |
+# or fail due to Xvfb's opengl limitations. |
118 |
+RESTRICT="test" |
119 |
+ |
120 |
+COMMON_DEPEND=" |
121 |
+ X? ( |
122 |
+ x11-libs/libXcursor[${MULTILIB_USEDEP}] |
123 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
124 |
+ x11-libs/libXrandr[${MULTILIB_USEDEP}] |
125 |
+ x11-libs/libXi[${MULTILIB_USEDEP}] |
126 |
+ x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
127 |
+ ) |
128 |
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
129 |
+ capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
130 |
+ cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
131 |
+ fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
132 |
+ gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] ) |
133 |
+ gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] ) |
134 |
+ gstreamer? ( |
135 |
+ media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
136 |
+ media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
137 |
+ ) |
138 |
+ jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
139 |
+ lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] ) |
140 |
+ ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
141 |
+ mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] ) |
142 |
+ ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] ) |
143 |
+ netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
144 |
+ nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
145 |
+ odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
146 |
+ openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
147 |
+ opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
148 |
+ opengl? ( |
149 |
+ virtual/glu[${MULTILIB_USEDEP}] |
150 |
+ virtual/opengl[${MULTILIB_USEDEP}] |
151 |
+ ) |
152 |
+ osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] ) |
153 |
+ pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
154 |
+ png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] ) |
155 |
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
156 |
+ scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] ) |
157 |
+ ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
158 |
+ staging? ( sys-apps/attr[${MULTILIB_USEDEP}] ) |
159 |
+ themes? ( |
160 |
+ dev-libs/glib:2[${MULTILIB_USEDEP}] |
161 |
+ x11-libs/cairo[${MULTILIB_USEDEP}] |
162 |
+ x11-libs/gtk+:3[${MULTILIB_USEDEP}] |
163 |
+ ) |
164 |
+ truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] ) |
165 |
+ udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
166 |
+ v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) |
167 |
+ vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] ) |
168 |
+ xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] ) |
169 |
+ xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
170 |
+ xml? ( |
171 |
+ dev-libs/libxml2[${MULTILIB_USEDEP}] |
172 |
+ dev-libs/libxslt[${MULTILIB_USEDEP}] |
173 |
+ ) |
174 |
+ abi_x86_32? ( |
175 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
176 |
+ !<app-emulation/emul-linux-x86-baselibs-20140508-r14 |
177 |
+ !app-emulation/emul-linux-x86-db[-abi_x86_32(-)] |
178 |
+ !<app-emulation/emul-linux-x86-db-20140508-r3 |
179 |
+ !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] |
180 |
+ !<app-emulation/emul-linux-x86-medialibs-20140508-r6 |
181 |
+ !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] |
182 |
+ !<app-emulation/emul-linux-x86-opengl-20140508-r1 |
183 |
+ !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)] |
184 |
+ !<app-emulation/emul-linux-x86-sdl-20140508-r1 |
185 |
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
186 |
+ !<app-emulation/emul-linux-x86-soundlibs-20140508 |
187 |
+ !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)] |
188 |
+ !<app-emulation/emul-linux-x86-xlibs-20140508 |
189 |
+ )" |
190 |
+ |
191 |
+RDEPEND="${COMMON_DEPEND} |
192 |
+ dos? ( >=games-emulation/dosbox-0.74_p20160629 ) |
193 |
+ perl? ( |
194 |
+ dev-lang/perl |
195 |
+ dev-perl/XML-Simple |
196 |
+ ) |
197 |
+ pulseaudio? ( |
198 |
+ realtime? ( sys-auth/rtkit ) |
199 |
+ ) |
200 |
+ s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] ) |
201 |
+ samba? ( >=net-fs/samba-3.0.25[winbind] ) |
202 |
+ selinux? ( sec-policy/selinux-wine ) |
203 |
+ udisks? ( sys-fs/udisks:2 )" |
204 |
+ |
205 |
+# tools/make_requests requires perl |
206 |
+DEPEND="${COMMON_DEPEND} |
207 |
+ sys-devel/flex |
208 |
+ >=sys-kernel/linux-headers-2.6 |
209 |
+ virtual/pkgconfig |
210 |
+ virtual/yacc |
211 |
+ X? ( |
212 |
+ x11-proto/inputproto |
213 |
+ x11-proto/xextproto |
214 |
+ x11-proto/xf86vidmodeproto |
215 |
+ ) |
216 |
+ prelink? ( sys-devel/prelink ) |
217 |
+ staging? ( |
218 |
+ dev-lang/perl |
219 |
+ dev-perl/XML-Simple |
220 |
+ ) |
221 |
+ xinerama? ( x11-proto/xineramaproto )" |
222 |
+ |
223 |
+# These use a non-standard "Wine" category, which is provided by |
224 |
+# /etc/xdg/applications-merged/wine.menu |
225 |
+QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
226 |
+usr/share/applications/wine-notepad.desktop |
227 |
+usr/share/applications/wine-uninstaller.desktop |
228 |
+usr/share/applications/wine-winecfg.desktop" |
229 |
+ |
230 |
+wine_compiler_check() { |
231 |
+ [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
232 |
+ |
233 |
+ # GCC-specific bugs |
234 |
+ if tc-is-gcc; then |
235 |
+ # bug #549768 |
236 |
+ if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
237 |
+ ebegin "Checking for gcc-5 ms_abi compiler bug" |
238 |
+ $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die |
239 |
+ # Run in subshell to prevent "Aborted" message |
240 |
+ ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
241 |
+ if ! eend $?; then |
242 |
+ eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
243 |
+ eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
244 |
+ eerror "or use gcc-config to select a different compiler version." |
245 |
+ eerror "See https://bugs.gentoo.org/549768" |
246 |
+ eerror |
247 |
+ return 1 |
248 |
+ fi |
249 |
+ fi |
250 |
+ # bug #574044 |
251 |
+ if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
252 |
+ ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
253 |
+ # Compile in subshell to prevent "Aborted" message |
254 |
+ ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 ) >/dev/null 2>&1 |
255 |
+ if ! eend $?; then |
256 |
+ eerror "Wine cannot be built with this version of gcc-5.3" |
257 |
+ eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
258 |
+ eerror "or use gcc-config to select a different compiler version." |
259 |
+ eerror "See https://bugs.gentoo.org/574044" |
260 |
+ eerror |
261 |
+ return 1 |
262 |
+ fi |
263 |
+ fi |
264 |
+ fi |
265 |
+ |
266 |
+ # Ensure compiler support |
267 |
+ if use abi_x86_64; then |
268 |
+ ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
269 |
+ # Compile in subshell to prevent "Aborted" message |
270 |
+ ( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
271 |
+ if ! eend $?; then |
272 |
+ eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
273 |
+ eerror |
274 |
+ eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
275 |
+ eerror |
276 |
+ return 1 |
277 |
+ fi |
278 |
+ fi |
279 |
+} |
280 |
+ |
281 |
+wine_build_environment_check() { |
282 |
+ [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
283 |
+ |
284 |
+ if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
285 |
+ eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
286 |
+ eerror "See https://bugs.gentoo.org/487864 for more details." |
287 |
+ eerror |
288 |
+ return 1 |
289 |
+ fi |
290 |
+} |
291 |
+ |
292 |
+wine_env_vcs_vars() { |
293 |
+ local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
294 |
+ local pn_live_val="${pn_live_var}" |
295 |
+ eval pn_live_val='$'${pn_live_val} |
296 |
+ if [[ ! -z ${pn_live_val} ]]; then |
297 |
+ if use staging || use d3d9; then |
298 |
+ eerror "Because of the multi-repo nature of ${PN}, ${pn_live_var}" |
299 |
+ eerror "cannot be used to set the commit. Instead, you may use the" |
300 |
+ eerror "environmental variables WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT." |
301 |
+ eerror |
302 |
+ return 1 |
303 |
+ fi |
304 |
+ fi |
305 |
+ if [[ ! -z ${EGIT_COMMIT} ]]; then |
306 |
+ eerror "Commits must now be specified using the environmental variables" |
307 |
+ eerror "WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT" |
308 |
+ eerror |
309 |
+ return 1 |
310 |
+ fi |
311 |
+} |
312 |
+ |
313 |
+pkg_pretend() { |
314 |
+ wine_compiler_check || die |
315 |
+ wine_build_environment_check || die |
316 |
+ |
317 |
+ # Verify OSS support |
318 |
+ if use oss && ! use kernel_FreeBSD; then |
319 |
+ if ! has_version ">=media-sound/oss-4"; then |
320 |
+ eerror "You cannot build wine with USE=oss without having support from a" |
321 |
+ eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)" |
322 |
+ eerror |
323 |
+ die |
324 |
+ fi |
325 |
+ fi |
326 |
+} |
327 |
+ |
328 |
+pkg_setup() { |
329 |
+ wine_build_environment_check || die |
330 |
+ wine_env_vcs_vars || die |
331 |
+ if ! use staging; then |
332 |
+ GV=${VANILLA_GV} |
333 |
+ MV=${VANILLA_MV} |
334 |
+ else |
335 |
+ GV=${STAGING_GV} |
336 |
+ MV=${STAGING_MV} |
337 |
+ fi |
338 |
+} |
339 |
+ |
340 |
+src_unpack() { |
341 |
+ if [[ ${PV} == "9999" ]] ; then |
342 |
+ EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack |
343 |
+ if use staging; then |
344 |
+ local CURRENT_WINE_COMMIT=${EGIT_VERSION} |
345 |
+ |
346 |
+ git-r3_fetch "${STAGING_EGIT_REPO_URI}" "${STAGING_COMMIT}" |
347 |
+ git-r3_checkout "${STAGING_EGIT_REPO_URI}" "${STAGING_DIR}" |
348 |
+ |
349 |
+ local COMPAT_WINE_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die |
350 |
+ |
351 |
+ if [[ "${CURRENT_WINE_COMMIT}" != "${COMPAT_WINE_COMMIT}" ]]; then |
352 |
+ einfo "The current Staging patchset is not guaranteed to apply on this WINE commit." |
353 |
+ einfo "If src_prepare fails, try emerging with the env var EGIT_COMMIT." |
354 |
+ einfo "Example: WINE_COMMIT=${COMPAT_WINE_COMMIT} emerge -1 wine" |
355 |
+ fi |
356 |
+ fi |
357 |
+ fi |
358 |
+ |
359 |
+ default |
360 |
+ |
361 |
+ l10n_find_plocales_changes "${S}/po" "" ".po" |
362 |
+} |
363 |
+ |
364 |
+src_prepare() { |
365 |
+ local md5="$(md5sum server/protocol.def)" |
366 |
+ local PATCHES=( |
367 |
+ "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 |
368 |
+ "${FILESDIR}"/${PN}-1.9.5-multilib-portage.patch #395615 |
369 |
+ "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 |
370 |
+ "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 |
371 |
+ "${WORKDIR}/${GST_P}.patch" |
372 |
+ ) |
373 |
+ if use staging; then |
374 |
+ ewarn "Applying the Wine-Staging patchset. Any bug reports to the" |
375 |
+ ewarn "Wine bugzilla should explicitly state that staging was used." |
376 |
+ |
377 |
+ local STAGING_EXCLUDE="" |
378 |
+ use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight" |
379 |
+ |
380 |
+ # Launch wine-staging patcher in a subshell, using eapply as a backend, and gitapply.sh as a backend for binary patches |
381 |
+ ebegin "Running Wine-Staging patch installer" |
382 |
+ ( |
383 |
+ set -- DESTDIR="${S}" --backend=eapply --no-autoconf --all ${STAGING_EXCLUDE} |
384 |
+ cd "${STAGING_DIR}/patches" |
385 |
+ source "${STAGING_DIR}/patches/patchinstall.sh" |
386 |
+ ) |
387 |
+ eend $? || die "Failed to apply Wine-Staging patches" |
388 |
+ |
389 |
+ # To differentiate unofficial staging releases |
390 |
+ if [[ ! -z ${SUFFIX} ]]; then |
391 |
+ sed -i "s/(Staging)/(Staging [Unofficial])/" libs/wine/Makefile.in || die |
392 |
+ fi |
393 |
+ fi |
394 |
+ |
395 |
+ default |
396 |
+ eautoreconf |
397 |
+ |
398 |
+ # Modification of the server protocol requires regenerating the server requests |
399 |
+ if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
400 |
+ einfo "server/protocol.def was patched; running tools/make_requests" |
401 |
+ tools/make_requests || die #432348 |
402 |
+ fi |
403 |
+ sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
404 |
+ if ! use run-exes; then |
405 |
+ sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
406 |
+ fi |
407 |
+ |
408 |
+ # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652 |
409 |
+ cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die |
410 |
+ |
411 |
+ l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
412 |
+} |
413 |
+ |
414 |
+src_configure() { |
415 |
+ export LDCONFIG=/bin/true |
416 |
+ use custom-cflags || strip-flags |
417 |
+ |
418 |
+ multilib-minimal_src_configure |
419 |
+} |
420 |
+ |
421 |
+multilib_src_configure() { |
422 |
+ local myconf=( |
423 |
+ --sysconfdir=/etc/wine |
424 |
+ $(use_with alsa) |
425 |
+ $(use_with capi) |
426 |
+ $(use_with lcms cms) |
427 |
+ $(use_with cups) |
428 |
+ $(use_with ncurses curses) |
429 |
+ $(use_with udisks dbus) |
430 |
+ $(use_with fontconfig) |
431 |
+ $(use_with ssl gnutls) |
432 |
+ $(use_enable gecko mshtml) |
433 |
+ $(use_with gphoto2 gphoto) |
434 |
+ $(use_with gsm) |
435 |
+ $(use_with gstreamer) |
436 |
+ --without-hal |
437 |
+ $(use_with jpeg) |
438 |
+ $(use_with ldap) |
439 |
+ $(use_enable mono mscoree) |
440 |
+ $(use_with mp3 mpg123) |
441 |
+ $(use_with netapi) |
442 |
+ $(use_with nls gettext) |
443 |
+ $(use_with openal) |
444 |
+ $(use_with opencl) |
445 |
+ $(use_with opengl) |
446 |
+ $(use_with osmesa) |
447 |
+ $(use_with oss) |
448 |
+ $(use_with pcap) |
449 |
+ $(use_with png) |
450 |
+ $(use_with pulseaudio pulse) |
451 |
+ $(use_with threads pthread) |
452 |
+ $(use_with scanner sane) |
453 |
+ $(use_enable test tests) |
454 |
+ $(use_with truetype freetype) |
455 |
+ $(use_with v4l) |
456 |
+ $(use_with X x) |
457 |
+ $(use_with xcomposite) |
458 |
+ $(use_with xinerama) |
459 |
+ $(use_with xml) |
460 |
+ $(use_with xml xslt) |
461 |
+ ) |
462 |
+ |
463 |
+ use staging && myconf+=( |
464 |
+ --with-xattr |
465 |
+ $(use_with themes gtk3) |
466 |
+ $(use_with vaapi va) |
467 |
+ ) |
468 |
+ |
469 |
+ local PKG_CONFIG AR RANLIB |
470 |
+ # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
471 |
+ # set AR and RANLIB to make QA scripts happy; #483342 |
472 |
+ tc-export PKG_CONFIG AR RANLIB |
473 |
+ |
474 |
+ if use amd64; then |
475 |
+ if [[ ${ABI} == amd64 ]]; then |
476 |
+ myconf+=( --enable-win64 ) |
477 |
+ else |
478 |
+ myconf+=( --disable-win64 ) |
479 |
+ fi |
480 |
+ |
481 |
+ # Note: using --with-wine64 results in problems with multilib.eclass |
482 |
+ # CC/LD hackery. We're using separate tools instead. |
483 |
+ fi |
484 |
+ |
485 |
+ ECONF_SOURCE=${S} \ |
486 |
+ econf "${myconf[@]}" |
487 |
+ emake depend |
488 |
+} |
489 |
+ |
490 |
+multilib_src_test() { |
491 |
+ # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
492 |
+ if [[ ${ABI} == x86 ]]; then |
493 |
+ if [[ $(id -u) == 0 ]]; then |
494 |
+ ewarn "Skipping tests since they cannot be run under the root user." |
495 |
+ ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" |
496 |
+ return |
497 |
+ fi |
498 |
+ |
499 |
+ WINEPREFIX="${T}/.wine-${ABI}" \ |
500 |
+ Xemake test |
501 |
+ fi |
502 |
+} |
503 |
+ |
504 |
+multilib_src_install_all() { |
505 |
+ local DOCS=( ANNOUNCE AUTHORS README ) |
506 |
+ local l |
507 |
+ add_locale_docs() { |
508 |
+ local locale_doc="documentation/README.$1" |
509 |
+ [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
510 |
+ } |
511 |
+ l10n_for_each_locale_do add_locale_docs |
512 |
+ |
513 |
+ einstalldocs |
514 |
+ prune_libtool_files --all |
515 |
+ |
516 |
+ emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" |
517 |
+ if use gecko ; then |
518 |
+ insinto /usr/share/wine/gecko |
519 |
+ use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
520 |
+ use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
521 |
+ fi |
522 |
+ if use mono ; then |
523 |
+ insinto /usr/share/wine/mono |
524 |
+ doins "${DISTDIR}"/wine-mono-${MV}.msi |
525 |
+ fi |
526 |
+ if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
527 |
+ rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
528 |
+ fi |
529 |
+ |
530 |
+ # Remove wineconsole if neither backend is installed #551124 |
531 |
+ if ! use X && ! use ncurses; then |
532 |
+ rm "${D}"/usr/{bin/,man/man1/}wineconsole* || die |
533 |
+ use abi_x86_32 && rm "${D}"/usr/lib32/wine/{,fakedlls/}wineconsole.exe* || die |
534 |
+ use abi_x86_64 && rm "${D}"/usr/lib64/wine/{,fakedlls/}wineconsole.exe* || die |
535 |
+ fi |
536 |
+ |
537 |
+ use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
538 |
+ use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
539 |
+ |
540 |
+ if use abi_x86_64 && ! use abi_x86_32; then |
541 |
+ dosym /usr/bin/wine{64,} # 404331 |
542 |
+ dosym /usr/bin/wine{64,}-preloader |
543 |
+ fi |
544 |
+ |
545 |
+ # respect LINGUAS when installing man pages, #469418 |
546 |
+ for l in de fr pl; do |
547 |
+ use linguas_${l} || rm -r "${D}"usr/share/man/${l}* |
548 |
+ done |
549 |
+} |
550 |
+ |
551 |
+pkg_preinst() { |
552 |
+ gnome2_icon_savelist |
553 |
+} |
554 |
+ |
555 |
+pkg_postinst() { |
556 |
+ gnome2_icon_cache_update |
557 |
+ fdo-mime_desktop_database_update |
558 |
+ |
559 |
+ if ! use gecko; then |
560 |
+ ewarn "Without Wine Gecko, wine prefixes will not have a default" |
561 |
+ ewarn "implementation of iexplore. Many older windows applications" |
562 |
+ ewarn "rely upon the existence of an iexplore implementation, so" |
563 |
+ ewarn "you will likely need to install an external one, like via winetricks" |
564 |
+ fi |
565 |
+ if ! use mono; then |
566 |
+ ewarn "Without Wine Mono, wine prefixes will not have a default" |
567 |
+ ewarn "implementation of .NET. Many windows applications rely upon" |
568 |
+ ewarn "the existence of a .NET implementation, so you will likely need" |
569 |
+ ewarn "to install an external one, like via winetricks" |
570 |
+ fi |
571 |
+ |
572 |
+ if use gstreamer; then |
573 |
+ ewarn "This package uses a Gentoo specific patchset to provide" |
574 |
+ ewarn "GStreamer 1.0 support. Any bugs related to GStreamer should" |
575 |
+ ewarn "be filed at Gentoo's bugzilla, not upstream's." |
576 |
+ fi |
577 |
+} |
578 |
+ |
579 |
+pkg_postrm() { |
580 |
+ gnome2_icon_cache_update |
581 |
+ fdo-mime_desktop_database_update |
582 |
+} |