Gentoo Archives: gentoo-commits

From: NP Hardass <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/wine/
Date: Sat, 31 Dec 2016 02:24:01
Message-Id: 1483151014.92eb4fb736d01a8af3757cc23e89cc68453f7ca3.np-hardass@gentoo
1 commit: 92eb4fb736d01a8af3757cc23e89cc68453f7ca3
2 Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 22:50:29 2016 +0000
4 Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 31 02:23:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92eb4fb7
7
8 app-emulation/wine: Version bump to 1.9.21
9
10 Package-Manager: portage-2.3.0
11
12 app-emulation/wine/Manifest | 3 +
13 app-emulation/wine/wine-1.9.21.ebuild | 558 ++++++++++++++++++++++++++++++++++
14 2 files changed, 561 insertions(+)
15
16 diff --git a/app-emulation/wine/Manifest b/app-emulation/wine/Manifest
17 index acbf5e8..1d87e53 100644
18 --- a/app-emulation/wine/Manifest
19 +++ b/app-emulation/wine/Manifest
20 @@ -15,6 +15,7 @@ DIST wine-1.9.17.tar.bz2 23440011 SHA256 6e1ee9dc2f3a11d529dc0133c4c0afb9e6e5440
21 DIST wine-1.9.18.tar.bz2 23473716 SHA256 26614baa0daac5a0953c04590f187559e5edc314cb34491322f280b34f3268d8 SHA512 fc8ccf844c5913bb9e351f244cf6ec610caabc9513761b140b129e70a56265133a0cbc7b585bf83b028421f29c5ddc0885abfc98cd9a2dc2b0863d6dbb9b59ee WHIRLPOOL 9894a3ee903e39a665b2d4a06ad46708006c4ef9d28074b0d0dbe342186d0ad307b3d41810cc1e6d370fe003ada6ef52d70e568efd85b4b36d4d686f55df3540
22 DIST wine-1.9.19.tar.bz2 23526483 SHA256 b5fe29a84e712f94f4d33b5f2952b45233c13b49ba3459dcee8a50b06147a888 SHA512 f5f60579efd13b6bc44aebc0e7c06fea8e1c0e2bb86582ca3fd189d122224d9d587c7a49833e6227a00444b4616ed02c747020557b3f847737e3e187bc8cc2c9 WHIRLPOOL f1134f186fa17ee7fb28fba28fb35a8d26337b53e532b30e997db336739220ac186de4a8c6dfaa4653f3dbde1cf53f24a4ac8bd3fc58c01ec5529699c3116934
23 DIST wine-1.9.20.tar.bz2 23555024 SHA256 2769f30642329916f12696f7be225644d28fc54d1b9181c979381d70b9a279df SHA512 31841298104592eb615e0a3d70b06b69b5226f8c2b8865e639407399d8a19e20527779d76fe08fb913f6114c4908401f7efa9cfa56fc3360b832c30cc523e764 WHIRLPOOL 3a9fcdf8436f41c863e282b464132bda4ac73e2b0da4e995e93946400e819aa1b432dc7e845b820d1ffd995f6fe054878012323585e8d56186ac8b9e36f6047a
24 +DIST wine-1.9.21.tar.bz2 23561191 SHA256 8b6dd027021be9dd646d65bd19c0334c36dcf9403d8ed4a6e9460b6703efade1 SHA512 0449dd56907900a963a0c70dfb86e189a3edd5ae6b04a64a3d56af2155777c78c56b51ae67d7b97f796f65d731b0ac168555efda3609a6357eefbe537eb20bfa WHIRLPOOL ce593cc6a55482e25c29d43cb1c9dc6e18ed5335e88d2509edcc2c7b4ad7947b29c330e1154a58c88f7207f8d4fa4bb4cc49e8b4c1bb42a805e73238a9156627
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 @@ -32,6 +33,7 @@ DIST wine-d3d9-1.9.17.tar.gz 46417 SHA256 6663f76c27d5507269d094f6d86d995efdfa8a
29 DIST wine-d3d9-1.9.18.tar.gz 50653 SHA256 7cf523ca7f36ecd4be2dd1f0d491d7bd4911a7a36781af78a5b4f735ab58cb23 SHA512 5fcb07349f16f975d50ee6fd0da6cb1943a348707a3bf29ba4dc914d63fab78f506ea7a86696bbb42b57cca6fcfedaf062925ef3b0447745764465b1491bb7e6 WHIRLPOOL b415ad483cbef12abe565ae8de62ce90f44fedfeabd6df88451788781ca6e8577b696c56de915addbc970b3061b3b4fe661660f69dac1ed2059bfe57e42c58f7
30 DIST wine-d3d9-1.9.19.tar.gz 51406 SHA256 59c872728c5dc77d5b5a4ec2fb2965174f1317cf7650ae64ce8b5fa90d73b56e SHA512 e9d7207ccbce6849fc1e6dae1d10b94a74b391348b4792ad5440687e6670d11d17b883ba024fe2d93cbde362b44e4bf01196b36c68763c72750e51a6ec5e9d99 WHIRLPOOL 45bf7947f7d78b0666be79f535087fd2b431ac646b45c66cebc2b6eff42d8b0f7c69249d1b105334959712ad881b841ff4ddf56cf17b5e6b2aa1b8c645e9b9a5
31 DIST wine-d3d9-1.9.20.tar.gz 51410 SHA256 a16f57dd755c8a5ddfaa2f573b2b72a397afa459ff2df4a884ea9b6fe3d5756e SHA512 8214ec5b621f18aba7fc97d6323bf1fdcece106ae05c9343092c22777f2735aae89df72e35d4ab032fc30d4c4d88daa9dc27bb2b50d8fb9fa094c509f8329a2a WHIRLPOOL 83c3ca85bf865d8ff55d84890a9a5c3be1ed5bfd3050c0dea9dc77425162bd70298097ff58bf0cbb9791cbfef37e9b0a5276c95bed29fa668d53a3338b9d4b50
32 +DIST wine-d3d9-1.9.21.tar.gz 51414 SHA256 47d0b9cb01056aff44789a3b3e396eec9da4d211d0a9563a248f52a0cad33310 SHA512 b59c0ddd1c4e1ca8526e81dd81301d363a8106c2a3cfdea2b6b5a9d5f91f8462669ca104c300cb36f83f8b227fc6107ef15ae28d522eeaabdfc6e9813e301b41 WHIRLPOOL 3b83d943f6178a032a43abceb067ac34d574f0b2d1178be9d2115766959305e5dbff68382ac958ca7c5bd28f5d0940632543d955111c1e88f85b2e6f9ced7514
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 @@ -54,6 +56,7 @@ DIST wine-staging-1.9.17.tar.gz 9920187 SHA256 74c1263f978e08bb8d53806a384ae4cac
37 DIST wine-staging-1.9.18.tar.gz 9952730 SHA256 eac41973864486662bc42c8a5692f20a83f9bf6dc65b94d290847bd31e24ac48 SHA512 572ea2c4944f00374ab731ec16596e50149abd4adfb3596d5127d1459d09f6cc1814f98fd09306c3cf4ff0cd24be068f83cc32ed8a2bb1af439e8408e72dd7eb WHIRLPOOL e9e0f7120508f64d41e23a5015ca12a102a1250f87c81cb6d5bbe893301db1a0918eee187f8dad43d8950cc5113552ee2fbeb9ca0ca46411bab926a64295b989
38 DIST wine-staging-1.9.19.tar.gz 9969031 SHA256 2060ba8f26512fc2104d1d15b7d36136d55e600c9576bc6d747e610e1f3d28d9 SHA512 a0c47b46102d66ae040199aae9fe6dc8cb3986f79dcc32faeb1638e747ad92bfbee337290801c6372177b1a36c4f511ae3af7668730e0f526dfa5d4d64bcfe55 WHIRLPOOL 37fd27c8eea783c24d2f9736f9f90fa29e7796e7f86ffd7dfedb18375c3421f055f4f5685cbe24f83b907bfdc6de562860a15c01f0c9fc1f289640749cb25d11
39 DIST wine-staging-1.9.20.tar.gz 9979675 SHA256 201506a3e58fd46b590cfc2f9f70d2e3ba6d3bcff5640da135cee9118e71babc SHA512 025760f9a4e0b94264da54b255be4932076535b6a1510121d8019c8fb8edf33768b23575e321ab9715a8186a7f4b7e4cd7aa573ed1af4c3ea7c919b7287ce42b WHIRLPOOL 93b9274c10f74f1e4b9c290a4055fc55ee2391f0eb9a0c1b18e4e54266f8d6e04e0a3d8cc9376d2d871e3d1d15942521ea9a6ad1c91d9801c117a0397edcafbf
40 +DIST wine-staging-1.9.21.tar.gz 10007408 SHA256 88fd8263ba3c13c18423298c49a83d8922e5b45b4797edcd8723aa5d855ce84f SHA512 4144c7f485ac57573b9ab17d3eff307c8343b9226ddc156538a3d6ae141f7c9d9515276ee3f4dfaba388b8dee6579c382861a87883ab92638907b663fcd1e3e7 WHIRLPOOL 5b2a1893e03537c66de6c9296aa54cd0afc515f2a8cb9180c805dc2318a20c51a7efa659880af70150acd053815d27c5293a70cffbb8b5e10a7f3cb723c183f1
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.21.ebuild b/app-emulation/wine/wine-1.9.21.ebuild
46 new file mode 100644
47 index 00000000..5eba6e1
48 --- /dev/null
49 +++ b/app-emulation/wine/wine-1.9.21.ebuild
50 @@ -0,0 +1,558 @@
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 udev +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 + udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
181 + udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
182 + v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
183 + vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
184 + xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
185 + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
186 + xml? (
187 + dev-libs/libxml2[${MULTILIB_USEDEP}]
188 + dev-libs/libxslt[${MULTILIB_USEDEP}]
189 + )
190 + abi_x86_32? (
191 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
192 + !<app-emulation/emul-linux-x86-baselibs-20140508-r14
193 + !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
194 + !<app-emulation/emul-linux-x86-db-20140508-r3
195 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
196 + !<app-emulation/emul-linux-x86-medialibs-20140508-r6
197 + !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
198 + !<app-emulation/emul-linux-x86-opengl-20140508-r1
199 + !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
200 + !<app-emulation/emul-linux-x86-sdl-20140508-r1
201 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
202 + !<app-emulation/emul-linux-x86-soundlibs-20140508
203 + !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
204 + !<app-emulation/emul-linux-x86-xlibs-20140508
205 + )"
206 +
207 +RDEPEND="${COMMON_DEPEND}
208 + dos? ( >=games-emulation/dosbox-0.74_p20160629 )
209 + perl? (
210 + dev-lang/perl
211 + dev-perl/XML-Simple
212 + )
213 + pulseaudio? (
214 + realtime? ( sys-auth/rtkit )
215 + )
216 + s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
217 + samba? ( >=net-fs/samba-3.0.25[winbind] )
218 + selinux? ( sec-policy/selinux-wine )
219 + udisks? ( sys-fs/udisks:2 )"
220 +
221 +# tools/make_requests requires perl
222 +DEPEND="${COMMON_DEPEND}
223 + sys-devel/flex
224 + >=sys-kernel/linux-headers-2.6
225 + virtual/pkgconfig
226 + virtual/yacc
227 + X? (
228 + x11-proto/inputproto
229 + x11-proto/xextproto
230 + x11-proto/xf86vidmodeproto
231 + )
232 + prelink? ( sys-devel/prelink )
233 + staging? (
234 + dev-lang/perl
235 + dev-perl/XML-Simple
236 + )
237 + xinerama? ( x11-proto/xineramaproto )"
238 +
239 +# These use a non-standard "Wine" category, which is provided by
240 +# /etc/xdg/applications-merged/wine.menu
241 +QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
242 +usr/share/applications/wine-notepad.desktop
243 +usr/share/applications/wine-uninstaller.desktop
244 +usr/share/applications/wine-winecfg.desktop"
245 +
246 +wine_compiler_check() {
247 + [[ ${MERGE_TYPE} = "binary" ]] && return 0
248 +
249 + # GCC-specific bugs
250 + if tc-is-gcc; then
251 + # bug #549768
252 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
253 + ebegin "Checking for gcc-5 ms_abi compiler bug"
254 + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
255 + # Run in subshell to prevent "Aborted" message
256 + ( "${T}"/pr66838 || false ) >/dev/null 2>&1
257 + if ! eend $?; then
258 + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
259 + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
260 + eerror "or use gcc-config to select a different compiler version."
261 + eerror "See https://bugs.gentoo.org/549768"
262 + eerror
263 + return 1
264 + fi
265 + fi
266 + # bug #574044
267 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
268 + ebegin "Checking for gcc-5-3 stack realignment compiler bug"
269 + # Compile in subshell to prevent "Aborted" message
270 + ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 ) >/dev/null 2>&1
271 + if ! eend $?; then
272 + eerror "Wine cannot be built with this version of gcc-5.3"
273 + eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
274 + eerror "or use gcc-config to select a different compiler version."
275 + eerror "See https://bugs.gentoo.org/574044"
276 + eerror
277 + return 1
278 + fi
279 + fi
280 + fi
281 +
282 + # Ensure compiler support
283 + if use abi_x86_64; then
284 + ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
285 + # Compile in subshell to prevent "Aborted" message
286 + ( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
287 + if ! eend $?; then
288 + eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
289 + eerror
290 + eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
291 + eerror
292 + return 1
293 + fi
294 + fi
295 +}
296 +
297 +wine_build_environment_check() {
298 + [[ ${MERGE_TYPE} = "binary" ]] && return 0
299 +
300 + if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
301 + eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
302 + eerror "See https://bugs.gentoo.org/487864 for more details."
303 + eerror
304 + return 1
305 + fi
306 +}
307 +
308 +wine_env_vcs_vars() {
309 + local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
310 + local pn_live_val="${pn_live_var}"
311 + eval pn_live_val='$'${pn_live_val}
312 + if [[ ! -z ${pn_live_val} ]]; then
313 + if use staging || use d3d9; then
314 + eerror "Because of the multi-repo nature of ${PN}, ${pn_live_var}"
315 + eerror "cannot be used to set the commit. Instead, you may use the"
316 + eerror "environmental variables WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT."
317 + eerror
318 + return 1
319 + fi
320 + fi
321 + if [[ ! -z ${EGIT_COMMIT} ]]; then
322 + eerror "Commits must now be specified using the environmental variables"
323 + eerror "WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT"
324 + eerror
325 + return 1
326 + fi
327 +}
328 +
329 +pkg_pretend() {
330 + wine_compiler_check || die
331 + wine_build_environment_check || die
332 +
333 + # Verify OSS support
334 + if use oss && ! use kernel_FreeBSD; then
335 + if ! has_version ">=media-sound/oss-4"; then
336 + eerror "You cannot build wine with USE=oss without having support from a"
337 + eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
338 + eerror
339 + die
340 + fi
341 + fi
342 +}
343 +
344 +pkg_setup() {
345 + wine_build_environment_check || die
346 + wine_env_vcs_vars || die
347 + if ! use staging; then
348 + GV=${VANILLA_GV}
349 + MV=${VANILLA_MV}
350 + else
351 + GV=${STAGING_GV}
352 + MV=${STAGING_MV}
353 + fi
354 +}
355 +
356 +src_unpack() {
357 + if [[ ${PV} == "9999" ]] ; then
358 + EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack
359 + if use staging; then
360 + local CURRENT_WINE_COMMIT=${EGIT_VERSION}
361 +
362 + git-r3_fetch "${STAGING_EGIT_REPO_URI}" "${STAGING_COMMIT}"
363 + git-r3_checkout "${STAGING_EGIT_REPO_URI}" "${STAGING_DIR}"
364 +
365 + local COMPAT_WINE_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die
366 +
367 + if [[ "${CURRENT_WINE_COMMIT}" != "${COMPAT_WINE_COMMIT}" ]]; then
368 + einfo "The current Staging patchset is not guaranteed to apply on this WINE commit."
369 + einfo "If src_prepare fails, try emerging with the env var WINE_COMMIT."
370 + einfo "Example: WINE_COMMIT=${COMPAT_WINE_COMMIT} emerge -1 wine"
371 + fi
372 + fi
373 + if use d3d9; then
374 + git-r3_fetch "${D3D9_EGIT_REPO_URI}" "${D3D9_COMMIT}"
375 + git-r3_checkout "${D3D9_EGIT_REPO_URI}" "${D3D9_DIR}"
376 + fi
377 + fi
378 +
379 + default
380 +
381 + l10n_find_plocales_changes "${S}/po" "" ".po"
382 +}
383 +
384 +src_prepare() {
385 + local md5="$(md5sum server/protocol.def)"
386 + local PATCHES=(
387 + "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
388 + "${FILESDIR}"/${PN}-1.9.5-multilib-portage.patch #395615
389 + "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
390 + "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
391 + )
392 + if use staging; then
393 + ewarn "Applying the Wine-Staging patchset. Any bug reports to the"
394 + ewarn "Wine bugzilla should explicitly state that staging was used."
395 +
396 + local STAGING_EXCLUDE=""
397 + use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
398 +
399 + # Launch wine-staging patcher in a subshell, using eapply as a backend, and gitapply.sh as a backend for binary patches
400 + ebegin "Running Wine-Staging patch installer"
401 + (
402 + set -- DESTDIR="${S}" --backend=eapply --no-autoconf --all ${STAGING_EXCLUDE}
403 + cd "${STAGING_DIR}/patches"
404 + source "${STAGING_DIR}/patches/patchinstall.sh"
405 + )
406 + eend $? || die "Failed to apply Wine-Staging patches"
407 +
408 + # To differentiate unofficial staging releases
409 + if [[ ! -z ${SUFFIX} ]]; then
410 + sed -i "s/(Staging)/(Staging [Unofficial])/" libs/wine/Makefile.in || die
411 + fi
412 + fi
413 + if use d3d9; then
414 + if use staging; then
415 + PATCHES+=( "${D3D9_DIR}/staging-helper.patch" )
416 + else
417 + PATCHES+=( "${D3D9_DIR}/d3d9-helper.patch" )
418 + fi
419 + PATCHES+=( "${D3D9_DIR}/wine-d3d9.patch" )
420 + fi
421 +
422 + default
423 + eautoreconf
424 +
425 + # Modification of the server protocol requires regenerating the server requests
426 + if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
427 + einfo "server/protocol.def was patched; running tools/make_requests"
428 + tools/make_requests || die #432348
429 + fi
430 + sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
431 + if ! use run-exes; then
432 + sed -i '/^MimeType/d' loader/wine.desktop || die #117785
433 + fi
434 +
435 + # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
436 + cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
437 +
438 + l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
439 +}
440 +
441 +src_configure() {
442 + export LDCONFIG=/bin/true
443 + use custom-cflags || strip-flags
444 +
445 + multilib-minimal_src_configure
446 +}
447 +
448 +multilib_src_configure() {
449 + local myconf=(
450 + --sysconfdir=/etc/wine
451 + $(use_with alsa)
452 + $(use_with capi)
453 + $(use_with lcms cms)
454 + $(use_with cups)
455 + $(use_with ncurses curses)
456 + $(use_with udisks dbus)
457 + $(use_with fontconfig)
458 + $(use_with ssl gnutls)
459 + $(use_enable gecko mshtml)
460 + $(use_with gphoto2 gphoto)
461 + $(use_with gsm)
462 + $(use_with gstreamer)
463 + --without-hal
464 + $(use_with jpeg)
465 + $(use_with ldap)
466 + $(use_enable mono mscoree)
467 + $(use_with mp3 mpg123)
468 + $(use_with netapi)
469 + $(use_with nls gettext)
470 + $(use_with openal)
471 + $(use_with opencl)
472 + $(use_with opengl)
473 + $(use_with osmesa)
474 + $(use_with oss)
475 + $(use_with pcap)
476 + $(use_with png)
477 + $(use_with pulseaudio pulse)
478 + $(use_with threads pthread)
479 + $(use_with scanner sane)
480 + $(use_enable test tests)
481 + $(use_with truetype freetype)
482 + $(use_with udev)
483 + $(use_with v4l)
484 + $(use_with X x)
485 + $(use_with xcomposite)
486 + $(use_with xinerama)
487 + $(use_with xml)
488 + $(use_with xml xslt)
489 + )
490 +
491 + use staging && myconf+=(
492 + --with-xattr
493 + $(use_with themes gtk3)
494 + $(use_with vaapi va)
495 + )
496 + use d3d9 && myconf+=( $(use_with d3d9 d3d9-nine) )
497 +
498 + local PKG_CONFIG AR RANLIB
499 + # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
500 + # set AR and RANLIB to make QA scripts happy; #483342
501 + tc-export PKG_CONFIG AR RANLIB
502 +
503 + if use amd64; then
504 + if [[ ${ABI} == amd64 ]]; then
505 + myconf+=( --enable-win64 )
506 + else
507 + myconf+=( --disable-win64 )
508 + fi
509 +
510 + # Note: using --with-wine64 results in problems with multilib.eclass
511 + # CC/LD hackery. We're using separate tools instead.
512 + fi
513 +
514 + ECONF_SOURCE=${S} \
515 + econf "${myconf[@]}"
516 + emake depend
517 +}
518 +
519 +multilib_src_test() {
520 + # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
521 + if [[ ${ABI} == x86 ]]; then
522 + if [[ $(id -u) == 0 ]]; then
523 + ewarn "Skipping tests since they cannot be run under the root user."
524 + ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
525 + return
526 + fi
527 +
528 + WINEPREFIX="${T}/.wine-${ABI}" \
529 + Xemake test
530 + fi
531 +}
532 +
533 +multilib_src_install_all() {
534 + local DOCS=( ANNOUNCE AUTHORS README )
535 + local l
536 + add_locale_docs() {
537 + local locale_doc="documentation/README.$1"
538 + [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
539 + }
540 + l10n_for_each_locale_do add_locale_docs
541 +
542 + einstalldocs
543 + prune_libtool_files --all
544 +
545 + emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
546 + if use gecko ; then
547 + insinto /usr/share/wine/gecko
548 + use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
549 + use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
550 + fi
551 + if use mono ; then
552 + insinto /usr/share/wine/mono
553 + doins "${DISTDIR}"/wine-mono-${MV}.msi
554 + fi
555 + if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
556 + rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
557 + fi
558 +
559 + # Remove wineconsole if neither backend is installed #551124
560 + if ! use X && ! use ncurses; then
561 + rm "${D}"/usr/bin/wineconsole* || die
562 + rm "${D}"/usr/share/man/man1/wineconsole* || die
563 + rm_wineconsole() {
564 + rm "${D}usr/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
565 + }
566 + multilib_foreach_abi rm_wineconsole
567 + fi
568 +
569 + use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
570 + use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
571 +
572 + if use abi_x86_64 && ! use abi_x86_32; then
573 + dosym /usr/bin/wine{64,} # 404331
574 + dosym /usr/bin/wine{64,}-preloader
575 + fi
576 +
577 + # respect LINGUAS when installing man pages, #469418
578 + for l in de fr pl; do
579 + use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
580 + done
581 +}
582 +
583 +pkg_preinst() {
584 + gnome2_icon_savelist
585 +}
586 +
587 +pkg_postinst() {
588 + gnome2_icon_cache_update
589 + fdo-mime_desktop_database_update
590 +
591 + if ! use gecko; then
592 + ewarn "Without Wine Gecko, wine prefixes will not have a default"
593 + ewarn "implementation of iexplore. Many older windows applications"
594 + ewarn "rely upon the existence of an iexplore implementation, so"
595 + ewarn "you will likely need to install an external one, like via winetricks"
596 + fi
597 + if ! use mono; then
598 + ewarn "Without Wine Mono, wine prefixes will not have a default"
599 + ewarn "implementation of .NET. Many windows applications rely upon"
600 + ewarn "the existence of a .NET implementation, so you will likely need"
601 + ewarn "to install an external one, like via winetricks"
602 + fi
603 +}
604 +
605 +pkg_postrm() {
606 + gnome2_icon_cache_update
607 + fdo-mime_desktop_database_update
608 +}