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