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-any/
Date: Mon, 17 Jul 2017 21:10:04
Message-Id: 1500325792.09d6f7a6dbbe70a27527e99b2fc0fceab59f8e95.np-hardass@gentoo
1 commit: 09d6f7a6dbbe70a27527e99b2fc0fceab59f8e95
2 Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 17 19:33:29 2017 +0000
4 Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 17 21:09:52 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d6f7a6
7
8 app-emulation/wine-any: Bump to 2.12
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 app-emulation/wine-any/Manifest | 3 +
13 app-emulation/wine-any/wine-any-2.12.ebuild | 617 ++++++++++++++++++++++++++++
14 2 files changed, 620 insertions(+)
15
16 diff --git a/app-emulation/wine-any/Manifest b/app-emulation/wine-any/Manifest
17 index c18ecf29755..5e74a0d494c 100644
18 --- a/app-emulation/wine-any/Manifest
19 +++ b/app-emulation/wine-any/Manifest
20 @@ -2,6 +2,7 @@ DIST wine-2.0.tar.bz2 23662707 SHA256 9756f5a2129b6a83ba701e546173cbff86caa671b0
21 DIST wine-2.1.tar.xz 18887032 SHA256 bfb9abf63691c93df28d9599aaa866dc2b4e27209b3b7b546df8a37d7d9d1e6e SHA512 03d678ee6e89c2804813f2827255fcf59e96ca9a45b7d8ac441cfc84f835e5e5689c70a79a41a04c631e1add7807fa4a5758acef3bd7aadfb2e92e68958c6ef6 WHIRLPOOL 063d935f1ff0922100641f2f53cdac23d2993a83182d45e028e485fd7d0a13bc5cfb77bca76550b1537b3f42fecacef7fd64785adbf6425af823f56f96973b54
22 DIST wine-2.10.tar.xz 19209580 SHA256 488df7ffd2e81da455bf428fc9eb784bb4273a890334500895665711bd52f179 SHA512 8807e16a571bf45d99097ad5fdfb9fe755f6dbe84010a330fed82f1d48c76b7f19589bfc0e5dde0b9e49a608fd0501db3f7e3e129e4d9d34bcae03bc51a73139 WHIRLPOOL e9a8248aac31593fbac28a3d8d4e62bfce14a7c41cc416ebfca8606518d28efd31b32196133da211f75f48bd228bd5d21fcbbc0479293e813ed99b258b37126e
23 DIST wine-2.11.tar.xz 19251116 SHA256 efa96dade206aa21accf0da195335a805d38209d6a14320607c6308ebde4cc3c SHA512 691f329c47af5e51498287029988b8ca0777bfc3902ed80fd315004aba2337a938e79177e752efe86423c9b34544df3952b8c443bf43149356575fac75a779ac WHIRLPOOL 4933e1ce640b0abeebccd6969b5eaf4eec76cd135d9cfc1d904a902219f776a68f72e2bd1ae9019d69f0d0d81fd8ead0084785d1b9710590349365977f9c1817
24 +DIST wine-2.12.tar.xz 19301968 SHA256 496c11af841487e6ec4e1953ac19b05a7f48e397da502653ffbd9fe9004213a7 SHA512 d44c1937d7d2d797150381f70317b810616d61355a59be096366d3507f59b678cffaf6d841cecf02bf9d2afa3dbf4d19270f80fb1d3ba5f0f93787d40c328f62 WHIRLPOOL 6f4b9baa6fcfe86f3d195fe603c2b9450a72a593c8f7042959b42a76880cb4ae680fde7beb70a8e823150849fda36c42985035de891ebf0088c8ffc2bceb15bf
25 DIST wine-2.2.tar.xz 18916364 SHA256 64cb57e1d8aa07f5c89ef26743b494f2d3ef9c0f4e50d3ee896a93535f7751f4 SHA512 0700868244d397c1442948716321e5ff030c667edce464570f76aa4340199489a422872aa3975bc0a57b8285c9d59fc04e223a4bde094169fc6db460acb626c4 WHIRLPOOL ffc3d357a76592651b589c6ac6608720d0258474890faf8fe3e20ac29cdd1496d569721256f9389d347bf2734a556099154fd18ef1b56f45bb46c4c15771d6ca
26 DIST wine-2.3.tar.xz 18931732 SHA256 afc95c7a87cc8f0730b462c50a5dfc9c462eb02c6bf5874b4fa99946f49e067e SHA512 bea78e8468555ff9e08dedf3918da5ea82721549c43984869989bbdafeea00e454820ff9558aa29925c97a165a9b01e5cd1fd397f133833c58824984a6686171 WHIRLPOOL 1f5ec8e5c32d124277e4c71d95726d3a5337575757c3029567c77165d65fcfec2ddf33d3863b4bf55c9eff7c3582c1ec7dbd76d84ed8bbbe89dd16db6b0128c1
27 DIST wine-2.4.tar.xz 18953748 SHA256 87b5df07e4781fecce2f92415a4717208ea253a20a0df8b36b9f90b69b72748e SHA512 15ae7e97dc72a8636b2c15c93803ed430fa456d673add61457cf3e479e769559c682b40949b5d38828f6681f13183e560fcb4a2eb0f0ba25e6eade46f7d3d7c0 WHIRLPOOL 558ab7b7517ad5e03366b4db974047eba776585e958a5b71bb2e93993e21bc725ea7a8bcf2a4354f34ca38c94ba99ccd15f2f8b5e4b58066bf339d3517eec56c
28 @@ -14,6 +15,7 @@ DIST wine-d3d9-2.0.tar.gz 48373 SHA256 7bfac23706723c6d51a7a95e416e47fb2678cd4d0
29 DIST wine-d3d9-2.1.tar.gz 48385 SHA256 9fd80e3e2ea905272c42dbc14679e94c8e2f955101ae098c84060d4c62ffc9c6 SHA512 9234d8227412d940a6befcf79433f1d5ab0634d5e829f3771ffeea235af05be29ffc40438818b1976c77d1e2e79da8a67c4dab2b7d2e822b502fb6e4a1a7f8b7 WHIRLPOOL 790e482850a13c5bf0967e900620c36d71c4d6673106f8f5c2848550ed574d326d3945d9906de88d847bb5644a520aab7fe6d460b3c3afd49a396798dd253392
30 DIST wine-d3d9-2.10.tar.gz 48713 SHA256 62a199a239fca4f172f9ff871086196f8eeb35483d7bcab4acb144c05e60debb SHA512 808241f545e60c0546ff3918cac28e2abb6fe8496e8ade3cfa8bf81612724e827d31787d1d320cbac80b71a5d6180bcc8e51249c12c099e44637e0bb9f4875cd WHIRLPOOL a8c58c5321107b958780348aebad41d57ac0a3a307e176715950e1ed1eae7d19d858db3f9b0e5cb86484919d683321ff6fc19ec1696ba5418e0d2dd861bfaff4
31 DIST wine-d3d9-2.11.tar.gz 48714 SHA256 3432863940fdb9ea6f36688d670c6fe800e7359d7b18723828447bedf694b786 SHA512 716dad66fce962246e57a29c239d6b69b78656a11d01a421b490ad61c2c3dd9850b34e2346319a6a35c2a01e0c28193adf78f21b9de1ffde95a06d5fae51fe0d WHIRLPOOL eeef55dca716a68e03b84d4f916955c4194810c1c460a55a30ac2c4257e256b8fc709837d7b35aa86ce3f523f2b9c11222b9096ae4d87979f1fee4a8257ddabb
32 +DIST wine-d3d9-2.12.tar.gz 48716 SHA256 544e8b901b2fe1e0da90828f07683abf45794a3a41fdfae20eb5d29b5ee7d22b SHA512 8fe9b37ff54372984a234b18037bc736f69f2adf41478f037bc93e3d72893c46174fc3fbff78042ac66bb03d31ea85d293dbadc2b32630218ae53be8e360425d WHIRLPOOL 17f28bafb20c559424945ff92041a5c634b8775a8e97ed8aa940308fa815f2b3cfa48499a58a511fc5c33bde47db07008d168d8b0c103eec379ba27b33b8ffdd
33 DIST wine-d3d9-2.2.tar.gz 48387 SHA256 203ed60980ec584c09b413266728e3a93e2d980dbff9b4f65375a4e9744b5042 SHA512 6e9e031b51afc8ec200bbd252ff0d768c29af23907f782409834de593f896afb128f86fe012c95dc18e5f3c7267f170eb343d2a2c53d639933a337f0c1e04fab WHIRLPOOL 6b32c0dfd3068e87d94bbcd83718dd75a14b36d69b151e9257e04793d2d3ae78ce7da10b80cbc824ccefb6c11666241593f91963ddee6a58301f95bbde35285d
34 DIST wine-d3d9-2.3.tar.gz 48510 SHA256 fc17488a782def19fc02bf967128ab43236db49509e31771361a60fa3d17dd60 SHA512 58449f6b7ed7fd8182e2cce92e1d1195bf64a567c1cc92fd3f46af195e7e4039c3b2a128be9d3572d9067be6c1bb020f417c6d558bb551c60096c107067177b8 WHIRLPOOL f648a921cf4cd257a3a7dfbd3abf45d58c07782f329ec11c3a1eff3afe32e8040adb351d4a60e1b1f78c7cae0379f23468764ad162a101179d0f5b0e2c6d9413
35 DIST wine-d3d9-2.4.tar.gz 48502 SHA256 4c7084e733d95545b894b152b2c6c9564dfb8df594cfeb1512dad80743b39ae0 SHA512 623b1720b8cd79ab6ad2a177b9beb174f31e6fc402d6885fa2006223c855919c6f5d4267c64212ecf8cf1746430c9715c506343fb740828fc99910f916b10ebe WHIRLPOOL 9c0ea34dedc2e39ce36f1539a6d761ba07429b316a1f7fad49067eec5c28a5c60b33b3d2473cbf66b009d9772c1fb123414bfa201eb8df3e61f8efc38aa1f3fa
36 @@ -27,6 +29,7 @@ DIST wine-staging-2.0.tar.gz 10182575 SHA256 22a43cb50c1fff9c6f233a965247056e332
37 DIST wine-staging-2.1.tar.gz 10101781 SHA256 1d193be2734ea495df2cae1dc54ce89204ca68699979174b0bd726d2e5e0576b SHA512 c64c48b265f0779c621a643ddbd2d12aaa548e4bff3b2b728280cdb9613214989911ee8ba5e46c7770f5f6430014a5da1c98e95d5008c1174bd14bf9ce5250db WHIRLPOOL ecf970ef436089bbcd0088e1608b22e808d54560e905c7d8046b3e21508166a595c3ef7b69819c45e4b13183bd9134a2bd7016d29c4da52985701d392eb35a0a
38 DIST wine-staging-2.10.tar.gz 10091114 SHA256 b361ec92b2e40de983b987f6564dbb75dcb121c6e2f0123fe1ae234fd81a591b SHA512 c3bf7027ddfd1405263cce844a7cbeb923e9de56cffdb296384449c0cc600b3c9a37c7fe09b62fb9ae0b47f97a2d4f208cc589f0e4205fa84ce5d112953ac2e7 WHIRLPOOL 01c5436179bcbd29ee0468f2f4d839ba805c064d80835fcd1d5e6eba562881c65ac576657a733c726ccf4b37473da6724ae06ebc023fb988d8810ed1f8096c6b
39 DIST wine-staging-2.11.tar.gz 10083147 SHA256 45c40fbca76cab987e7adfe47fc8e24692f896805c8a6dc6030da28e3bd842bc SHA512 e2d05ee88e1cc932c2890f1db867a9382f2c62a00ea7d63fc6bd7b3fab57ea2f0e4908313cbed08b92e48d5bc17753b0b78f6cdf2cb64e81aa5725fd86cbc695 WHIRLPOOL e2d13ed7d258b1ee442c8c87f852c1564ce5f262bd7cd31710b975882ab8cb454a1e2ec308c6c17e5bd0a691b0492fdea22a182323cb963c055592ce538db690
40 +DIST wine-staging-2.12.tar.gz 10105899 SHA256 0f186d2268011c12094ecac8747378ad8f4ee7152e8854cb00496ba9565b7974 SHA512 a8c21c923153a42609e3ea9065b84208b01f3b14d55b7e68e548ebf6d27df956051b29dc2f053aec6287422c13eed5b6ec71e667ae6f46b1c80ae7c84a51b648 WHIRLPOOL 01cf39fa257e9975cfd16976e680117dac3d0ea3f9bc41e2d0a636023bd4afba0676587e41c55d4417cff97080b90eb11b3fe475970eec70be64f5c788c1cf88
41 DIST wine-staging-2.2.tar.gz 10078327 SHA256 9d3cbf7e5f12c623d275457b910a158e0b176fcf50c09a5f8425864de604bc1d SHA512 8ad3f8ba4c6439a9ec4884a55018a67c9e2c2384830074646aac7b70cb9f4f5a20f760247ab42dc3d2f697cdac7ea5322be8ed12c435cb0bc185ac08fdd4dd91 WHIRLPOOL a34c19aaace64307de56d935cb0cef17d7c066c39b83c51e70ea76a20083f928bea55fe38d62b7a8250b0a9e8f00e0d2b744f43fcab433069ffb96625d955303
42 DIST wine-staging-2.3.tar.gz 10071742 SHA256 9a81be606836fab6203857f7937ff97575947f75d52c80fb5489418efb8b87e1 SHA512 8e8af1e36cc69c63ec3542f0ec4db18b6d8c16b5c9077eb211297f3a886519da71bcf72934bf8d6d72e44c7c9f765e1d00203d0d75cab8544f69f9b0c10a7133 WHIRLPOOL 50738a6e20890748d7eb01152244d34b259759f61b3587ba39815dc066fc8e2b66ce182e1ddbc912f50076a3599aa060ec6a94eeaab4513ce3a776711929b9b1
43 DIST wine-staging-2.4.tar.gz 10067020 SHA256 709cab12c0ebf7cf9504fd4a67eb851272309e00066ad81f184b0f55c63e9deb SHA512 55d11851697836b582ba54696cadc812ef6b14872440f5c3ed6fbe30a05abcb8abe2ab31a11ea4daeb354854c7c0e6549401d4b26b26621808bdeb89aeb206f9 WHIRLPOOL 8d344b7e6e89322c8dbbe6fd211851c90a45a33b514c182609cc60dc21939f791abc71d8665cd66e5c5161f159fe24c4772b99405833e3d11985a644e1335eaf
44
45 diff --git a/app-emulation/wine-any/wine-any-2.12.ebuild b/app-emulation/wine-any/wine-any-2.12.ebuild
46 new file mode 100644
47 index 00000000000..96e7765c573
48 --- /dev/null
49 +++ b/app-emulation/wine-any/wine-any-2.12.ebuild
50 @@ -0,0 +1,617 @@
51 +# Copyright 1999-2017 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=6
55 +
56 +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"
57 +PLOCALE_BACKUP="en"
58 +
59 +inherit autotools eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator
60 +
61 +MY_PN="${PN%%-*}"
62 +MY_P="${MY_PN}-${PV}"
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)
72 + SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz"
73 + KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
74 +fi
75 +S="${WORKDIR}/${MY_P}"
76 +
77 +STAGING_P="wine-staging-${PV}"
78 +STAGING_DIR="${WORKDIR}/${STAGING_P}"
79 +D3D9_P="wine-d3d9-${PV}"
80 +D3D9_DIR="${WORKDIR}/wine-d3d9-patches-${D3D9_P}"
81 +WDC_V="20150204"
82 +WINE_DESKTOP_COMMON_P="wine-desktop-common-${WDC_V}"
83 +
84 +DESCRIPTION="Free implementation of Windows(tm) on Unix, with optional external patchsets"
85 +HOMEPAGE="http://www.winehq.org/"
86 +SRC_URI="${SRC_URI}
87 + https://github.com/NP-Hardass/wine-desktop-common/archive/${WDC_V}.tar.gz -> ${WINE_DESKTOP_COMMON_P}.tar.gz
88 +"
89 +
90 +if [[ ${PV} == "9999" ]] ; then
91 + STAGING_EGIT_REPO_URI="git://github.com/wine-compholio/wine-staging.git"
92 + D3D9_EGIT_REPO_URI="git://github.com/sarnex/wine-d3d9-patches.git"
93 +else
94 + SRC_URI="${SRC_URI}
95 + staging? ( https://github.com/wine-compholio/wine-staging/archive/v${PV}.tar.gz -> ${STAGING_P}.tar.gz )
96 + d3d9? ( https://github.com/sarnex/wine-d3d9-patches/archive/${D3D9_P}.tar.gz )"
97 +fi
98 +
99 +LICENSE="LGPL-2.1"
100 +SLOT="${PV}"
101 +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"
102 +REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
103 + X? ( truetype )
104 + elibc_glibc? ( threads )
105 + osmesa? ( opengl )
106 + pipelight? ( staging )
107 + s3tc? ( staging )
108 + test? ( abi_x86_32 )
109 + themes? ( staging )
110 + vaapi? ( staging )" # osmesa-opengl #286560 # X-truetype #551124
111 +
112 +# FIXME: the test suite is unsuitable for us; many tests require net access
113 +# or fail due to Xvfb's opengl limitations.
114 +RESTRICT="test"
115 +
116 +COMMON_DEPEND="
117 + X? (
118 + x11-libs/libXcursor[${MULTILIB_USEDEP}]
119 + x11-libs/libXext[${MULTILIB_USEDEP}]
120 + x11-libs/libXfixes[${MULTILIB_USEDEP}]
121 + x11-libs/libXrandr[${MULTILIB_USEDEP}]
122 + x11-libs/libXi[${MULTILIB_USEDEP}]
123 + x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
124 + )
125 + alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
126 + capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] )
127 + cups? ( net-print/cups:=[${MULTILIB_USEDEP}] )
128 + d3d9? (
129 + media-libs/mesa[d3d9,egl,${MULTILIB_USEDEP}]
130 + x11-libs/libX11[${MULTILIB_USEDEP}]
131 + x11-libs/libXext[${MULTILIB_USEDEP}]
132 + x11-libs/libxcb[${MULTILIB_USEDEP}]
133 + )
134 + fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] )
135 + gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
136 + gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] )
137 + gstreamer? (
138 + media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
139 + media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}]
140 + )
141 + jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] )
142 + lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] )
143 + ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
144 + mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] )
145 + ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] )
146 + netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] )
147 + nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] )
148 + odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] )
149 + openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] )
150 + opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
151 + opengl? (
152 + virtual/glu[${MULTILIB_USEDEP}]
153 + virtual/opengl[${MULTILIB_USEDEP}]
154 + )
155 + osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] )
156 + pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
157 + png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
158 + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
159 + scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] )
160 + ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
161 + staging? ( sys-apps/attr[${MULTILIB_USEDEP}] )
162 + themes? (
163 + dev-libs/glib:2[${MULTILIB_USEDEP}]
164 + x11-libs/cairo[${MULTILIB_USEDEP}]
165 + x11-libs/gtk+:3[${MULTILIB_USEDEP}]
166 + )
167 + truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] )
168 + udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
169 + udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
170 + v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
171 + vaapi? ( x11-libs/libva[X,${MULTILIB_USEDEP}] )
172 + xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
173 + xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
174 + xml? (
175 + dev-libs/libxml2[${MULTILIB_USEDEP}]
176 + dev-libs/libxslt[${MULTILIB_USEDEP}]
177 + )
178 + abi_x86_32? (
179 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
180 + !<app-emulation/emul-linux-x86-baselibs-20140508-r14
181 + !app-emulation/emul-linux-x86-db[-abi_x86_32(-)]
182 + !<app-emulation/emul-linux-x86-db-20140508-r3
183 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
184 + !<app-emulation/emul-linux-x86-medialibs-20140508-r6
185 + !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
186 + !<app-emulation/emul-linux-x86-opengl-20140508-r1
187 + !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
188 + !<app-emulation/emul-linux-x86-sdl-20140508-r1
189 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)]
190 + !<app-emulation/emul-linux-x86-soundlibs-20140508
191 + !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
192 + !<app-emulation/emul-linux-x86-xlibs-20140508
193 + )"
194 +
195 +RDEPEND="${COMMON_DEPEND}
196 + app-emulation/wine-desktop-common
197 + >app-eselect/eselect-wine-0.3
198 + !app-emulation/wine:0
199 + dos? ( >=games-emulation/dosbox-0.74_p20160629 )
200 + gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] )
201 + mono? ( app-emulation/wine-mono:4.7.0 )
202 + perl? (
203 + dev-lang/perl
204 + dev-perl/XML-Simple
205 + )
206 + pulseaudio? (
207 + realtime? ( sys-auth/rtkit )
208 + )
209 + s3tc? ( >=media-libs/libtxc_dxtn-1.0.1-r1[${MULTILIB_USEDEP}] )
210 + samba? ( >=net-fs/samba-3.0.25[winbind] )
211 + selinux? ( sec-policy/selinux-wine )
212 + udisks? ( sys-fs/udisks:2 )"
213 +
214 +# tools/make_requests requires perl
215 +DEPEND="${COMMON_DEPEND}
216 + sys-devel/flex
217 + >=sys-kernel/linux-headers-2.6
218 + virtual/pkgconfig
219 + virtual/yacc
220 + X? (
221 + x11-proto/inputproto
222 + x11-proto/xextproto
223 + x11-proto/xf86vidmodeproto
224 + )
225 + prelink? ( sys-devel/prelink )
226 + staging? (
227 + dev-lang/perl
228 + dev-perl/XML-Simple
229 + )
230 + xinerama? ( x11-proto/xineramaproto )"
231 +
232 +# These use a non-standard "Wine" category, which is provided by
233 +# /etc/xdg/applications-merged/wine.menu
234 +QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
235 +usr/share/applications/wine-notepad.desktop
236 +usr/share/applications/wine-uninstaller.desktop
237 +usr/share/applications/wine-winecfg.desktop"
238 +
239 +wine_compiler_check() {
240 + [[ ${MERGE_TYPE} = "binary" ]] && return 0
241 +
242 + # GCC-specific bugs
243 + if tc-is-gcc; then
244 + # bug #549768
245 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
246 + ebegin "Checking for gcc-5 ms_abi compiler bug"
247 + $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die
248 + # Run in subshell to prevent "Aborted" message
249 + ( "${T}"/pr66838 || false ) >/dev/null 2>&1
250 + if ! eend $?; then
251 + eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
252 + eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
253 + eerror "or use gcc-config to select a different compiler version."
254 + eerror "See https://bugs.gentoo.org/549768"
255 + eerror
256 + return 1
257 + fi
258 + fi
259 + # bug #574044
260 + if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
261 + ebegin "Checking for gcc-5-3 stack realignment compiler bug"
262 + # Compile in subshell to prevent "Aborted" message
263 + ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 ) >/dev/null 2>&1
264 + if ! eend $?; then
265 + eerror "Wine cannot be built with this version of gcc-5.3"
266 + eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
267 + eerror "or use gcc-config to select a different compiler version."
268 + eerror "See https://bugs.gentoo.org/574044"
269 + eerror
270 + return 1
271 + fi
272 + fi
273 + fi
274 +
275 + # Ensure compiler support
276 + if use abi_x86_64; then
277 + ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
278 + # Compile in subshell to prevent "Aborted" message
279 + ( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
280 + if ! eend $?; then
281 + eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
282 + eerror
283 + eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
284 + eerror
285 + return 1
286 + fi
287 + fi
288 +}
289 +
290 +wine_build_environment_check() {
291 + [[ ${MERGE_TYPE} = "binary" ]] && return 0
292 +
293 + if use abi_x86_64; then
294 + if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
295 + eerror "You need gcc-4.4+ to compile 64-bit wine"
296 + die
297 + elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
298 + eerror "You need clang-3.8+ to compile 64-bit wine"
299 + die
300 + fi
301 + fi
302 + if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
303 + ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
304 + ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
305 + ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
306 + fi
307 + if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
308 + if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
309 + ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
310 + ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
311 + ewarn "See package.env in man 5 portage for more information on how to do this."
312 + ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
313 + fi
314 + fi
315 +
316 + if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
317 + eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
318 + eerror "See https://bugs.gentoo.org/487864 for more details."
319 + eerror
320 + return 1
321 + fi
322 +}
323 +
324 +wine_env_vcs_vars() {
325 + local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT"
326 + local pn_live_val="${pn_live_var}"
327 + eval pn_live_val='$'${pn_live_val}
328 + if [[ ! -z ${pn_live_val} ]]; then
329 + if use staging || use d3d9; then
330 + eerror "Because of the multi-repo nature of ${MY_PN}, ${pn_live_var}"
331 + eerror "cannot be used to set the commit. Instead, you may use the"
332 + eerror "environmental variables WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT."
333 + eerror
334 + return 1
335 + fi
336 + fi
337 + if [[ ! -z ${EGIT_COMMIT} ]]; then
338 + eerror "Commits must now be specified using the environmental variables"
339 + eerror "WINE_COMMIT, STAGING_COMMIT, and D3D9_COMMIT"
340 + eerror
341 + return 1
342 + fi
343 +}
344 +
345 +pkg_pretend() {
346 + wine_build_environment_check || die
347 +
348 + # Verify OSS support
349 + if use oss && ! use kernel_FreeBSD; then
350 + if ! has_version ">=media-sound/oss-4"; then
351 + eerror "You cannot build wine with USE=oss without having support from a"
352 + eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)"
353 + eerror
354 + die
355 + fi
356 + fi
357 +}
358 +
359 +pkg_setup() {
360 + wine_build_environment_check || die
361 + wine_env_vcs_vars || die
362 +
363 + WINE_VARIANT="${PN#wine}-${PV}"
364 + WINE_VARIANT="${WINE_VARIANT#-}"
365 +
366 + MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}"
367 + MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}"
368 + MY_DATADIR="${MY_DATAROOTDIR}"
369 + MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
370 + MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}"
371 + MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}"
372 + MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}"
373 + MY_MANDIR="${MY_DATADIR}/man"
374 +}
375 +
376 +src_unpack() {
377 + if [[ ${PV} == "9999" ]] ; then
378 + EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack
379 + if use staging; then
380 + local CURRENT_WINE_COMMIT=${EGIT_VERSION}
381 +
382 + git-r3_fetch "${STAGING_EGIT_REPO_URI}" "${STAGING_COMMIT}"
383 + git-r3_checkout "${STAGING_EGIT_REPO_URI}" "${STAGING_DIR}"
384 +
385 + local COMPAT_WINE_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die
386 +
387 + if [[ "${CURRENT_WINE_COMMIT}" != "${COMPAT_WINE_COMMIT}" ]]; then
388 + einfo "The current Staging patchset is not guaranteed to apply on this WINE commit."
389 + einfo "If src_prepare fails, try emerging with the env var WINE_COMMIT."
390 + einfo "Example: WINE_COMMIT=${COMPAT_WINE_COMMIT} emerge -1 wine"
391 + fi
392 + fi
393 + if use d3d9; then
394 + git-r3_fetch "${D3D9_EGIT_REPO_URI}" "${D3D9_COMMIT}"
395 + git-r3_checkout "${D3D9_EGIT_REPO_URI}" "${D3D9_DIR}"
396 + fi
397 + fi
398 +
399 + default
400 +
401 + l10n_find_plocales_changes "${S}/po" "" ".po"
402 +}
403 +
404 +src_prepare() {
405 + local md5="$(md5sum server/protocol.def)"
406 + local PATCHES=(
407 + "${FILESDIR}"/${MY_PN}-1.5.26-winegcc.patch #260726
408 + "${FILESDIR}"/${MY_PN}-1.9.5-multilib-portage.patch #395615
409 + "${FILESDIR}"/${MY_PN}-1.6-memset-O3.patch #480508
410 + "${FILESDIR}"/${MY_PN}-2.0-multislot-apploader.patch
411 + )
412 + if use staging; then
413 + ewarn "Applying the Wine-Staging patchset. Any bug reports to the"
414 + ewarn "Wine bugzilla should explicitly state that staging was used."
415 +
416 + local STAGING_EXCLUDE=""
417 + STAGING_EXCLUDE="${STAGING_EXCLUDE} -W winhlp32-Flex_Workaround" # Avoid double patching https://bugs.winehq.org/show_bug.cgi?id=42132
418 + use pipelight || STAGING_EXCLUDE="${STAGING_EXCLUDE} -W Pipelight"
419 +
420 + # Launch wine-staging patcher in a subshell, using eapply as a backend, and gitapply.sh as a backend for binary patches
421 + ebegin "Running Wine-Staging patch installer"
422 + (
423 + set -- DESTDIR="${S}" --backend=eapply --no-autoconf --all ${STAGING_EXCLUDE}
424 + cd "${STAGING_DIR}/patches"
425 + source "${STAGING_DIR}/patches/patchinstall.sh"
426 + )
427 + eend $? || die "Failed to apply Wine-Staging patches"
428 + fi
429 + if use d3d9; then
430 + if use staging; then
431 + PATCHES+=( "${D3D9_DIR}/staging-helper.patch" )
432 + else
433 + PATCHES+=( "${D3D9_DIR}/d3d9-helper.patch" )
434 + fi
435 + PATCHES+=( "${D3D9_DIR}/wine-d3d9.patch" )
436 + fi
437 +
438 + default
439 + eautoreconf
440 +
441 + # Modification of the server protocol requires regenerating the server requests
442 + if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
443 + einfo "server/protocol.def was patched; running tools/make_requests"
444 + tools/make_requests || die #432348
445 + fi
446 + sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
447 + if ! use run-exes; then
448 + sed -i '/^MimeType/d' loader/wine.desktop || die #117785
449 + fi
450 +
451 + # Edit wine.desktop to work for specific variant
452 + sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die
453 +
454 + # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
455 + cp "${WORKDIR}/${WINE_DESKTOP_COMMON_P}/icons/oic_winlogo.ico" dlls/user32/resources/ || die
456 +
457 + l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS
458 +}
459 +
460 +src_configure() {
461 + wine_compiler_check || die
462 +
463 + export LDCONFIG=/bin/true
464 + use custom-cflags || strip-flags
465 +
466 + multilib-minimal_src_configure
467 +}
468 +
469 +multilib_src_configure() {
470 + local myconf=(
471 + --prefix="${MY_PREFIX}"
472 + --datarootdir="${MY_DATAROOTDIR}"
473 + --datadir="${MY_DATADIR}"
474 + --docdir="${MY_DOCDIR}"
475 + --includedir="${MY_INCLUDEDIR}"
476 + --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}"
477 + --libexecdir="${MY_LIBEXECDIR}"
478 + --localstatedir="${MY_LOCALSTATEDIR}"
479 + --mandir="${MY_MANDIR}"
480 + --sysconfdir=/etc/wine
481 + $(use_with alsa)
482 + $(use_with capi)
483 + $(use_with lcms cms)
484 + $(use_with cups)
485 + $(use_with ncurses curses)
486 + $(use_with udisks dbus)
487 + $(use_with fontconfig)
488 + $(use_with ssl gnutls)
489 + $(use_enable gecko mshtml)
490 + $(use_with gphoto2 gphoto)
491 + $(use_with gsm)
492 + $(use_with gstreamer)
493 + --without-hal
494 + $(use_with jpeg)
495 + $(use_with ldap)
496 + $(use_enable mono mscoree)
497 + $(use_with mp3 mpg123)
498 + $(use_with netapi)
499 + $(use_with nls gettext)
500 + $(use_with openal)
501 + $(use_with opencl)
502 + $(use_with opengl)
503 + $(use_with osmesa)
504 + $(use_with oss)
505 + $(use_with pcap)
506 + $(use_with png)
507 + $(use_with pulseaudio pulse)
508 + $(use_with threads pthread)
509 + $(use_with scanner sane)
510 + $(use_enable test tests)
511 + $(use_with truetype freetype)
512 + $(use_with udev)
513 + $(use_with v4l)
514 + $(use_with X x)
515 + $(use_with X xfixes)
516 + $(use_with xcomposite)
517 + $(use_with xinerama)
518 + $(use_with xml)
519 + $(use_with xml xslt)
520 + )
521 +
522 + use staging && myconf+=(
523 + --with-xattr
524 + $(use_with themes gtk3)
525 + $(use_with vaapi va)
526 + )
527 + use d3d9 && myconf+=( $(use_with d3d9 d3d9-nine) )
528 +
529 + local PKG_CONFIG AR RANLIB
530 + # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
531 + # set AR and RANLIB to make QA scripts happy; #483342
532 + tc-export PKG_CONFIG AR RANLIB
533 +
534 + if use amd64; then
535 + if [[ ${ABI} == amd64 ]]; then
536 + myconf+=( --enable-win64 )
537 + else
538 + myconf+=( --disable-win64 )
539 + fi
540 +
541 + # Note: using --with-wine64 results in problems with multilib.eclass
542 + # CC/LD hackery. We're using separate tools instead.
543 + fi
544 +
545 + ECONF_SOURCE=${S} \
546 + econf "${myconf[@]}"
547 + emake depend
548 +}
549 +
550 +multilib_src_test() {
551 + # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
552 + if [[ ${ABI} == x86 ]]; then
553 + if [[ $(id -u) == 0 ]]; then
554 + ewarn "Skipping tests since they cannot be run under the root user."
555 + ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf"
556 + return
557 + fi
558 +
559 + WINEPREFIX="${T}/.wine-${ABI}" \
560 + Xemake test
561 + fi
562 +}
563 +
564 +multilib_src_install_all() {
565 + local DOCS=( ANNOUNCE AUTHORS README )
566 + add_locale_docs() {
567 + local locale_doc="documentation/README.$1"
568 + [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
569 + }
570 + l10n_for_each_locale_do add_locale_docs
571 +
572 + einstalldocs
573 + prune_libtool_files --all
574 +
575 + if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script
576 + rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \
577 + "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die
578 + fi
579 +
580 + # Remove wineconsole if neither backend is installed #551124
581 + if ! use X && ! use ncurses; then
582 + rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die
583 + rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die
584 + rm_wineconsole() {
585 + rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die
586 + }
587 + multilib_foreach_abi rm_wineconsole
588 + fi
589 +
590 + use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055
591 + use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader}
592 +
593 + if use abi_x86_64 && ! use abi_x86_32; then
594 + dosym "${MY_PREFIX}"/bin/wine{64,} # 404331
595 + dosym "${MY_PREFIX}"/bin/wine{64,}-preloader
596 + fi
597 +
598 + # Failglob for bin and man loops
599 + local glob_state=$(shopt -p failglob)
600 + shopt -s failglob
601 +
602 + # Make wrappers for binaries for handling multiple variants
603 + # Note: wrappers instead of symlinks because some are shell which use basename
604 + local b
605 + for b in "${D%/}${MY_PREFIX}"/bin/*; do
606 + make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}"
607 + done
608 +
609 + # respect LINGUAS when installing man pages, #469418
610 + local l
611 + for l in de fr pl; do
612 + use linguas_${l} || rm -r "${D%/}${MY_MANDIR}"/${l}*
613 + done
614 +
615 + eval "${glob_state}"
616 +}
617 +
618 +pkg_postinst() {
619 + eselect wine register ${P}
620 + if [[ ${PN} == "wine-vanilla" ]]; then
621 + eselect wine register --vanilla ${P} || die
622 + else
623 + if use staging; then
624 + eselect wine register --staging ${P} || die
625 + fi
626 + if use d3d9; then
627 + eselect wine register --d3d9 ${P} || die
628 + fi
629 + fi
630 +
631 + eselect wine update --all --if-unset || die
632 +
633 + fdo-mime_desktop_database_update
634 +
635 + if ! use gecko; then
636 + ewarn "Without Wine Gecko, wine prefixes will not have a default"
637 + ewarn "implementation of iexplore. Many older windows applications"
638 + ewarn "rely upon the existence of an iexplore implementation, so"
639 + ewarn "you will likely need to install an external one, like via winetricks"
640 + fi
641 + if ! use mono; then
642 + ewarn "Without Wine Mono, wine prefixes will not have a default"
643 + ewarn "implementation of .NET. Many windows applications rely upon"
644 + ewarn "the existence of a .NET implementation, so you will likely need"
645 + ewarn "to install an external one, like via winetricks"
646 + fi
647 +}
648 +
649 +pkg_prerm() {
650 + eselect wine deregister ${P}
651 + if [[ ${PN} == "wine-vanilla" ]]; then
652 + eselect wine deregister --vanilla ${P} || die
653 + else
654 + if use staging; then
655 + eselect wine deregister --staging ${P} || die
656 + fi
657 + if use d3d9; then
658 + eselect wine deregister --d3d9 ${P} || die
659 + fi
660 + fi
661 +
662 + eselect wine update --all --if-unset || die
663 +}
664 +
665 +pkg_postrm() {
666 + fdo-mime_desktop_database_update
667 +}