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