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: Wed, 01 Jun 2016 05:32:43
Message-Id: 1464758424.c57f01f4a84051c2e352345206dd75028b5ed4ce.np-hardass@gentoo
1 commit: c57f01f4a84051c2e352345206dd75028b5ed4ce
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 24 21:46:32 2016 +0000
4 Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 05:20:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c57f01f4
7
8 app-emulation/wine: Version bump to 1.9.10.
9
10 Package-Manager: portage-2.2.28
11
12 Signed-off-by: NP-Hardass <NP-Hardass <AT> gentoo.org>
13
14 app-emulation/wine/Manifest | 3 +
15 app-emulation/wine/wine-1.9.10.ebuild | 464 ++++++++++++++++++++++++++++++++++
16 2 files changed, 467 insertions(+)
17
18 diff --git a/app-emulation/wine/Manifest b/app-emulation/wine/Manifest
19 index 1b37794..17b748a 100644
20 --- a/app-emulation/wine/Manifest
21 +++ b/app-emulation/wine/Manifest
22 @@ -45,12 +45,14 @@ DIST wine-1.8-gstreamer-1.0.patch.bz2 30908 SHA256 00cc1e943e2dffb7d588bb5befd44
23 DIST wine-1.8.1.tar.bz2 22839063 SHA256 149ad3daaf8593b36c5c061285df0ec2a25e20ea48c61323be91088c4d22ca97 SHA512 e4cc3d00f28a616326f3069c7eeb94dc07759018b719bc37fe733b0f5e5d17f54ed2e877a964e9ea235362c49bf45bb3ec7072fba3d66648e6c7d55568e863cb WHIRLPOOL 8970d900c769add34a079f84c0562fca2d7e303ee9aa15de0fe2fde059de01256951c5ffeddb7b0a126599636e83d0d4ebdb8c0df5cde218fe8858e8b2451a0a
24 DIST wine-1.8.2.tar.bz2 22857786 SHA256 51624fadf0145e87f0c01e7ce8524ea1e8d9d360c3e8a86e78cd26a52ce55a6f SHA512 ed4883443b29c00409143932de40c543a65acfc01ce61f223e6ed852e6869d1936e5d6c1c3942335d2fb6c9ee923f6187ba9f3207af9900911c4258c0266a321 WHIRLPOOL 6e658ad3def7b3784753df00534ba67f6b634691a058e20bfefcf4dc44c126e5afc1789135b9e6925e1d79afa82d1c2c39ff696b6a0318d080774d829c5e978d
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.4.tar.bz2 22974777 SHA256 75c1eab6b980870b367a73db6e57eb0dc9242c2be8546f94084577a0ed0bbbb8 SHA512 e7b35290ec8f451163a08e841c559698a6b7264b320058e38ac788bdde66042efbb88511b30fa38383844425eaf0b6f4ed4b8412feb843ed405cb510a4a9000c WHIRLPOOL 875e11e9163df8c3473aa7b79deb5c6783a2068e678c4008cacf730d81c2f141490264a10f4345ceadd7aba100d3fc71bdfda7858f89d966d339cc2772cd8190
28 DIST wine-1.9.5.tar.bz2 23034629 SHA256 fb526308e7ac5e202c0f0b663d4c7a943419d9eec766af6831caf23914300f09 SHA512 cae779353bff61c215d0969288afe6e6e5192cdf0f86f8b15073861f0a22cb6b508ceb084e9b2cb5c5c658abfec5751edf9cb48930bc97c43ecbd6953427fc07 WHIRLPOOL 7f0c29b13b67660d364b2bbc86982a92f73409cfca3e8a31817c39df36d9ad476a9762f135d85fbb947746367277576a97fb6a012f346c11454c43ef75ac9fa7
29 DIST wine-1.9.6.tar.bz2 23071838 SHA256 3d2b862feefd89eca954c1cbc16a28e0ce851aeea1555bc1842ffc9aab2c1557 SHA512 d56d5b18a26b4902ac0138a4358f91a027f929a3ae70346e48b529eb7f09f7f1971bdae52d6a37dabbb598771ee5754b320e39c6ef26700202bf6be90b8b101b WHIRLPOOL 544ad527ceeb9339fd7fb35d847451dbdac79da6226cf15fb2c4be01eed3babe4c5e343236c5005553084ff83ce4e274305b5f91b2bf03a6a27d695c4ece280c
30 DIST wine-1.9.7.tar.bz2 23101883 SHA256 49705fe02505e26ef8022c662dda702cfcd5c4fd73886e00b43d32dc2f8887ec SHA512 9946d3c69941f26e56ab78cde3c91d91debb7fc5d63f8758aa5a4e0bcdfb78c86d43f3b736b81b761bb5924479491ed00727a739e0117d3e9d5e3b8c3a90004a WHIRLPOOL 4f4f509b894c6907a8b10b08b6851406c2172d969b1133aab64afdf53de2ca21b19cdbdea555b514fb9a8df4da44356419fc2a6bef12584b271c359978070b1e
31 DIST wine-1.9.8.tar.bz2 23183703 SHA256 8bf34e8dd68e7187ed11fb06a55a76789073dda6ab2db6b84e194acf4f561a1d SHA512 3f90238b78836836b4cd74975da07b0ce39f3da0e68fc8529554e1770ecd52c315519985bd15dc82756491ca3d145b27249a0e937221badb01ed3a1f8a69fbd4 WHIRLPOOL 22f633ac0f9d1f7bf874dc756432534c0deca765e49013576ea69ade86c98e8759fb14813d8d68451250911902541a3027a729328bff1aedd74ecafc9c85acf0
32 DIST wine-1.9.9.tar.bz2 23155986 SHA256 a1e76fd9842d0fe385e930cd62e7193035a04ed11fe771d9cd6ee9b2ceda7b41 SHA512 370caf527eac948b8bf2583e8f8a647e9b353b8ea70a341a0eb1fd768eea6c982a5c8b7eb23ecfded6eebea370d06bd23ee1ba7b2ded63547f571cc293ee1695 WHIRLPOOL bf97f4fcacda1913d2e7be21f6c771392b06653a7877ea07cf65731bf37eae3f3eb5d5fe5971dae18be709afcbbc65b3337e8d1d0c01e938671eed095aacd0af
33 +DIST wine-d3d9-1.9.10.tar.gz 46409 SHA256 edfb553605e9024e180766002181954d6a09339a8114d7319166b232cd86221e SHA512 d8c95832089c829108dae291470f73525684b1c4ca10b86086cea5b2872b6b058945bfffa3464ef25fd68acd90699bc435e49f75e09e1029df0521415c9c4c1e WHIRLPOOL 4cce21462ac12417df3b9641587fb9fae13171fe58297f0c818f8789011b2f886c5a6ed6ae2bb3ea44077f06d45775ea41399fb551dab35edb9b0f73b8e671db
34 DIST wine-d3d9-1.9.9.tar.gz 45615 SHA256 cc6575ef97c6ff74d11d370f6af012c82b33697cb5d120d93d3d501623ef4856 SHA512 142e4c11c392a7999093c6703e3e506c365633e7ae4c2426d164e411e5d28fd0c7b00acffc0ca35c755d8ff6d8585072f6a3d3bcb8b5e32417db5597f236c4d0 WHIRLPOOL d56f84a455dc643f756fedfffdc73640cb34aa8164df747fe44f204dd7165d7b000c22de8c33c9978ad97b32b8b6d285551de8607acf75b5f079cb7eeeadb05e
35 DIST wine-gentoo-2013.06.24.tar.bz2 85442 SHA256 bfbf6b25e98f717320de2ede467e3628fbc749d936b8449f8477c9dc6f41e04b SHA512 b6819889314f6a6ea16c1332f4b177c43623116763969c31b23b61754cd304dd085f5d3eafbe847159331eb97dddd9b4c10699430129ea4a71da418c1fe175f0 WHIRLPOOL 227e0ac6569736d4ad5813cef49f775dae956f4fc9255de95753d5d3cba1bf6cf3db31d23d3702bb54d2e60c5a6f779b602f0efb2096e4c827c924565b273d00
36 DIST wine-gentoo-2015.03.07.tar.bz2 85419 SHA256 f13f93dc49bbc33a294c4d511b6e01aec2d38bff77a1e44d07668291add1ab04 SHA512 bae1d2d5575d340d01f44008104f0e5ec0c4a4982995dec37d501594cd21d07a2b4ad4465c4273646d5bf6521996b4b82471097864be75342abe3e7d478a56bd WHIRLPOOL 0f254dd692e87a1f71dd19f6c1c8c59b8a91b994e75912a2e6e3ba5e875b85119fe497a331a95c2ce33bbf5f064143d23ee00275da92c494227de0807c9abb06
37 @@ -90,6 +92,7 @@ DIST wine-staging-1.7.55.tar.gz 9604441 SHA256 856b630fe95250e3d2dfc80588529e42e
38 DIST wine-staging-1.8.1.tar.gz 9598557 SHA256 12a4e54376515e2ab8ad79855ba724ba065c8de619c5da192ec528cc365f9c97 SHA512 d24bb78aed1e50ad73e742608048a68097d40e3c6563c1bd5adc2fab6abe0838dbce2d9f700ef71d876c6dfee232e97bef91bbc8f6b6c9092ff8db5a2d0f05ac WHIRLPOOL cb1400586860d4e6dad3f3bad78bdde27f8ea9fb703180533f5852368041879efe93e716df8f54bbeabba38b7d921ec0e2737bc6121c8cb5fd5af8d117d7e538
39 DIST wine-staging-1.8.2.tar.gz 9593817 SHA256 388cdcdfcb80df56df10c0487c03b1f2a5d5ad5762eaf4036ea59dacd43eb64c SHA512 8dc795b99cecdc852d9725c90250de1441f2a9ba8abb96f9c7340115541cd670efd1e8640d34502c15a6e3eb77a1d9fc581f5464109976e148665ab25465b7b9 WHIRLPOOL 0a54f239fb21201bc72e72aa3fd5f94b5411a8fdbda85515b53cf04d77439d7d98db3c385a175036b1d3478af071e478f1fb16050823c6455078f719ab85b2b6
40 DIST wine-staging-1.8.tar.gz 9632566 SHA256 c66f3dd6a760d516affe7467c4fb2d15ea8e2f0c72bcda1982219948dcdff11b SHA512 7b030b217ed0b37b8037d782406f75fcdb681c81371eafcab87175c0e6ac8b50fc58fe364e933e79eff168c1755412276fae3f914b7c36a6937aea1f6e35b022 WHIRLPOOL 8cff5d1d4c23405b820dbf9e7f73f7bba785e04ec2d9087b0977bb7aa1e6b84c2e6c3ac2f9cc72ba3c16f2b9c8c3607ea02ef1cd52d428a2b441333a424d9a21
41 +DIST wine-staging-1.9.10.tar.gz 9951778 SHA256 9f5218622565b00e5caa1026a28bdb2b2756886b1a55fed2f1e64a76b9716046 SHA512 f694a113240adfa0181ee6681b6558ff86fd9e8e4d0b24399c310121fdc8d9d3bd85086ce75cb21bc838132a1ff4c834029da9a1a7d5e0841a22b63d265a52d3 WHIRLPOOL 6597a0db47defeeff87c208ce5dc55f8b8ef799efdc8cc6c72f85b9836e71cdf8fb6d763f499afd6e1ec83498f08d7f90d2575d994a270fd7035539d017b7d53
42 DIST wine-staging-1.9.4.tar.gz 9719676 SHA256 1b3c6bb3e21e549fb8657cd9a2117946b7e78140b400c614dd41b041b6dc2674 SHA512 2c81b9f0315ed4f68d1874482805c9b6d3f2f9611f6dd1477ad0632d17f66e7f5e75720e5c7cef3a873876541c9d7d212fa8803a57cbec415aca32793a734634 WHIRLPOOL 0a66f53327976dd63532b9350d64461df3dcb0ea2fdc63d3498eac94d92387cf4bd53054c693c4a902f7fbba8ad0f2fdf59682e8622f3920a9a426344c656f54
43 DIST wine-staging-1.9.5.tar.gz 9889302 SHA256 e12c5fb741e6c5b55b99c37d6bba1746b0f40317f27198406e63f260ede3600c SHA512 aaaf08449e956f5f2b42440f8becf7233a22f2f807041b5524fae3c25c80078b86a84e6000803e014a5d2fc089e3df78cb66f0d1fe35675ae0f4ffdfa7ba3f10 WHIRLPOOL 692da1ec383b7efbcb12c8fa4078ed9b4143eb101baa06523f5bd85c749f0b87fe9a550e4d60e3c33e3d896782c9bc957f61171d01dcadbc8847ecbbc57c40ff
44 DIST wine-staging-1.9.6.tar.gz 9959130 SHA256 e9eb9990aa7f3f07931bfe158c883ebad595e58239855c7f6c01758b4d195db9 SHA512 508b5cd553a8b4a293e9250af670de693992c6f6e71e9e3759408b1e8745985030fbcb78c83ae6669e73e48caf95c3a6f0c92da0a96791912d7e6c4d29a26bd2 WHIRLPOOL 2ebc3ca7ea38d2fda310567083f28b76c4f0120dce659152ccacf95eb07de3dfe8950eb9b306b1a91b30ded8e3914f5852f7928e735659c2b02eb50d82fe0fca
45
46 diff --git a/app-emulation/wine/wine-1.9.10.ebuild b/app-emulation/wine/wine-1.9.10.ebuild
47 new file mode 100644
48 index 0000000..971a77c
49 --- /dev/null
50 +++ b/app-emulation/wine/wine-1.9.10.ebuild
51 @@ -0,0 +1,464 @@
52 +# Copyright 1999-2016 Gentoo Foundation
53 +# Distributed under the terms of the GNU General Public License v2
54 +# $Id$
55 +
56 +EAPI=6
57 +
58 +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"
59 +PLOCALE_BACKUP="en"
60 +
61 +inherit autotools eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator
62 +
63 +if [[ ${PV} == "9999" ]] ; then
64 + EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git"
65 + EGIT_BRANCH="master"
66 + inherit git-r3
67 + SRC_URI=""
68 + #KEYWORDS=""
69 +else
70 + MAJOR_V=$(get_version_component_range 1-2)
71 + SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}/${P}.tar.bz2"
72 + KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
73 +fi
74 +
75 +GV="2.44"
76 +MV="4.6.2"
77 +[[ ${MAJOR_V} == "1.8" ]] && SUFFIX="-unofficial"
78 +STAGING_P="wine-staging-${PV}"
79 +STAGING_DIR="${WORKDIR}/${STAGING_P}${SUFFIX}"
80 +D3D9_P="wine-d3d9-${PV}"
81 +D3D9_DIR="${WORKDIR}/wine-d3d9-patches-${D3D9_P}"
82 +WINE_GENTOO="wine-gentoo-2015.03.07"
83 +DESCRIPTION="Free implementation of Windows(tm) on Unix"
84 +HOMEPAGE="http://www.winehq.org/"
85 +SRC_URI="${SRC_URI}
86 + gecko? (
87 + abi_x86_32? ( https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86.msi )
88 + abi_x86_64? ( https://dl.winehq.org/wine/wine-gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
89 + )
90 + mono? ( https://dl.winehq.org/wine/wine-mono/${MV}/wine-mono-${MV}.msi )
91 + https://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
92 +
93 +if [[ ${PV} == "9999" ]] ; then
94 + STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
95 + D3D9_EGIT_REPO_URI="git://github.com/sarnex/wine-d3d9-patches.git"
96 +else
97 + SRC_URI="${SRC_URI}
98 + staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}${SUFFIX}.tar.gz -> ${STAGING_P}.tar.gz )
99 + d3d9? ( https://github.com/sarnex/wine-d3d9-patches/archive/${D3D9_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 d3d9 dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg +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 +threads +truetype +udisks v4l vaapi +X +xcomposite xinerama +xml"
105 +REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
106 + test? ( abi_x86_32 )
107 + elibc_glibc? ( threads )
108 + pipelight? ( staging )
109 + s3tc? ( staging )
110 + vaapi? ( staging )
111 + osmesa? ( opengl )" #286560
112 +
113 +# FIXME: the test suite is unsuitable for us; many tests require net access
114 +# or fail due to Xvfb's opengl limitations.
115 +RESTRICT="test"
116 +
117 +COMMON_DEPEND="
118 + truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
119 + capi? ( net-dialup/capi4k-utils )
120 + d3d9? ( media-libs/mesa[d3d9,${MULTILIB_USEDEP}] )
121 + ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
122 + udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
123 + fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
124 + gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
125 + openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
126 + gstreamer? (
127 + media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
128 + media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
129 + )
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 + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
138 + alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
139 + cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
140 + opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
141 + opengl? (
142 + virtual/glu[${MULTILIB_USEDEP}]
143 + virtual/opengl[${MULTILIB_USEDEP}]
144 + )
145 + gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
146 + jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
147 + ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
148 + lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
149 + mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
150 + netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
151 + nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
152 + odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
153 + osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
154 + pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
155 + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
156 + staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
157 + xml? (
158 + dev-libs/libxml2[${MULTILIB_USEDEP}]
159 + dev-libs/libxslt[${MULTILIB_USEDEP}]
160 + )
161 + scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
162 + ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
163 + png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
164 + v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
165 + vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
166 + xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
167 + abi_x86_32? (
168 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
169 + !<app-emulation/emul-linux-x86-baselibs-20140508-r14
170 + !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
171 + !<app-emulation/emul-linux-x86-db-20140508-r3
172 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
173 + !<app-emulation/emul-linux-x86-medialibs-20140508-r6
174 + !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
175 + !<app-emulation/emul-linux-x86-opengl-20140508-r1
176 + !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
177 + !<app-emulation/emul-linux-x86-sdl-20140508-r1
178 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
179 + !<app-emulation/emul-linux-x86-soundlibs-20140508
180 + !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
181 + !<app-emulation/emul-linux-x86-xlibs-20140508
182 + )"
183 +
184 +RDEPEND="${COMMON_DEPEND}
185 + dos? ( games-emulation/dosbox )
186 + perl? ( dev-lang/perl dev-perl/XML-Simple )
187 + s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
188 + samba? ( >=net-fs/samba-3.0.25[winbind] )
189 + selinux? ( sec-policy/selinux-wine )
190 + udisks? ( sys-fs/udisks:2 )
191 + pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
192 +
193 +# tools/make_requests requires perl
194 +DEPEND="${COMMON_DEPEND}
195 + staging? ( dev-lang/perl dev-perl/XML-Simple )
196 + X? (
197 + x11-proto/inputproto
198 + x11-proto/xextproto
199 + x11-proto/xf86vidmodeproto
200 + )
201 + xinerama? ( x11-proto/xineramaproto )
202 + prelink? ( sys-devel/prelink )
203 + >=sys-kernel/linux-headers-2.6
204 + virtual/pkgconfig
205 + virtual/yacc
206 + sys-devel/flex"
207 +
208 +# These use a non-standard "Wine" category, which is provided by
209 +# /etc/xdg/applications-merged/wine.menu
210 +QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
211 +usr/share/applications/wine-notepad.desktop
212 +usr/share/applications/wine-uninstaller.desktop
213 +usr/share/applications/wine-winecfg.desktop"
214 +
215 +wine_build_environment_check() {
216 + [[ ${MERGE_TYPE} = "binary" ]] && return 0
217 +
218 + # bug #549768
219 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
220 + einfo "Checking for gcc-5 ms_abi compiler bug ..."
221 + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
222 + # Run in subshell to prevent "Aborted" message
223 + if ! ( "${T}"/pr66838 || false ) >/dev/null 2>&1; then
224 + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
225 + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
226 + eerror "or use gcc-config to select a different compiler version."
227 + eerror "See https://bugs.gentoo.org/549768"
228 + eerror
229 + return 1
230 + fi
231 + fi
232 + # bug #574044
233 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
234 + einfo "Checking for gcc-5-3 stack realignment compiler bug ..."
235 + # Compile in subshell to prevent "Aborted" message
236 + if ! ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 || false ) >/dev/null 2>&1; then
237 + eerror "Wine cannot be built with this version of gcc-5.3"
238 + eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
239 + eerror "or use gcc-config to select a different compiler version."
240 + eerror "See https://bugs.gentoo.org/574044"
241 + eerror
242 + return 1
243 + fi
244 + fi
245 +
246 + if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
247 + eerror "You need gcc-4.4+ to build 64-bit wine"
248 + eerror
249 + return 1
250 + fi
251 +
252 + if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
253 + eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
254 + eerror "See https://bugs.gentoo.org/487864 for more details."
255 + eerror
256 + return 1
257 + fi
258 +}
259 +
260 +pkg_pretend() {
261 + wine_build_environment_check || die
262 +}
263 +
264 +pkg_setup() {
265 + wine_build_environment_check || die
266 +}
267 +
268 +src_unpack() {
269 + if [[ ${PV} == "9999" ]] ; then
270 + git-r3_src_unpack
271 + if use staging; then
272 + local WINE_COMMIT=${EGIT_VERSION}
273 +
274 + EGIT_REPO_URI=${STAGING_EGIT_REPO_URI}
275 + unset ${PN}_LIVE_{REPO,BRANCH,COMMIT} EGIT_COMMIT;
276 +
277 + EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack
278 +
279 + local STAGING_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die
280 +
281 + if [[ "${WINE_COMMIT}" != "${STAGING_COMMIT}" ]]; then
282 + einfo "The current Staging patchset is not guaranteed to apply on this WINE commit."
283 + einfo "If src_prepare fails, try emerging with the env var EGIT_COMMIT."
284 + einfo "Example: EGIT_COMMIT=${STAGING_COMMIT} emerge -1 wine"
285 + fi
286 + fi
287 + if use d3d9; then
288 + EGIT_REPO_URI="${D3D9_EGIT_REPO_URI}"
289 + unset ${PN}_LIVE_{REPO,BRANCH,COMMIT} EGIT_COMMIT;
290 + EGIT_CHECKOUT_DIR="${D3D9_DIR}" git-r3_src_unpack
291 + fi
292 + else
293 + unpack ${P}.tar.bz2
294 + use staging && unpack "${STAGING_P}.tar.gz"
295 + use d3d9 && unpack "${D3D9_P}.tar.gz"
296 + fi
297 +
298 + unpack "${WINE_GENTOO}.tar.bz2"
299 +
300 + l10n_find_plocales_changes "${S}/po" "" ".po"
301 +}
302 +
303 +src_prepare() {
304 + local md5="$(md5sum server/protocol.def)"
305 + local PATCHES=(
306 + "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
307 + "${FILESDIR}"/${PN}-1.9.5-multilib-portage.patch #395615
308 + "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
309 + "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
310 + )
311 + if use staging; then
312 + ewarn "Applying the Wine-Staging patchset. Any bug reports to the"
313 + ewarn "Wine bugzilla should explicitly state that staging was used."
314 +
315 + local STAGING_EXCLUDE=""
316 + use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
317 +
318 + # Launch wine-staging patcher in a subshell, using epatch as a backend, and gitapply.sh as a backend for binary patches
319 + ebegin "Running Wine-Staging patch installer"
320 + (
321 + set -- DESTDIR="${S}" --backend=epatch --no-autoconf --all ${STAGING_EXCLUDE}
322 + cd "${STAGING_DIR}/patches"
323 + source "${STAGING_DIR}/patches/patchinstall.sh"
324 + )
325 + eend $?
326 +
327 + # To differentiate unofficial staging releases
328 + if [[ ! -z ${SUFFIX} ]]; then
329 + sed -i "s/(Staging)/(Staging [Unofficial])/" libs/wine/Makefile.in || die
330 + fi
331 + fi
332 + if use d3d9; then
333 + if use staging; then
334 + PATCHES+=( "${D3D9_DIR}/staging-helper.patch" )
335 + else
336 + PATCHES+=( "${D3D9_DIR}/d3d9-helper.patch" )
337 + fi
338 + PATCHES+=( "${D3D9_DIR}/wine-d3d9.patch" )
339 + fi
340 +
341 + default
342 + eautoreconf
343 +
344 + # Modification of the server protocol requires regenerating the server requests
345 + if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
346 + einfo "server/protocol.def was patched; running tools/make_requests"
347 + tools/make_requests || die #432348
348 + fi
349 + sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
350 + if ! use run-exes; then
351 + sed -i '/^MimeType/d' loader/wine.desktop || die #117785
352 + fi
353 +
354 + # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
355 + cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
356 +
357 + l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
358 +}
359 +
360 +src_configure() {
361 + export LDCONFIG=/bin/true
362 + use custom-cflags || strip-flags
363 +
364 + multilib-minimal_src_configure
365 +}
366 +
367 +multilib_src_configure() {
368 + local myconf=(
369 + --sysconfdir=/etc/wine
370 + $(use_with alsa)
371 + $(use_with capi)
372 + $(use_with lcms cms)
373 + $(use_with cups)
374 + $(use_with ncurses curses)
375 + $(use_with udisks dbus)
376 + $(use_with fontconfig)
377 + $(use_with ssl gnutls)
378 + $(use_enable gecko mshtml)
379 + $(use_with gphoto2 gphoto)
380 + $(use_with gsm)
381 + $(use_with gstreamer)
382 + --without-hal
383 + $(use_with jpeg)
384 + $(use_with ldap)
385 + $(use_enable mono mscoree)
386 + $(use_with mp3 mpg123)
387 + $(use_with netapi)
388 + $(use_with nls gettext)
389 + $(use_with openal)
390 + $(use_with opencl)
391 + $(use_with opengl)
392 + $(use_with osmesa)
393 + $(use_with oss)
394 + $(use_with pcap)
395 + $(use_with png)
396 + $(use_with pulseaudio pulse)
397 + $(use_with threads pthread)
398 + $(use_with scanner sane)
399 + $(use_enable test tests)
400 + $(use_with truetype freetype)
401 + $(use_with v4l)
402 + $(use_with X x)
403 + $(use_with xcomposite)
404 + $(use_with xinerama)
405 + $(use_with xml)
406 + $(use_with xml xslt)
407 + )
408 +
409 + use staging && myconf+=(
410 + --with-xattr
411 + $(use_with vaapi va)
412 + )
413 + use d3d9 && myconf+=( $(use_with d3d9 d3dadapter) )
414 +
415 + local PKG_CONFIG AR RANLIB
416 + # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
417 + # set AR and RANLIB to make QA scripts happy; #483342
418 + tc-export PKG_CONFIG AR RANLIB
419 +
420 + if use amd64; then
421 + if [[ ${ABI} == amd64 ]]; then
422 + myconf+=( --enable-win64 )
423 + else
424 + myconf+=( --disable-win64 )
425 + fi
426 +
427 + # Note: using --with-wine64 results in problems with multilib.eclass
428 + # CC/LD hackery. We're using separate tools instead.
429 + fi
430 +
431 + ECONF_SOURCE=${S} \
432 + econf "${myconf[@]}"
433 + emake depend
434 +}
435 +
436 +multilib_src_test() {
437 + # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
438 + if [[ ${ABI} == x86 ]]; then
439 + if [[ $(id -u) == 0 ]]; then
440 + ewarn "Skipping tests since they cannot be run under the root user."
441 + ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
442 + return
443 + fi
444 +
445 + WINEPREFIX="${T}/.wine-${ABI}" \
446 + Xemake test
447 + fi
448 +}
449 +
450 +multilib_src_install_all() {
451 + local DOCS=( ANNOUNCE AUTHORS README )
452 + local l
453 + add_locale_docs() {
454 + local locale_doc="documentation/README.$1"
455 + [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
456 + }
457 + l10n_for_each_locale_do add_locale_docs
458 +
459 + einstalldocs
460 + prune_libtool_files --all
461 +
462 + emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
463 + if use gecko ; then
464 + insinto /usr/share/wine/gecko
465 + use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
466 + use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
467 + fi
468 + if use mono ; then
469 + insinto /usr/share/wine/mono
470 + doins "${DISTDIR}"/wine-mono-${MV}.msi
471 + fi
472 + if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
473 + rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
474 + fi
475 +
476 + use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
477 + use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
478 +
479 + if use abi_x86_64 && ! use abi_x86_32; then
480 + dosym /usr/bin/wine{64,} # 404331
481 + dosym /usr/bin/wine{64,}-preloader
482 + fi
483 +
484 + # respect LINGUAS when installing man pages, #469418
485 + for l in de fr pl; do
486 + use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
487 + done
488 +}
489 +
490 +pkg_preinst() {
491 + gnome2_icon_savelist
492 +}
493 +
494 +pkg_postinst() {
495 + gnome2_icon_cache_update
496 + fdo-mime_desktop_database_update
497 +
498 + if ! use gecko; then
499 + ewarn "Without Wine Gecko, wine prefixes will not have a default"
500 + ewarn "implementation of iexplore. Many older windows applications"
501 + ewarn "rely upon the existence of an iexplore implementation, so"
502 + ewarn "you will likely need to install an external one, like via winetricks"
503 + fi
504 + if ! use mono; then
505 + ewarn "Without Wine Mono, wine prefixes will not have a default"
506 + ewarn "implementation of .NET. Many windows applications rely upon"
507 + ewarn "the existence of a .NET implementation, so you will likely need"
508 + ewarn "to install an external one, like via winetricks"
509 + fi
510 +}
511 +
512 +pkg_postrm() {
513 + gnome2_icon_cache_update
514 + fdo-mime_desktop_database_update
515 +}