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