1 |
tetromino 14/01/04 03:49:37 |
2 |
|
3 |
Modified: ChangeLog wine-9999.ebuild |
4 |
Added: wine-1.7.10.ebuild |
5 |
Log: |
6 |
Version bump, see http://www.winehq.org/announce/1.7.10 for the announcement. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
9 |
|
10 |
Revision Changes Path |
11 |
1.491 app-emulation/wine/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.491&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.491&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.490&r2=1.491 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v |
20 |
retrieving revision 1.490 |
21 |
retrieving revision 1.491 |
22 |
diff -u -r1.490 -r1.491 |
23 |
--- ChangeLog 24 Dec 2013 22:50:44 -0000 1.490 |
24 |
+++ ChangeLog 4 Jan 2014 03:49:37 -0000 1.491 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-emulation/wine |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.490 2013/12/24 22:50:44 tetromino Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.491 2014/01/04 03:49:37 tetromino Exp $ |
31 |
+ |
32 |
+*wine-1.7.10 (04 Jan 2014) |
33 |
+ |
34 |
+ 04 Jan 2014; Alexandre Rostovtsev <tetromino@g.o> +wine-1.7.10.ebuild, |
35 |
+ wine-9999.ebuild: |
36 |
+ Version bump, see http://www.winehq.org/announce/1.7.10 for the announcement. |
37 |
|
38 |
*wine-1.7.9 (24 Dec 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.162 app-emulation/wine/wine-9999.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.162&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.162&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?r1=1.161&r2=1.162 |
48 |
|
49 |
Index: wine-9999.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v |
52 |
retrieving revision 1.161 |
53 |
retrieving revision 1.162 |
54 |
diff -u -r1.161 -r1.162 |
55 |
--- wine-9999.ebuild 17 Dec 2013 12:33:14 -0000 1.161 |
56 |
+++ wine-9999.ebuild 4 Jan 2014 03:49:37 -0000 1.162 |
57 |
@@ -1,6 +1,6 @@ |
58 |
-# Copyright 1999-2013 Gentoo Foundation |
59 |
+# Copyright 1999-2014 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.161 2013/12/17 12:33:14 tetromino Exp $ |
62 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.162 2014/01/04 03:49:37 tetromino Exp $ |
63 |
|
64 |
EAPI="5" |
65 |
|
66 |
@@ -24,7 +24,7 @@ |
67 |
|
68 |
GV="2.24" |
69 |
MV="4.5.2" |
70 |
-PULSE_PATCHES="winepulse-patches-1.7.8" |
71 |
+PULSE_PATCHES="winepulse-patches-1.7.10" |
72 |
WINE_GENTOO="wine-gentoo-2013.06.24" |
73 |
DESCRIPTION="Free implementation of Windows(tm) on Unix" |
74 |
HOMEPAGE="http://www.winehq.org/" |
75 |
|
76 |
|
77 |
|
78 |
1.1 app-emulation/wine/wine-1.7.10.ebuild |
79 |
|
80 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.10.ebuild?rev=1.1&view=markup |
81 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.7.10.ebuild?rev=1.1&content-type=text/plain |
82 |
|
83 |
Index: wine-1.7.10.ebuild |
84 |
=================================================================== |
85 |
# Copyright 1999-2014 Gentoo Foundation |
86 |
# Distributed under the terms of the GNU General Public License v2 |
87 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.10.ebuild,v 1.1 2014/01/04 03:49:37 tetromino Exp $ |
88 |
|
89 |
EAPI="5" |
90 |
|
91 |
AUTOTOOLS_AUTORECONF=1 |
92 |
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" |
93 |
PLOCALE_BACKUP="en" |
94 |
|
95 |
inherit autotools-multilib eutils fdo-mime flag-o-matic gnome2-utils l10n multilib pax-utils toolchain-funcs virtualx |
96 |
|
97 |
if [[ ${PV} == "9999" ]] ; then |
98 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
99 |
inherit git-2 |
100 |
SRC_URI="" |
101 |
#KEYWORDS="" |
102 |
else |
103 |
MY_P="${PN}-${PV/_/-}" |
104 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
105 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
106 |
S=${WORKDIR}/${MY_P} |
107 |
fi |
108 |
|
109 |
GV="2.24" |
110 |
MV="4.5.2" |
111 |
PULSE_PATCHES="winepulse-patches-1.7.10" |
112 |
WINE_GENTOO="wine-gentoo-2013.06.24" |
113 |
DESCRIPTION="Free implementation of Windows(tm) on Unix" |
114 |
HOMEPAGE="http://www.winehq.org/" |
115 |
SRC_URI="${SRC_URI} |
116 |
gecko? ( |
117 |
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi ) |
118 |
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
119 |
) |
120 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
121 |
pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) |
122 |
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" |
123 |
|
124 |
LICENSE="LGPL-2.1" |
125 |
SLOT="0" |
126 |
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 +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml" |
127 |
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
128 |
test? ( abi_x86_32 ) |
129 |
elibc_glibc? ( threads ) |
130 |
mono? ( abi_x86_32 ) |
131 |
osmesa? ( opengl )" #286560 |
132 |
|
133 |
# FIXME: the test suite is unsuitable for us; many tests require net access |
134 |
# or fail due to Xvfb's opengl limitations. |
135 |
RESTRICT="test" |
136 |
|
137 |
NATIVE_DEPEND=" |
138 |
truetype? ( >=media-libs/freetype-2.0.0 ) |
139 |
capi? ( net-dialup/capi4k-utils ) |
140 |
ncurses? ( >=sys-libs/ncurses-5.2:= ) |
141 |
udisks? ( sys-apps/dbus ) |
142 |
fontconfig? ( media-libs/fontconfig:= ) |
143 |
gphoto2? ( media-libs/libgphoto2:= ) |
144 |
openal? ( media-libs/openal:= ) |
145 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
146 |
X? ( |
147 |
x11-libs/libXcursor |
148 |
x11-libs/libXext |
149 |
x11-libs/libXrandr |
150 |
x11-libs/libXi |
151 |
x11-libs/libXxf86vm |
152 |
) |
153 |
xinerama? ( x11-libs/libXinerama ) |
154 |
alsa? ( media-libs/alsa-lib ) |
155 |
cups? ( net-print/cups:= ) |
156 |
opencl? ( virtual/opencl ) |
157 |
opengl? ( |
158 |
virtual/glu |
159 |
virtual/opengl |
160 |
) |
161 |
gsm? ( media-sound/gsm:= ) |
162 |
jpeg? ( virtual/jpeg:0= ) |
163 |
ldap? ( net-nds/openldap:= ) |
164 |
lcms? ( media-libs/lcms:2= ) |
165 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
166 |
netapi? ( net-fs/samba[netapi(+)] ) |
167 |
nls? ( sys-devel/gettext ) |
168 |
odbc? ( dev-db/unixODBC:= ) |
169 |
osmesa? ( media-libs/mesa[osmesa] ) |
170 |
pulseaudio? ( media-sound/pulseaudio ) |
171 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
172 |
scanner? ( media-gfx/sane-backends:= ) |
173 |
ssl? ( net-libs/gnutls:= ) |
174 |
png? ( media-libs/libpng:0= ) |
175 |
v4l? ( media-libs/libv4l ) |
176 |
xcomposite? ( x11-libs/libXcomposite )" |
177 |
|
178 |
COMMON_DEPEND=" |
179 |
!amd64? ( ${NATIVE_DEPEND} ) |
180 |
amd64? ( |
181 |
abi_x86_64? ( ${NATIVE_DEPEND} ) |
182 |
abi_x86_32? ( |
183 |
truetype? ( || ( |
184 |
>=app-emulation/emul-linux-x86-xlibs-2.1[development] |
185 |
>=media-libs/freetype-2.0.0[abi_x86_32] |
186 |
) ) |
187 |
ncurses? ( || ( |
188 |
app-emulation/emul-linux-x86-baselibs[development] |
189 |
sys-libs/ncurses[abi_x86_32] |
190 |
) ) |
191 |
udisks? ( || ( |
192 |
>=app-emulation/emul-linux-x86-baselibs-20130224[development] |
193 |
sys-apps/dbus[abi_x86_32] |
194 |
) ) |
195 |
fontconfig? ( || ( |
196 |
app-emulation/emul-linux-x86-xlibs[development] |
197 |
media-libs/fontconfig[abi_x86_32] |
198 |
) ) |
199 |
gphoto2? ( |
200 |
app-emulation/emul-linux-x86-medialibs[development] |
201 |
) |
202 |
openal? ( || ( |
203 |
app-emulation/emul-linux-x86-sdl[development] |
204 |
media-libs/openal[abi_x86_32] |
205 |
) ) |
206 |
gstreamer? ( |
207 |
app-emulation/emul-linux-x86-gstplugins |
208 |
app-emulation/emul-linux-x86-medialibs[development] |
209 |
) |
210 |
X? ( || ( |
211 |
app-emulation/emul-linux-x86-xlibs[development] |
212 |
( |
213 |
x11-libs/libXcursor[abi_x86_32] |
214 |
x11-libs/libXext[abi_x86_32] |
215 |
x11-libs/libXrandr[abi_x86_32] |
216 |
x11-libs/libXi[abi_x86_32] |
217 |
x11-libs/libXxf86vm[abi_x86_32] |
218 |
) |
219 |
) ) |
220 |
xinerama? ( || ( |
221 |
app-emulation/emul-linux-x86-xlibs[development] |
222 |
x11-libs/libXinerama[abi_x86_32] |
223 |
) ) |
224 |
alsa? ( || ( |
225 |
app-emulation/emul-linux-x86-soundlibs[alsa,development] |
226 |
media-libs/alsa-lib[abi_x86_32] |
227 |
) ) |
228 |
cups? ( app-emulation/emul-linux-x86-baselibs ) |
229 |
opencl? ( virtual/opencl[abi_x86_32] ) |
230 |
opengl? ( || ( |
231 |
app-emulation/emul-linux-x86-opengl[development] |
232 |
( |
233 |
virtual/glu[abi_x86_32] |
234 |
virtual/opengl[abi_x86_32] |
235 |
) |
236 |
) ) |
237 |
gsm? ( || ( |
238 |
app-emulation/emul-linux-x86-soundlibs[development] |
239 |
media-sound/gsm[abi_x86_32] |
240 |
) ) |
241 |
jpeg? ( || ( |
242 |
app-emulation/emul-linux-x86-baselibs[development] |
243 |
virtual/jpeg:0[abi_x86_32] |
244 |
) ) |
245 |
ldap? ( app-emulation/emul-linux-x86-baselibs[development] ) |
246 |
lcms? ( || ( |
247 |
app-emulation/emul-linux-x86-baselibs[development] |
248 |
media-libs/lcms:2[abi_x86_32] |
249 |
) ) |
250 |
mp3? ( || ( |
251 |
app-emulation/emul-linux-x86-soundlibs[development] |
252 |
>=media-sound/mpg123-1.5.0[abi_x86_32] |
253 |
) ) |
254 |
nls? ( app-emulation/emul-linux-x86-baselibs[development] ) |
255 |
odbc? ( app-emulation/emul-linux-x86-db[development] ) |
256 |
osmesa? ( || ( |
257 |
>=app-emulation/emul-linux-x86-opengl-20121028[development] |
258 |
media-libs/mesa[osmesa,abi_x86_32] |
259 |
) ) |
260 |
pulseaudio? ( || ( |
261 |
app-emulation/emul-linux-x86-soundlibs[development] |
262 |
>=media-sound/pulseaudio-4.0-r1[abi_x86_32] |
263 |
) ) |
264 |
xml? ( >=app-emulation/emul-linux-x86-baselibs-20131008[development] ) |
265 |
scanner? ( app-emulation/emul-linux-x86-medialibs[development] ) |
266 |
ssl? ( app-emulation/emul-linux-x86-baselibs[development] ) |
267 |
png? ( || ( |
268 |
app-emulation/emul-linux-x86-baselibs[development] |
269 |
media-libs/libpng:0[abi_x86_32] |
270 |
) ) |
271 |
v4l? ( || ( |
272 |
app-emulation/emul-linux-x86-medialibs[development] |
273 |
media-libs/libv4l[abi_x86_32] |
274 |
) ) |
275 |
xcomposite? ( || ( |
276 |
app-emulation/emul-linux-x86-xlibs[development] |
277 |
x11-libs/libXcomposite[abi_x86_32] |
278 |
) ) |
279 |
) |
280 |
)" |
281 |
|
282 |
RDEPEND="${COMMON_DEPEND} |
283 |
dos? ( games-emulation/dosbox ) |
284 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
285 |
samba? ( >=net-fs/samba-3.0.25 ) |
286 |
selinux? ( sec-policy/selinux-wine ) |
287 |
udisks? ( sys-fs/udisks:2 ) |
288 |
pulseaudio? ( realtime? ( sys-auth/rtkit ) )" |
289 |
|
290 |
DEPEND="${COMMON_DEPEND} |
291 |
amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) ) |
292 |
X? ( |
293 |
x11-proto/inputproto |
294 |
x11-proto/xextproto |
295 |
x11-proto/xf86vidmodeproto |
296 |
) |
297 |
xinerama? ( x11-proto/xineramaproto ) |
298 |
prelink? ( sys-devel/prelink ) |
299 |
>=sys-kernel/linux-headers-2.6 |
300 |
virtual/pkgconfig |
301 |
virtual/yacc |
302 |
sys-devel/flex" |
303 |
|
304 |
# These use a non-standard "Wine" category, which is provided by |
305 |
# /etc/xdg/applications-merged/wine.menu |
306 |
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
307 |
usr/share/applications/wine-notepad.desktop |
308 |
usr/share/applications/wine-uninstaller.desktop |
309 |
usr/share/applications/wine-winecfg.desktop" |
310 |
|
311 |
wine_build_environment_check() { |
312 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
313 |
|
314 |
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then |
315 |
eerror "You need gcc-4.4+ to build 64-bit wine" |
316 |
eerror |
317 |
return 1 |
318 |
fi |
319 |
|
320 |
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then |
321 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
322 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
323 |
eerror |
324 |
return 1 |
325 |
fi |
326 |
} |
327 |
|
328 |
pkg_pretend() { |
329 |
wine_build_environment_check || die |
330 |
} |
331 |
|
332 |
pkg_setup() { |
333 |
wine_build_environment_check || die |
334 |
} |
335 |
|
336 |
src_unpack() { |
337 |
if [[ ${PV} == "9999" ]] ; then |
338 |
git-2_src_unpack |
339 |
else |
340 |
unpack ${MY_P}.tar.bz2 |
341 |
fi |
342 |
|
343 |
use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" |
344 |
unpack "${WINE_GENTOO}.tar.bz2" |
345 |
|
346 |
l10n_find_plocales_changes "${S}/po" "" ".po" |
347 |
} |
348 |
|
349 |
src_prepare() { |
350 |
local md5="$(md5sum server/protocol.def)" |
351 |
local PATCHES=( |
352 |
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726 |
353 |
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
354 |
"${FILESDIR}"/${PN}-1.7.2-osmesa-check.patch #429386 |
355 |
"${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 |
356 |
) |
357 |
use pulseaudio && PATCHES+=( |
358 |
"../${PULSE_PATCHES}"/*.patch #421365 |
359 |
) |
360 |
|
361 |
autotools-utils_src_prepare |
362 |
|
363 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
364 |
einfo "server/protocol.def was patched; running tools/make_requests" |
365 |
tools/make_requests || die #432348 |
366 |
fi |
367 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
368 |
if ! use run-exes; then |
369 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
370 |
fi |
371 |
|
372 |
# hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652 |
373 |
cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die |
374 |
|
375 |
l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS |
376 |
} |
377 |
|
378 |
do_configure() { |
379 |
local myeconfargs=( "${myeconfargs[@]}" ) |
380 |
|
381 |
if use amd64; then |
382 |
if [[ ${ABI} == amd64 ]]; then |
383 |
myeconfargs+=( --enable-win64 ) |
384 |
else |
385 |
use netapi && ewarn "Disabling netapi in wine32; see https://bugs.gentoo.org/494394" |
386 |
# We currently don't have 32-bit libnetapi on amd64; #494394 |
387 |
myeconfargs+=( |
388 |
--without-netapi |
389 |
--disable-win64 |
390 |
) |
391 |
fi |
392 |
|
393 |
# Note: using --with-wine64 results in problems with multilib.eclass |
394 |
# CC/LD hackery. We're using separate tools instead. |
395 |
fi |
396 |
|
397 |
autotools-utils_src_configure |
398 |
} |
399 |
|
400 |
src_configure() { |
401 |
export LDCONFIG=/bin/true |
402 |
use custom-cflags || strip-flags |
403 |
|
404 |
local myeconfargs=( # common |
405 |
--sysconfdir=/etc/wine |
406 |
$(use_with alsa) |
407 |
$(use_with capi) |
408 |
$(use_with lcms cms) |
409 |
$(use_with cups) |
410 |
$(use_with ncurses curses) |
411 |
$(use_with udisks dbus) |
412 |
$(use_with fontconfig) |
413 |
$(use_with ssl gnutls) |
414 |
$(use_with gphoto2 gphoto) |
415 |
$(use_with gsm) |
416 |
$(use_with gstreamer) |
417 |
--without-hal |
418 |
$(use_with jpeg) |
419 |
$(use_with ldap) |
420 |
$(use_with mp3 mpg123) |
421 |
$(use_with netapi) |
422 |
$(use_with nls gettext) |
423 |
$(use_with openal) |
424 |
$(use_with opencl) |
425 |
$(use_with opengl) |
426 |
$(use_with osmesa) |
427 |
$(use_with oss) |
428 |
$(use_with png) |
429 |
$(use_with threads pthread) |
430 |
$(use_with scanner sane) |
431 |
$(use_enable test tests) |
432 |
$(use_with truetype freetype) |
433 |
$(use_with v4l) |
434 |
$(use_with X x) |
435 |
$(use_with xcomposite) |
436 |
$(use_with xinerama) |
437 |
$(use_with xml) |
438 |
$(use_with xml xslt) |
439 |
) |
440 |
|
441 |
use pulseaudio && myeconfargs+=( --with-pulse ) |
442 |
|
443 |
if use amd64 && use abi_x86_32; then |
444 |
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
445 |
# set AR and RANLIB to make QA scripts happy; #483342 |
446 |
tc-export PKG_CONFIG AR RANLIB |
447 |
fi |
448 |
|
449 |
multilib_parallel_foreach_abi do_configure |
450 |
} |
451 |
|
452 |
src_compile() { |
453 |
autotools-multilib_src_compile depend |
454 |
autotools-multilib_src_compile all |
455 |
} |
456 |
|
457 |
src_test() { |
458 |
if [[ $(id -u) == 0 ]]; then |
459 |
ewarn "Skipping tests since they cannot be run under the root user." |
460 |
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf" |
461 |
return |
462 |
fi |
463 |
|
464 |
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
465 |
multilib_toolchain_setup x86 |
466 |
local BUILD_DIR="${S}-${ABI}" |
467 |
cd "${BUILD_DIR}" || die |
468 |
WINEPREFIX="${T}/.wine-${ABI}" Xemake test |
469 |
} |
470 |
|
471 |
src_install() { |
472 |
local DOCS=( ANNOUNCE AUTHORS README ) |
473 |
add_locale_docs() { |
474 |
local locale_doc="documentation/README.$1" |
475 |
[[ ! -e ${locale_doc} ]] || DOCS=( "${DOCS[@]}" ${locale_doc} ) |
476 |
} |
477 |
l10n_for_each_locale_do add_locale_docs |
478 |
autotools-multilib_src_install |
479 |
|
480 |
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}" |
481 |
if use gecko ; then |
482 |
insinto /usr/share/wine/gecko |
483 |
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
484 |
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
485 |
fi |
486 |
if use mono ; then |
487 |
insinto /usr/share/wine/mono |
488 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
489 |
fi |
490 |
if ! use perl ; then |
491 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
492 |
fi |
493 |
|
494 |
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
495 |
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
496 |
|
497 |
if use abi_x86_64 && ! use abi_x86_32; then |
498 |
dosym /usr/bin/wine{64,} # 404331 |
499 |
dosym /usr/bin/wine{64,}-preloader |
500 |
fi |
501 |
|
502 |
# respect LINGUAS when installing man pages, #469418 |
503 |
for l in de fr pl; do |
504 |
use linguas_${l} || rm -r "${D}"usr/share/man/${l}* |
505 |
done |
506 |
} |
507 |
|
508 |
pkg_preinst() { |
509 |
gnome2_icon_savelist |
510 |
} |
511 |
|
512 |
pkg_postinst() { |
513 |
gnome2_icon_cache_update |
514 |
fdo-mime_desktop_database_update |
515 |
} |
516 |
|
517 |
pkg_postrm() { |
518 |
gnome2_icon_cache_update |
519 |
fdo-mime_desktop_database_update |
520 |
} |