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