1 |
tetromino 12/10/29 23:36:46 |
2 |
|
3 |
Modified: ChangeLog wine-9999.ebuild metadata.xml |
4 |
Added: wine-1.5.14-r1.ebuild wine-1.5.10-r1.ebuild |
5 |
wine-1.5.15-r2.ebuild wine-1.5.13-r1.ebuild |
6 |
wine-1.5.16-r1.ebuild wine-1.5.11-r1.ebuild |
7 |
wine-1.5.12-r1.ebuild |
8 |
Removed: wine-1.5.16.ebuild wine-1.5.12.ebuild |
9 |
wine-1.5.15.ebuild wine-1.5.10.ebuild |
10 |
wine-1.5.11.ebuild wine-1.5.15-r1.ebuild |
11 |
wine-1.5.13.ebuild wine-1.5.14.ebuild |
12 |
Log: |
13 |
Enable osmesa for win32 on amd64 since emul-linux-x86-opengl-20121028 now includes libOSMesa.so |
14 |
|
15 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
16 |
|
17 |
Revision Changes Path |
18 |
1.436 app-emulation/wine/ChangeLog |
19 |
|
20 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.436&view=markup |
21 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.436&content-type=text/plain |
22 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.435&r2=1.436 |
23 |
|
24 |
Index: ChangeLog |
25 |
=================================================================== |
26 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v |
27 |
retrieving revision 1.435 |
28 |
retrieving revision 1.436 |
29 |
diff -u -r1.435 -r1.436 |
30 |
--- ChangeLog 26 Oct 2012 20:35:36 -0000 1.435 |
31 |
+++ ChangeLog 29 Oct 2012 23:36:46 -0000 1.436 |
32 |
@@ -1,6 +1,23 @@ |
33 |
# ChangeLog for app-emulation/wine |
34 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
35 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.435 2012/10/26 20:35:36 tetromino Exp $ |
36 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.436 2012/10/29 23:36:46 tetromino Exp $ |
37 |
+ |
38 |
+*wine-1.5.16-r1 (29 Oct 2012) |
39 |
+*wine-1.5.15-r2 (29 Oct 2012) |
40 |
+*wine-1.5.14-r1 (29 Oct 2012) |
41 |
+*wine-1.5.13-r1 (29 Oct 2012) |
42 |
+*wine-1.5.12-r1 (29 Oct 2012) |
43 |
+*wine-1.5.11-r1 (29 Oct 2012) |
44 |
+*wine-1.5.10-r1 (29 Oct 2012) |
45 |
+ |
46 |
+ 29 Oct 2012; Alexandre Rostovtsev <tetromino@g.o> -wine-1.5.10.ebuild, |
47 |
+ +wine-1.5.10-r1.ebuild, -wine-1.5.11.ebuild, +wine-1.5.11-r1.ebuild, |
48 |
+ -wine-1.5.12.ebuild, +wine-1.5.12-r1.ebuild, -wine-1.5.13.ebuild, |
49 |
+ +wine-1.5.13-r1.ebuild, -wine-1.5.14.ebuild, +wine-1.5.14-r1.ebuild, |
50 |
+ -wine-1.5.15.ebuild, -wine-1.5.15-r1.ebuild, +wine-1.5.15-r2.ebuild, |
51 |
+ -wine-1.5.16.ebuild, +wine-1.5.16-r1.ebuild, wine-9999.ebuild, metadata.xml: |
52 |
+ Enable osmesa for win32 on amd64 since emul-linux-x86-opengl-20121028 now |
53 |
+ includes libOSMesa.so |
54 |
|
55 |
*wine-1.5.16 (26 Oct 2012) |
56 |
|
57 |
|
58 |
|
59 |
|
60 |
1.120 app-emulation/wine/wine-9999.ebuild |
61 |
|
62 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.120&view=markup |
63 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?rev=1.120&content-type=text/plain |
64 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-9999.ebuild?r1=1.119&r2=1.120 |
65 |
|
66 |
Index: wine-9999.ebuild |
67 |
=================================================================== |
68 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v |
69 |
retrieving revision 1.119 |
70 |
retrieving revision 1.120 |
71 |
diff -u -r1.119 -r1.120 |
72 |
--- wine-9999.ebuild 26 Oct 2012 20:35:36 -0000 1.119 |
73 |
+++ wine-9999.ebuild 29 Oct 2012 23:36:46 -0000 1.120 |
74 |
@@ -1,6 +1,6 @@ |
75 |
# Copyright 1999-2012 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.119 2012/10/26 20:35:36 tetromino Exp $ |
78 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.120 2012/10/29 23:36:46 tetromino Exp $ |
79 |
|
80 |
EAPI="4" |
81 |
|
82 |
@@ -33,7 +33,7 @@ |
83 |
|
84 |
LICENSE="LGPL-2.1" |
85 |
SLOT="0" |
86 |
-IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa osmesa-multilib +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
87 |
+IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
88 |
REQUIRED_USE="elibc_glibc? ( threads ) |
89 |
mono? ( || ( win32 !win64 ) ) |
90 |
osmesa? ( opengl )" #286560 |
91 |
@@ -49,6 +49,7 @@ |
92 |
odbc? ( app-emulation/emul-linux-x86-db ) |
93 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
94 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
95 |
+ osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
96 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
97 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
98 |
app-emulation/emul-linux-x86-baselibs |
99 |
@@ -158,16 +159,6 @@ |
100 |
mkdir -p "${builddir}" |
101 |
pushd "${builddir}" >/dev/null |
102 |
|
103 |
- with_osmesa=$(use_with osmesa) |
104 |
- if use amd64 && [[ $1 = 32 ]]; then #430268 |
105 |
- if use osmesa-multilib; then |
106 |
- with_osmesa=--with-osmesa |
107 |
- else |
108 |
- elog "win32 osmesa support is disabled for now, see bug #430268" |
109 |
- with_osmesa=--without-osmesa |
110 |
- fi |
111 |
- fi |
112 |
- |
113 |
ECONF_SOURCE=${S} \ |
114 |
econf \ |
115 |
--sysconfdir=/etc/wine \ |
116 |
@@ -191,7 +182,7 @@ |
117 |
$(use_with opencl) \ |
118 |
$(use_with opengl) \ |
119 |
$(use_with ssl openssl) \ |
120 |
- ${with_osmesa} \ |
121 |
+ $(use_with osmesa) \ |
122 |
$(use_with oss) \ |
123 |
$(use_with png) \ |
124 |
$(use_with threads pthread) \ |
125 |
|
126 |
|
127 |
|
128 |
1.20 app-emulation/wine/metadata.xml |
129 |
|
130 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/metadata.xml?rev=1.20&view=markup |
131 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/metadata.xml?rev=1.20&content-type=text/plain |
132 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/metadata.xml?r1=1.19&r2=1.20 |
133 |
|
134 |
Index: metadata.xml |
135 |
=================================================================== |
136 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/metadata.xml,v |
137 |
retrieving revision 1.19 |
138 |
retrieving revision 1.20 |
139 |
diff -u -r1.19 -r1.20 |
140 |
--- metadata.xml 12 Oct 2012 21:17:20 -0000 1.19 |
141 |
+++ metadata.xml 29 Oct 2012 23:36:46 -0000 1.20 |
142 |
@@ -14,9 +14,6 @@ |
143 |
<flag name='mono'>Add support for .NET using Wine's Mono add-on</flag> |
144 |
<flag name='opencl'>Enable OpenCL support</flag> |
145 |
<flag name='osmesa'>Add support for OpenGL in bitmaps using libOSMesa</flag> |
146 |
- <flag name='osmesa-multilib'>Enable libOSMesa support for Win32 on amd64. |
147 |
- WARNING: you must install an appropriate version of 32-bit libOSMesa manually |
148 |
- or from an overlay; see bug #430268</flag> |
149 |
<flag name='perl'>Install helpers written in perl (winedump/winemaker)</flag> |
150 |
<flag name='samba'>Add support for NTLM auth. see |
151 |
http://wiki.winehq.org/NtlmAuthSetupGuide and |
152 |
|
153 |
|
154 |
|
155 |
1.1 app-emulation/wine/wine-1.5.14-r1.ebuild |
156 |
|
157 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.14-r1.ebuild?rev=1.1&view=markup |
158 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.14-r1.ebuild?rev=1.1&content-type=text/plain |
159 |
|
160 |
Index: wine-1.5.14-r1.ebuild |
161 |
=================================================================== |
162 |
# Copyright 1999-2012 Gentoo Foundation |
163 |
# Distributed under the terms of the GNU General Public License v2 |
164 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.14-r1.ebuild,v 1.1 2012/10/29 23:36:46 tetromino Exp $ |
165 |
|
166 |
EAPI="4" |
167 |
|
168 |
inherit autotools eutils flag-o-matic multilib pax-utils |
169 |
|
170 |
if [[ ${PV} == "9999" ]] ; then |
171 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
172 |
inherit git-2 |
173 |
SRC_URI="" |
174 |
#KEYWORDS="" |
175 |
else |
176 |
MY_P="${PN}-${PV/_/-}" |
177 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
178 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
179 |
S=${WORKDIR}/${MY_P} |
180 |
fi |
181 |
|
182 |
GV="1.7" |
183 |
MV="0.0.4" |
184 |
PULSE_PATCH="winepulse-2012.06.15.patch" |
185 |
DESCRIPTION="free implementation of Windows(tm) on Unix" |
186 |
HOMEPAGE="http://www.winehq.org/" |
187 |
SRC_URI="${SRC_URI} |
188 |
gecko? ( |
189 |
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
190 |
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
191 |
) |
192 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
193 |
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}" |
194 |
|
195 |
LICENSE="LGPL-2.1" |
196 |
SLOT="0" |
197 |
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
198 |
REQUIRED_USE="elibc_glibc? ( threads ) |
199 |
mono? ( || ( win32 !win64 ) ) |
200 |
osmesa? ( opengl )" #286560 |
201 |
RESTRICT="test" #72375 |
202 |
|
203 |
MLIB_DEPS="amd64? ( |
204 |
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
205 |
X? ( |
206 |
>=app-emulation/emul-linux-x86-xlibs-2.1 |
207 |
>=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?] |
208 |
) |
209 |
mp3? ( app-emulation/emul-linux-x86-soundlibs ) |
210 |
odbc? ( app-emulation/emul-linux-x86-db ) |
211 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
212 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
213 |
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
214 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
215 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
216 |
app-emulation/emul-linux-x86-baselibs |
217 |
>=sys-kernel/linux-headers-2.6 |
218 |
)" |
219 |
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
220 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
221 |
capi? ( net-dialup/capi4k-utils ) |
222 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
223 |
fontconfig? ( media-libs/fontconfig ) |
224 |
gphoto2? ( media-libs/libgphoto2 ) |
225 |
openal? ( media-libs/openal ) |
226 |
udisks? ( |
227 |
sys-apps/dbus |
228 |
sys-fs/udisks:2 |
229 |
) |
230 |
gnutls? ( net-libs/gnutls ) |
231 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
232 |
X? ( |
233 |
x11-libs/libXcursor |
234 |
x11-libs/libXrandr |
235 |
x11-libs/libXi |
236 |
x11-libs/libXmu |
237 |
x11-libs/libXxf86vm |
238 |
) |
239 |
xinerama? ( x11-libs/libXinerama ) |
240 |
alsa? ( media-libs/alsa-lib ) |
241 |
cups? ( net-print/cups ) |
242 |
opencl? ( virtual/opencl ) |
243 |
opengl? ( |
244 |
virtual/glu |
245 |
virtual/opengl |
246 |
) |
247 |
gsm? ( media-sound/gsm ) |
248 |
jpeg? ( virtual/jpeg ) |
249 |
ldap? ( net-nds/openldap ) |
250 |
lcms? ( =media-libs/lcms-1* ) |
251 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
252 |
nls? ( sys-devel/gettext ) |
253 |
odbc? ( dev-db/unixODBC ) |
254 |
osmesa? ( media-libs/mesa[osmesa] ) |
255 |
pulseaudio? ( media-sound/pulseaudio ) |
256 |
samba? ( >=net-fs/samba-3.0.25 ) |
257 |
selinux? ( sec-policy/selinux-wine ) |
258 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
259 |
scanner? ( media-gfx/sane-backends ) |
260 |
ssl? ( dev-libs/openssl ) |
261 |
png? ( media-libs/libpng ) |
262 |
v4l? ( media-libs/libv4l ) |
263 |
!win64? ( ${MLIB_DEPS} ) |
264 |
win32? ( ${MLIB_DEPS} ) |
265 |
xcomposite? ( x11-libs/libXcomposite )" |
266 |
DEPEND="${RDEPEND} |
267 |
X? ( |
268 |
x11-proto/inputproto |
269 |
x11-proto/xextproto |
270 |
x11-proto/xf86vidmodeproto |
271 |
) |
272 |
xinerama? ( x11-proto/xineramaproto ) |
273 |
!hardened? ( sys-devel/prelink ) |
274 |
virtual/pkgconfig |
275 |
virtual/yacc |
276 |
sys-devel/flex" |
277 |
|
278 |
src_unpack() { |
279 |
if use win64 ; then |
280 |
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
281 |
&& die "you need gcc-4.4+ to build 64bit wine" |
282 |
fi |
283 |
|
284 |
if use win32 && use opencl; then |
285 |
[[ x$(eselect opencl show) = "xintel" ]] && |
286 |
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 |
287 |
fi |
288 |
|
289 |
if [[ ${PV} == "9999" ]] ; then |
290 |
git-2_src_unpack |
291 |
else |
292 |
unpack ${MY_P}.tar.bz2 |
293 |
fi |
294 |
} |
295 |
|
296 |
src_prepare() { |
297 |
local md5="$(md5sum server/protocol.def)" |
298 |
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 |
299 |
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
300 |
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386 |
301 |
epatch "${DISTDIR}/${PULSE_PATCH}" #421365 |
302 |
epatch_user #282735 |
303 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
304 |
einfo "server/protocol.def was patched; running tools/make_requests" |
305 |
tools/make_requests || die #432348 |
306 |
fi |
307 |
eautoreconf |
308 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
309 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
310 |
} |
311 |
|
312 |
do_configure() { |
313 |
local builddir="${WORKDIR}/wine$1" |
314 |
mkdir -p "${builddir}" |
315 |
pushd "${builddir}" >/dev/null |
316 |
|
317 |
ECONF_SOURCE=${S} \ |
318 |
econf \ |
319 |
--sysconfdir=/etc/wine \ |
320 |
$(use_with alsa) \ |
321 |
$(use_with capi) \ |
322 |
$(use_with lcms cms) \ |
323 |
$(use_with cups) \ |
324 |
$(use_with ncurses curses) \ |
325 |
$(use_with udisks dbus) \ |
326 |
$(use_with fontconfig) \ |
327 |
$(use_with gnutls) \ |
328 |
$(use_with gphoto2 gphoto) \ |
329 |
$(use_with gsm) \ |
330 |
$(use_with gstreamer) \ |
331 |
--without-hal \ |
332 |
$(use_with jpeg) \ |
333 |
$(use_with ldap) \ |
334 |
$(use_with mp3 mpg123) \ |
335 |
$(use_with nls gettext) \ |
336 |
$(use_with openal) \ |
337 |
$(use_with opencl) \ |
338 |
$(use_with opengl) \ |
339 |
$(use_with ssl openssl) \ |
340 |
$(use_with osmesa) \ |
341 |
$(use_with oss) \ |
342 |
$(use_with png) \ |
343 |
$(use_with threads pthread) \ |
344 |
$(use_with pulseaudio pulse) \ |
345 |
$(use_with scanner sane) \ |
346 |
$(use_enable test tests) \ |
347 |
$(use_with truetype freetype) \ |
348 |
$(use_with v4l) \ |
349 |
$(use_with X x) \ |
350 |
$(use_with xcomposite) \ |
351 |
$(use_with xinerama) \ |
352 |
$(use_with xml) \ |
353 |
$(use_with xml xslt) \ |
354 |
$2 |
355 |
|
356 |
emake -j1 depend |
357 |
|
358 |
popd >/dev/null |
359 |
} |
360 |
|
361 |
src_configure() { |
362 |
export LDCONFIG=/bin/true |
363 |
use custom-cflags || strip-flags |
364 |
|
365 |
if use win64 ; then |
366 |
do_configure 64 --enable-win64 |
367 |
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
368 |
else |
369 |
ABI=x86 do_configure 32 --disable-win64 |
370 |
fi |
371 |
} |
372 |
|
373 |
src_compile() { |
374 |
local b |
375 |
for b in 64 32 ; do |
376 |
local builddir="${WORKDIR}/wine${b}" |
377 |
[[ -d ${builddir} ]] || continue |
378 |
emake -C "${builddir}" all |
379 |
done |
380 |
} |
381 |
|
382 |
src_install() { |
383 |
local b |
384 |
for b in 64 32 ; do |
385 |
local builddir="${WORKDIR}/wine${b}" |
386 |
[[ -d ${builddir} ]] || continue |
387 |
emake -C "${builddir}" install DESTDIR="${D}" |
388 |
done |
389 |
dodoc ANNOUNCE AUTHORS README |
390 |
if use gecko ; then |
391 |
insinto /usr/share/wine/gecko |
392 |
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
393 |
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
394 |
fi |
395 |
if use mono ; then |
396 |
insinto /usr/share/wine/mono |
397 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
398 |
fi |
399 |
if ! use perl ; then |
400 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
401 |
fi |
402 |
|
403 |
if use win32 || ! use win64; then |
404 |
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
405 |
fi |
406 |
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
407 |
|
408 |
if use win64 && ! use win32; then |
409 |
dosym /usr/bin/wine{64,} # 404331 |
410 |
dosym /usr/bin/wine{64,}-preloader |
411 |
fi |
412 |
} |
413 |
|
414 |
|
415 |
|
416 |
1.1 app-emulation/wine/wine-1.5.10-r1.ebuild |
417 |
|
418 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.10-r1.ebuild?rev=1.1&view=markup |
419 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.10-r1.ebuild?rev=1.1&content-type=text/plain |
420 |
|
421 |
Index: wine-1.5.10-r1.ebuild |
422 |
=================================================================== |
423 |
# Copyright 1999-2012 Gentoo Foundation |
424 |
# Distributed under the terms of the GNU General Public License v2 |
425 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.10-r1.ebuild,v 1.1 2012/10/29 23:36:46 tetromino Exp $ |
426 |
|
427 |
EAPI="4" |
428 |
|
429 |
inherit autotools eutils flag-o-matic multilib pax-utils |
430 |
|
431 |
if [[ ${PV} == "9999" ]] ; then |
432 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
433 |
inherit git-2 |
434 |
SRC_URI="" |
435 |
#KEYWORDS="" |
436 |
else |
437 |
MY_P="${PN}-${PV/_/-}" |
438 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
439 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
440 |
S=${WORKDIR}/${MY_P} |
441 |
fi |
442 |
|
443 |
GV="1.7" |
444 |
MV="0.0.4" |
445 |
PULSE_PATCH="winepulse-2012.06.15.patch" |
446 |
DESCRIPTION="free implementation of Windows(tm) on Unix" |
447 |
HOMEPAGE="http://www.winehq.org/" |
448 |
SRC_URI="${SRC_URI} |
449 |
gecko? ( |
450 |
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
451 |
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
452 |
) |
453 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
454 |
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}" |
455 |
|
456 |
LICENSE="LGPL-2.1" |
457 |
SLOT="0" |
458 |
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
459 |
REQUIRED_USE="elibc_glibc? ( threads ) |
460 |
mono? ( || ( win32 !win64 ) ) |
461 |
osmesa? ( opengl )" #286560 |
462 |
RESTRICT="test" #72375 |
463 |
|
464 |
MLIB_DEPS="amd64? ( |
465 |
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
466 |
X? ( |
467 |
>=app-emulation/emul-linux-x86-xlibs-2.1 |
468 |
>=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?] |
469 |
) |
470 |
mp3? ( app-emulation/emul-linux-x86-soundlibs ) |
471 |
odbc? ( app-emulation/emul-linux-x86-db ) |
472 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
473 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
474 |
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
475 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
476 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
477 |
app-emulation/emul-linux-x86-baselibs |
478 |
>=sys-kernel/linux-headers-2.6 |
479 |
)" |
480 |
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
481 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
482 |
capi? ( net-dialup/capi4k-utils ) |
483 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
484 |
fontconfig? ( media-libs/fontconfig ) |
485 |
gphoto2? ( media-libs/libgphoto2 ) |
486 |
openal? ( media-libs/openal ) |
487 |
udisks? ( |
488 |
sys-apps/dbus |
489 |
sys-fs/udisks:2 |
490 |
) |
491 |
gnutls? ( net-libs/gnutls ) |
492 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
493 |
X? ( |
494 |
x11-libs/libXcursor |
495 |
x11-libs/libXrandr |
496 |
x11-libs/libXi |
497 |
x11-libs/libXmu |
498 |
x11-libs/libXxf86vm |
499 |
) |
500 |
xinerama? ( x11-libs/libXinerama ) |
501 |
alsa? ( media-libs/alsa-lib ) |
502 |
cups? ( net-print/cups ) |
503 |
opencl? ( virtual/opencl ) |
504 |
opengl? ( |
505 |
virtual/glu |
506 |
virtual/opengl |
507 |
) |
508 |
gsm? ( media-sound/gsm ) |
509 |
jpeg? ( virtual/jpeg ) |
510 |
ldap? ( net-nds/openldap ) |
511 |
lcms? ( =media-libs/lcms-1* ) |
512 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
513 |
nls? ( sys-devel/gettext ) |
514 |
odbc? ( dev-db/unixODBC ) |
515 |
osmesa? ( media-libs/mesa[osmesa] ) |
516 |
pulseaudio? ( media-sound/pulseaudio ) |
517 |
samba? ( >=net-fs/samba-3.0.25 ) |
518 |
selinux? ( sec-policy/selinux-wine ) |
519 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
520 |
scanner? ( media-gfx/sane-backends ) |
521 |
ssl? ( dev-libs/openssl ) |
522 |
png? ( media-libs/libpng ) |
523 |
v4l? ( media-libs/libv4l ) |
524 |
!win64? ( ${MLIB_DEPS} ) |
525 |
win32? ( ${MLIB_DEPS} ) |
526 |
xcomposite? ( x11-libs/libXcomposite )" |
527 |
DEPEND="${RDEPEND} |
528 |
X? ( |
529 |
x11-proto/inputproto |
530 |
x11-proto/xextproto |
531 |
x11-proto/xf86vidmodeproto |
532 |
) |
533 |
xinerama? ( x11-proto/xineramaproto ) |
534 |
!hardened? ( sys-devel/prelink ) |
535 |
virtual/pkgconfig |
536 |
virtual/yacc |
537 |
sys-devel/flex" |
538 |
|
539 |
src_unpack() { |
540 |
if use win64 ; then |
541 |
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
542 |
&& die "you need gcc-4.4+ to build 64bit wine" |
543 |
fi |
544 |
|
545 |
if use win32 && use opencl; then |
546 |
[[ x$(eselect opencl show) = "xintel" ]] && |
547 |
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 |
548 |
fi |
549 |
|
550 |
if [[ ${PV} == "9999" ]] ; then |
551 |
git-2_src_unpack |
552 |
else |
553 |
unpack ${MY_P}.tar.bz2 |
554 |
fi |
555 |
} |
556 |
|
557 |
src_prepare() { |
558 |
local md5="$(md5sum server/protocol.def)" |
559 |
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 |
560 |
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
561 |
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386 |
562 |
epatch "${DISTDIR}/${PULSE_PATCH}" #421365 |
563 |
epatch_user #282735 |
564 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
565 |
einfo "server/protocol.def was patched; running tools/make_requests" |
566 |
tools/make_requests || die #432348 |
567 |
fi |
568 |
eautoreconf |
569 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
570 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
571 |
} |
572 |
|
573 |
do_configure() { |
574 |
local builddir="${WORKDIR}/wine$1" |
575 |
mkdir -p "${builddir}" |
576 |
pushd "${builddir}" >/dev/null |
577 |
|
578 |
ECONF_SOURCE=${S} \ |
579 |
econf \ |
580 |
--sysconfdir=/etc/wine \ |
581 |
$(use_with alsa) \ |
582 |
$(use_with capi) \ |
583 |
$(use_with lcms cms) \ |
584 |
$(use_with cups) \ |
585 |
$(use_with ncurses curses) \ |
586 |
$(use_with udisks dbus) \ |
587 |
$(use_with fontconfig) \ |
588 |
$(use_with gnutls) \ |
589 |
$(use_with gphoto2 gphoto) \ |
590 |
$(use_with gsm) \ |
591 |
$(use_with gstreamer) \ |
592 |
--without-hal \ |
593 |
$(use_with jpeg) \ |
594 |
$(use_with ldap) \ |
595 |
$(use_with mp3 mpg123) \ |
596 |
$(use_with nls gettext) \ |
597 |
$(use_with openal) \ |
598 |
$(use_with opencl) \ |
599 |
$(use_with opengl) \ |
600 |
$(use_with ssl openssl) \ |
601 |
$(use_with osmesa) \ |
602 |
$(use_with oss) \ |
603 |
$(use_with png) \ |
604 |
$(use_with threads pthread) \ |
605 |
$(use_with pulseaudio pulse) \ |
606 |
$(use_with scanner sane) \ |
607 |
$(use_enable test tests) \ |
608 |
$(use_with truetype freetype) \ |
609 |
$(use_with v4l) \ |
610 |
$(use_with X x) \ |
611 |
$(use_with xcomposite) \ |
612 |
$(use_with xinerama) \ |
613 |
$(use_with xml) \ |
614 |
$(use_with xml xslt) \ |
615 |
$2 |
616 |
|
617 |
emake -j1 depend |
618 |
|
619 |
popd >/dev/null |
620 |
} |
621 |
|
622 |
src_configure() { |
623 |
export LDCONFIG=/bin/true |
624 |
use custom-cflags || strip-flags |
625 |
|
626 |
if use win64 ; then |
627 |
do_configure 64 --enable-win64 |
628 |
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
629 |
else |
630 |
ABI=x86 do_configure 32 --disable-win64 |
631 |
fi |
632 |
} |
633 |
|
634 |
src_compile() { |
635 |
local b |
636 |
for b in 64 32 ; do |
637 |
local builddir="${WORKDIR}/wine${b}" |
638 |
[[ -d ${builddir} ]] || continue |
639 |
emake -C "${builddir}" all |
640 |
done |
641 |
} |
642 |
|
643 |
src_install() { |
644 |
local b |
645 |
for b in 64 32 ; do |
646 |
local builddir="${WORKDIR}/wine${b}" |
647 |
[[ -d ${builddir} ]] || continue |
648 |
emake -C "${builddir}" install DESTDIR="${D}" |
649 |
done |
650 |
dodoc ANNOUNCE AUTHORS README |
651 |
if use gecko ; then |
652 |
insinto /usr/share/wine/gecko |
653 |
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
654 |
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
655 |
fi |
656 |
if use mono ; then |
657 |
insinto /usr/share/wine/mono |
658 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
659 |
fi |
660 |
if ! use perl ; then |
661 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
662 |
fi |
663 |
|
664 |
if use win32 || ! use win64; then |
665 |
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
666 |
fi |
667 |
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
668 |
|
669 |
if use win64 && ! use win32; then |
670 |
dosym /usr/bin/wine{64,} # 404331 |
671 |
dosym /usr/bin/wine{64,}-preloader |
672 |
fi |
673 |
} |
674 |
|
675 |
|
676 |
|
677 |
1.1 app-emulation/wine/wine-1.5.15-r2.ebuild |
678 |
|
679 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.15-r2.ebuild?rev=1.1&view=markup |
680 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.15-r2.ebuild?rev=1.1&content-type=text/plain |
681 |
|
682 |
Index: wine-1.5.15-r2.ebuild |
683 |
=================================================================== |
684 |
# Copyright 1999-2012 Gentoo Foundation |
685 |
# Distributed under the terms of the GNU General Public License v2 |
686 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.15-r2.ebuild,v 1.1 2012/10/29 23:36:46 tetromino Exp $ |
687 |
|
688 |
EAPI="4" |
689 |
|
690 |
inherit autotools eutils flag-o-matic multilib pax-utils |
691 |
|
692 |
if [[ ${PV} == "9999" ]] ; then |
693 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
694 |
inherit git-2 |
695 |
SRC_URI="" |
696 |
#KEYWORDS="" |
697 |
else |
698 |
MY_P="${PN}-${PV/_/-}" |
699 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
700 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
701 |
S=${WORKDIR}/${MY_P} |
702 |
fi |
703 |
|
704 |
GV="1.8" |
705 |
MV="0.0.4" |
706 |
PULSE_PATCHES="winepulse-patches-1.5.15" |
707 |
DESCRIPTION="free implementation of Windows(tm) on Unix" |
708 |
HOMEPAGE="http://www.winehq.org/" |
709 |
SRC_URI="${SRC_URI} |
710 |
gecko? ( |
711 |
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
712 |
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
713 |
) |
714 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
715 |
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2" |
716 |
|
717 |
LICENSE="LGPL-2.1" |
718 |
SLOT="0" |
719 |
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
720 |
REQUIRED_USE="elibc_glibc? ( threads ) |
721 |
mono? ( || ( win32 !win64 ) ) |
722 |
osmesa? ( opengl )" #286560 |
723 |
RESTRICT="test" #72375 |
724 |
|
725 |
MLIB_DEPS="amd64? ( |
726 |
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
727 |
X? ( |
728 |
>=app-emulation/emul-linux-x86-xlibs-2.1 |
729 |
>=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?] |
730 |
) |
731 |
mp3? ( app-emulation/emul-linux-x86-soundlibs ) |
732 |
odbc? ( app-emulation/emul-linux-x86-db ) |
733 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
734 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
735 |
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
736 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
737 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
738 |
app-emulation/emul-linux-x86-baselibs |
739 |
>=sys-kernel/linux-headers-2.6 |
740 |
)" |
741 |
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
742 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
743 |
capi? ( net-dialup/capi4k-utils ) |
744 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
745 |
fontconfig? ( media-libs/fontconfig ) |
746 |
gphoto2? ( media-libs/libgphoto2 ) |
747 |
openal? ( media-libs/openal ) |
748 |
udisks? ( |
749 |
sys-apps/dbus |
750 |
sys-fs/udisks:2 |
751 |
) |
752 |
gnutls? ( net-libs/gnutls ) |
753 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
754 |
X? ( |
755 |
x11-libs/libXcursor |
756 |
x11-libs/libXext |
757 |
x11-libs/libXrandr |
758 |
x11-libs/libXi |
759 |
x11-libs/libXmu |
760 |
x11-libs/libXxf86vm |
761 |
) |
762 |
xinerama? ( x11-libs/libXinerama ) |
763 |
alsa? ( media-libs/alsa-lib ) |
764 |
cups? ( net-print/cups ) |
765 |
opencl? ( virtual/opencl ) |
766 |
opengl? ( |
767 |
virtual/glu |
768 |
virtual/opengl |
769 |
) |
770 |
gsm? ( media-sound/gsm ) |
771 |
jpeg? ( virtual/jpeg ) |
772 |
ldap? ( net-nds/openldap ) |
773 |
lcms? ( =media-libs/lcms-1* ) |
774 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
775 |
nls? ( sys-devel/gettext ) |
776 |
odbc? ( dev-db/unixODBC ) |
777 |
osmesa? ( media-libs/mesa[osmesa] ) |
778 |
pulseaudio? ( |
779 |
media-sound/pulseaudio |
780 |
sys-auth/rtkit |
781 |
) |
782 |
samba? ( >=net-fs/samba-3.0.25 ) |
783 |
selinux? ( sec-policy/selinux-wine ) |
784 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
785 |
scanner? ( media-gfx/sane-backends ) |
786 |
ssl? ( dev-libs/openssl ) |
787 |
png? ( media-libs/libpng ) |
788 |
v4l? ( media-libs/libv4l ) |
789 |
!win64? ( ${MLIB_DEPS} ) |
790 |
win32? ( ${MLIB_DEPS} ) |
791 |
xcomposite? ( x11-libs/libXcomposite )" |
792 |
DEPEND="${RDEPEND} |
793 |
X? ( |
794 |
x11-proto/inputproto |
795 |
x11-proto/xextproto |
796 |
x11-proto/xf86vidmodeproto |
797 |
) |
798 |
xinerama? ( x11-proto/xineramaproto ) |
799 |
!hardened? ( sys-devel/prelink ) |
800 |
virtual/pkgconfig |
801 |
virtual/yacc |
802 |
sys-devel/flex" |
803 |
|
804 |
src_unpack() { |
805 |
if use win64 ; then |
806 |
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
807 |
&& die "you need gcc-4.4+ to build 64bit wine" |
808 |
fi |
809 |
|
810 |
if use win32 && use opencl; then |
811 |
[[ x$(eselect opencl show) = "xintel" ]] && |
812 |
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 |
813 |
fi |
814 |
|
815 |
if [[ ${PV} == "9999" ]] ; then |
816 |
git-2_src_unpack |
817 |
else |
818 |
unpack ${MY_P}.tar.bz2 |
819 |
fi |
820 |
|
821 |
unpack "${PULSE_PATCHES}.tar.bz2" |
822 |
} |
823 |
|
824 |
src_prepare() { |
825 |
local md5="$(md5sum server/protocol.def)" |
826 |
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 |
827 |
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
828 |
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386 |
829 |
epatch "../${PULSE_PATCHES}"/*.patch #421365 |
830 |
epatch_user #282735 |
831 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
832 |
einfo "server/protocol.def was patched; running tools/make_requests" |
833 |
tools/make_requests || die #432348 |
834 |
fi |
835 |
eautoreconf |
836 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
837 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
838 |
} |
839 |
|
840 |
do_configure() { |
841 |
local builddir="${WORKDIR}/wine$1" |
842 |
mkdir -p "${builddir}" |
843 |
pushd "${builddir}" >/dev/null |
844 |
|
845 |
ECONF_SOURCE=${S} \ |
846 |
econf \ |
847 |
--sysconfdir=/etc/wine \ |
848 |
$(use_with alsa) \ |
849 |
$(use_with capi) \ |
850 |
$(use_with lcms cms) \ |
851 |
$(use_with cups) \ |
852 |
$(use_with ncurses curses) \ |
853 |
$(use_with udisks dbus) \ |
854 |
$(use_with fontconfig) \ |
855 |
$(use_with gnutls) \ |
856 |
$(use_with gphoto2 gphoto) \ |
857 |
$(use_with gsm) \ |
858 |
$(use_with gstreamer) \ |
859 |
--without-hal \ |
860 |
$(use_with jpeg) \ |
861 |
$(use_with ldap) \ |
862 |
$(use_with mp3 mpg123) \ |
863 |
$(use_with nls gettext) \ |
864 |
$(use_with openal) \ |
865 |
$(use_with opencl) \ |
866 |
$(use_with opengl) \ |
867 |
$(use_with ssl openssl) \ |
868 |
$(use_with osmesa) \ |
869 |
$(use_with oss) \ |
870 |
$(use_with png) \ |
871 |
$(use_with threads pthread) \ |
872 |
$(use_with pulseaudio pulse) \ |
873 |
$(use_with scanner sane) \ |
874 |
$(use_enable test tests) \ |
875 |
$(use_with truetype freetype) \ |
876 |
$(use_with v4l) \ |
877 |
$(use_with X x) \ |
878 |
$(use_with xcomposite) \ |
879 |
$(use_with xinerama) \ |
880 |
$(use_with xml) \ |
881 |
$(use_with xml xslt) \ |
882 |
$2 |
883 |
|
884 |
emake -j1 depend |
885 |
|
886 |
popd >/dev/null |
887 |
} |
888 |
|
889 |
src_configure() { |
890 |
export LDCONFIG=/bin/true |
891 |
use custom-cflags || strip-flags |
892 |
|
893 |
if use win64 ; then |
894 |
do_configure 64 --enable-win64 |
895 |
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
896 |
else |
897 |
ABI=x86 do_configure 32 --disable-win64 |
898 |
fi |
899 |
} |
900 |
|
901 |
src_compile() { |
902 |
local b |
903 |
for b in 64 32 ; do |
904 |
local builddir="${WORKDIR}/wine${b}" |
905 |
[[ -d ${builddir} ]] || continue |
906 |
emake -C "${builddir}" all |
907 |
done |
908 |
} |
909 |
|
910 |
src_install() { |
911 |
local b |
912 |
for b in 64 32 ; do |
913 |
local builddir="${WORKDIR}/wine${b}" |
914 |
[[ -d ${builddir} ]] || continue |
915 |
emake -C "${builddir}" install DESTDIR="${D}" |
916 |
done |
917 |
dodoc ANNOUNCE AUTHORS README |
918 |
if use gecko ; then |
919 |
insinto /usr/share/wine/gecko |
920 |
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
921 |
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
922 |
fi |
923 |
if use mono ; then |
924 |
insinto /usr/share/wine/mono |
925 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
926 |
fi |
927 |
if ! use perl ; then |
928 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
929 |
fi |
930 |
|
931 |
if use win32 || ! use win64; then |
932 |
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
933 |
fi |
934 |
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
935 |
|
936 |
if use win64 && ! use win32; then |
937 |
dosym /usr/bin/wine{64,} # 404331 |
938 |
dosym /usr/bin/wine{64,}-preloader |
939 |
fi |
940 |
} |
941 |
|
942 |
|
943 |
|
944 |
1.1 app-emulation/wine/wine-1.5.13-r1.ebuild |
945 |
|
946 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.13-r1.ebuild?rev=1.1&view=markup |
947 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.13-r1.ebuild?rev=1.1&content-type=text/plain |
948 |
|
949 |
Index: wine-1.5.13-r1.ebuild |
950 |
=================================================================== |
951 |
# Copyright 1999-2012 Gentoo Foundation |
952 |
# Distributed under the terms of the GNU General Public License v2 |
953 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.13-r1.ebuild,v 1.1 2012/10/29 23:36:46 tetromino Exp $ |
954 |
|
955 |
EAPI="4" |
956 |
|
957 |
inherit autotools eutils flag-o-matic multilib pax-utils |
958 |
|
959 |
if [[ ${PV} == "9999" ]] ; then |
960 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
961 |
inherit git-2 |
962 |
SRC_URI="" |
963 |
#KEYWORDS="" |
964 |
else |
965 |
MY_P="${PN}-${PV/_/-}" |
966 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
967 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
968 |
S=${WORKDIR}/${MY_P} |
969 |
fi |
970 |
|
971 |
GV="1.7" |
972 |
MV="0.0.4" |
973 |
PULSE_PATCH="winepulse-2012.06.15.patch" |
974 |
DESCRIPTION="free implementation of Windows(tm) on Unix" |
975 |
HOMEPAGE="http://www.winehq.org/" |
976 |
SRC_URI="${SRC_URI} |
977 |
gecko? ( |
978 |
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
979 |
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
980 |
) |
981 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
982 |
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}" |
983 |
|
984 |
LICENSE="LGPL-2.1" |
985 |
SLOT="0" |
986 |
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
987 |
REQUIRED_USE="elibc_glibc? ( threads ) |
988 |
mono? ( || ( win32 !win64 ) ) |
989 |
osmesa? ( opengl )" #286560 |
990 |
RESTRICT="test" #72375 |
991 |
|
992 |
MLIB_DEPS="amd64? ( |
993 |
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
994 |
X? ( |
995 |
>=app-emulation/emul-linux-x86-xlibs-2.1 |
996 |
>=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?] |
997 |
) |
998 |
mp3? ( app-emulation/emul-linux-x86-soundlibs ) |
999 |
odbc? ( app-emulation/emul-linux-x86-db ) |
1000 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
1001 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
1002 |
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
1003 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
1004 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
1005 |
app-emulation/emul-linux-x86-baselibs |
1006 |
>=sys-kernel/linux-headers-2.6 |
1007 |
)" |
1008 |
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
1009 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
1010 |
capi? ( net-dialup/capi4k-utils ) |
1011 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
1012 |
fontconfig? ( media-libs/fontconfig ) |
1013 |
gphoto2? ( media-libs/libgphoto2 ) |
1014 |
openal? ( media-libs/openal ) |
1015 |
udisks? ( |
1016 |
sys-apps/dbus |
1017 |
sys-fs/udisks:2 |
1018 |
) |
1019 |
gnutls? ( net-libs/gnutls ) |
1020 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
1021 |
X? ( |
1022 |
x11-libs/libXcursor |
1023 |
x11-libs/libXrandr |
1024 |
x11-libs/libXi |
1025 |
x11-libs/libXmu |
1026 |
x11-libs/libXxf86vm |
1027 |
) |
1028 |
xinerama? ( x11-libs/libXinerama ) |
1029 |
alsa? ( media-libs/alsa-lib ) |
1030 |
cups? ( net-print/cups ) |
1031 |
opencl? ( virtual/opencl ) |
1032 |
opengl? ( |
1033 |
virtual/glu |
1034 |
virtual/opengl |
1035 |
) |
1036 |
gsm? ( media-sound/gsm ) |
1037 |
jpeg? ( virtual/jpeg ) |
1038 |
ldap? ( net-nds/openldap ) |
1039 |
lcms? ( =media-libs/lcms-1* ) |
1040 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
1041 |
nls? ( sys-devel/gettext ) |
1042 |
odbc? ( dev-db/unixODBC ) |
1043 |
osmesa? ( media-libs/mesa[osmesa] ) |
1044 |
pulseaudio? ( media-sound/pulseaudio ) |
1045 |
samba? ( >=net-fs/samba-3.0.25 ) |
1046 |
selinux? ( sec-policy/selinux-wine ) |
1047 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
1048 |
scanner? ( media-gfx/sane-backends ) |
1049 |
ssl? ( dev-libs/openssl ) |
1050 |
png? ( media-libs/libpng ) |
1051 |
v4l? ( media-libs/libv4l ) |
1052 |
!win64? ( ${MLIB_DEPS} ) |
1053 |
win32? ( ${MLIB_DEPS} ) |
1054 |
xcomposite? ( x11-libs/libXcomposite )" |
1055 |
DEPEND="${RDEPEND} |
1056 |
X? ( |
1057 |
x11-proto/inputproto |
1058 |
x11-proto/xextproto |
1059 |
x11-proto/xf86vidmodeproto |
1060 |
) |
1061 |
xinerama? ( x11-proto/xineramaproto ) |
1062 |
!hardened? ( sys-devel/prelink ) |
1063 |
virtual/pkgconfig |
1064 |
virtual/yacc |
1065 |
sys-devel/flex" |
1066 |
|
1067 |
src_unpack() { |
1068 |
if use win64 ; then |
1069 |
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
1070 |
&& die "you need gcc-4.4+ to build 64bit wine" |
1071 |
fi |
1072 |
|
1073 |
if use win32 && use opencl; then |
1074 |
[[ x$(eselect opencl show) = "xintel" ]] && |
1075 |
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 |
1076 |
fi |
1077 |
|
1078 |
if [[ ${PV} == "9999" ]] ; then |
1079 |
git-2_src_unpack |
1080 |
else |
1081 |
unpack ${MY_P}.tar.bz2 |
1082 |
fi |
1083 |
} |
1084 |
|
1085 |
src_prepare() { |
1086 |
local md5="$(md5sum server/protocol.def)" |
1087 |
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 |
1088 |
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
1089 |
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386 |
1090 |
epatch "${DISTDIR}/${PULSE_PATCH}" #421365 |
1091 |
epatch_user #282735 |
1092 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
1093 |
einfo "server/protocol.def was patched; running tools/make_requests" |
1094 |
tools/make_requests || die #432348 |
1095 |
fi |
1096 |
eautoreconf |
1097 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
1098 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
1099 |
} |
1100 |
|
1101 |
do_configure() { |
1102 |
local builddir="${WORKDIR}/wine$1" |
1103 |
mkdir -p "${builddir}" |
1104 |
pushd "${builddir}" >/dev/null |
1105 |
|
1106 |
ECONF_SOURCE=${S} \ |
1107 |
econf \ |
1108 |
--sysconfdir=/etc/wine \ |
1109 |
$(use_with alsa) \ |
1110 |
$(use_with capi) \ |
1111 |
$(use_with lcms cms) \ |
1112 |
$(use_with cups) \ |
1113 |
$(use_with ncurses curses) \ |
1114 |
$(use_with udisks dbus) \ |
1115 |
$(use_with fontconfig) \ |
1116 |
$(use_with gnutls) \ |
1117 |
$(use_with gphoto2 gphoto) \ |
1118 |
$(use_with gsm) \ |
1119 |
$(use_with gstreamer) \ |
1120 |
--without-hal \ |
1121 |
$(use_with jpeg) \ |
1122 |
$(use_with ldap) \ |
1123 |
$(use_with mp3 mpg123) \ |
1124 |
$(use_with nls gettext) \ |
1125 |
$(use_with openal) \ |
1126 |
$(use_with opencl) \ |
1127 |
$(use_with opengl) \ |
1128 |
$(use_with ssl openssl) \ |
1129 |
$(use_with osmesa) \ |
1130 |
$(use_with oss) \ |
1131 |
$(use_with png) \ |
1132 |
$(use_with threads pthread) \ |
1133 |
$(use_with pulseaudio pulse) \ |
1134 |
$(use_with scanner sane) \ |
1135 |
$(use_enable test tests) \ |
1136 |
$(use_with truetype freetype) \ |
1137 |
$(use_with v4l) \ |
1138 |
$(use_with X x) \ |
1139 |
$(use_with xcomposite) \ |
1140 |
$(use_with xinerama) \ |
1141 |
$(use_with xml) \ |
1142 |
$(use_with xml xslt) \ |
1143 |
$2 |
1144 |
|
1145 |
emake -j1 depend |
1146 |
|
1147 |
popd >/dev/null |
1148 |
} |
1149 |
|
1150 |
src_configure() { |
1151 |
export LDCONFIG=/bin/true |
1152 |
use custom-cflags || strip-flags |
1153 |
|
1154 |
if use win64 ; then |
1155 |
do_configure 64 --enable-win64 |
1156 |
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
1157 |
else |
1158 |
ABI=x86 do_configure 32 --disable-win64 |
1159 |
fi |
1160 |
} |
1161 |
|
1162 |
src_compile() { |
1163 |
local b |
1164 |
for b in 64 32 ; do |
1165 |
local builddir="${WORKDIR}/wine${b}" |
1166 |
[[ -d ${builddir} ]] || continue |
1167 |
emake -C "${builddir}" all |
1168 |
done |
1169 |
} |
1170 |
|
1171 |
src_install() { |
1172 |
local b |
1173 |
for b in 64 32 ; do |
1174 |
local builddir="${WORKDIR}/wine${b}" |
1175 |
[[ -d ${builddir} ]] || continue |
1176 |
emake -C "${builddir}" install DESTDIR="${D}" |
1177 |
done |
1178 |
dodoc ANNOUNCE AUTHORS README |
1179 |
if use gecko ; then |
1180 |
insinto /usr/share/wine/gecko |
1181 |
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
1182 |
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
1183 |
fi |
1184 |
if use mono ; then |
1185 |
insinto /usr/share/wine/mono |
1186 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
1187 |
fi |
1188 |
if ! use perl ; then |
1189 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
1190 |
fi |
1191 |
|
1192 |
if use win32 || ! use win64; then |
1193 |
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
1194 |
fi |
1195 |
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
1196 |
|
1197 |
if use win64 && ! use win32; then |
1198 |
dosym /usr/bin/wine{64,} # 404331 |
1199 |
dosym /usr/bin/wine{64,}-preloader |
1200 |
fi |
1201 |
} |
1202 |
|
1203 |
|
1204 |
|
1205 |
1.1 app-emulation/wine/wine-1.5.16-r1.ebuild |
1206 |
|
1207 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.16-r1.ebuild?rev=1.1&view=markup |
1208 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.16-r1.ebuild?rev=1.1&content-type=text/plain |
1209 |
|
1210 |
Index: wine-1.5.16-r1.ebuild |
1211 |
=================================================================== |
1212 |
# Copyright 1999-2012 Gentoo Foundation |
1213 |
# Distributed under the terms of the GNU General Public License v2 |
1214 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.16-r1.ebuild,v 1.1 2012/10/29 23:36:46 tetromino Exp $ |
1215 |
|
1216 |
EAPI="4" |
1217 |
|
1218 |
inherit autotools eutils flag-o-matic multilib pax-utils |
1219 |
|
1220 |
if [[ ${PV} == "9999" ]] ; then |
1221 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
1222 |
inherit git-2 |
1223 |
SRC_URI="" |
1224 |
#KEYWORDS="" |
1225 |
else |
1226 |
MY_P="${PN}-${PV/_/-}" |
1227 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
1228 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
1229 |
S=${WORKDIR}/${MY_P} |
1230 |
fi |
1231 |
|
1232 |
GV="1.8" |
1233 |
MV="0.0.8" |
1234 |
PULSE_PATCHES="winepulse-patches-1.5.16" |
1235 |
DESCRIPTION="Free implementation of Windows(tm) on Unix" |
1236 |
HOMEPAGE="http://www.winehq.org/" |
1237 |
SRC_URI="${SRC_URI} |
1238 |
gecko? ( |
1239 |
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
1240 |
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
1241 |
) |
1242 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
1243 |
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2" |
1244 |
|
1245 |
LICENSE="LGPL-2.1" |
1246 |
SLOT="0" |
1247 |
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
1248 |
REQUIRED_USE="elibc_glibc? ( threads ) |
1249 |
mono? ( || ( win32 !win64 ) ) |
1250 |
osmesa? ( opengl )" #286560 |
1251 |
RESTRICT="test" #72375 |
1252 |
|
1253 |
MLIB_DEPS="amd64? ( |
1254 |
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
1255 |
X? ( |
1256 |
>=app-emulation/emul-linux-x86-xlibs-2.1 |
1257 |
>=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?] |
1258 |
) |
1259 |
mp3? ( app-emulation/emul-linux-x86-soundlibs ) |
1260 |
odbc? ( app-emulation/emul-linux-x86-db ) |
1261 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
1262 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
1263 |
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
1264 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
1265 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
1266 |
app-emulation/emul-linux-x86-baselibs |
1267 |
>=sys-kernel/linux-headers-2.6 |
1268 |
)" |
1269 |
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
1270 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
1271 |
capi? ( net-dialup/capi4k-utils ) |
1272 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
1273 |
fontconfig? ( media-libs/fontconfig ) |
1274 |
gphoto2? ( media-libs/libgphoto2 ) |
1275 |
openal? ( media-libs/openal ) |
1276 |
udisks? ( |
1277 |
sys-apps/dbus |
1278 |
sys-fs/udisks:2 |
1279 |
) |
1280 |
gnutls? ( net-libs/gnutls ) |
1281 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
1282 |
X? ( |
1283 |
x11-libs/libXcursor |
1284 |
x11-libs/libXext |
1285 |
x11-libs/libXrandr |
1286 |
x11-libs/libXi |
1287 |
x11-libs/libXmu |
1288 |
x11-libs/libXxf86vm |
1289 |
) |
1290 |
xinerama? ( x11-libs/libXinerama ) |
1291 |
alsa? ( media-libs/alsa-lib ) |
1292 |
cups? ( net-print/cups ) |
1293 |
opencl? ( virtual/opencl ) |
1294 |
opengl? ( |
1295 |
virtual/glu |
1296 |
virtual/opengl |
1297 |
) |
1298 |
gsm? ( media-sound/gsm ) |
1299 |
jpeg? ( virtual/jpeg ) |
1300 |
ldap? ( net-nds/openldap ) |
1301 |
lcms? ( =media-libs/lcms-1* ) |
1302 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
1303 |
nls? ( sys-devel/gettext ) |
1304 |
odbc? ( dev-db/unixODBC ) |
1305 |
osmesa? ( media-libs/mesa[osmesa] ) |
1306 |
pulseaudio? ( |
1307 |
media-sound/pulseaudio |
1308 |
sys-auth/rtkit |
1309 |
) |
1310 |
samba? ( >=net-fs/samba-3.0.25 ) |
1311 |
selinux? ( sec-policy/selinux-wine ) |
1312 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
1313 |
scanner? ( media-gfx/sane-backends ) |
1314 |
ssl? ( dev-libs/openssl ) |
1315 |
png? ( media-libs/libpng ) |
1316 |
v4l? ( media-libs/libv4l ) |
1317 |
!win64? ( ${MLIB_DEPS} ) |
1318 |
win32? ( ${MLIB_DEPS} ) |
1319 |
xcomposite? ( x11-libs/libXcomposite )" |
1320 |
DEPEND="${RDEPEND} |
1321 |
X? ( |
1322 |
x11-proto/inputproto |
1323 |
x11-proto/xextproto |
1324 |
x11-proto/xf86vidmodeproto |
1325 |
) |
1326 |
xinerama? ( x11-proto/xineramaproto ) |
1327 |
!hardened? ( sys-devel/prelink ) |
1328 |
virtual/pkgconfig |
1329 |
virtual/yacc |
1330 |
sys-devel/flex" |
1331 |
|
1332 |
src_unpack() { |
1333 |
if use win64 ; then |
1334 |
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
1335 |
&& die "you need gcc-4.4+ to build 64bit wine" |
1336 |
fi |
1337 |
|
1338 |
if use win32 && use opencl; then |
1339 |
[[ x$(eselect opencl show) = "xintel" ]] && |
1340 |
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 |
1341 |
fi |
1342 |
|
1343 |
if [[ ${PV} == "9999" ]] ; then |
1344 |
git-2_src_unpack |
1345 |
else |
1346 |
unpack ${MY_P}.tar.bz2 |
1347 |
fi |
1348 |
|
1349 |
unpack "${PULSE_PATCHES}.tar.bz2" |
1350 |
} |
1351 |
|
1352 |
src_prepare() { |
1353 |
local md5="$(md5sum server/protocol.def)" |
1354 |
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 |
1355 |
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
1356 |
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386 |
1357 |
epatch "../${PULSE_PATCHES}"/*.patch #421365 |
1358 |
epatch_user #282735 |
1359 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
1360 |
einfo "server/protocol.def was patched; running tools/make_requests" |
1361 |
tools/make_requests || die #432348 |
1362 |
fi |
1363 |
eautoreconf |
1364 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
1365 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
1366 |
} |
1367 |
|
1368 |
do_configure() { |
1369 |
local builddir="${WORKDIR}/wine$1" |
1370 |
mkdir -p "${builddir}" |
1371 |
pushd "${builddir}" >/dev/null |
1372 |
|
1373 |
ECONF_SOURCE=${S} \ |
1374 |
econf \ |
1375 |
--sysconfdir=/etc/wine \ |
1376 |
$(use_with alsa) \ |
1377 |
$(use_with capi) \ |
1378 |
$(use_with lcms cms) \ |
1379 |
$(use_with cups) \ |
1380 |
$(use_with ncurses curses) \ |
1381 |
$(use_with udisks dbus) \ |
1382 |
$(use_with fontconfig) \ |
1383 |
$(use_with gnutls) \ |
1384 |
$(use_with gphoto2 gphoto) \ |
1385 |
$(use_with gsm) \ |
1386 |
$(use_with gstreamer) \ |
1387 |
--without-hal \ |
1388 |
$(use_with jpeg) \ |
1389 |
$(use_with ldap) \ |
1390 |
$(use_with mp3 mpg123) \ |
1391 |
$(use_with nls gettext) \ |
1392 |
$(use_with openal) \ |
1393 |
$(use_with opencl) \ |
1394 |
$(use_with opengl) \ |
1395 |
$(use_with ssl openssl) \ |
1396 |
$(use_with osmesa) \ |
1397 |
$(use_with oss) \ |
1398 |
$(use_with png) \ |
1399 |
$(use_with threads pthread) \ |
1400 |
$(use_with pulseaudio pulse) \ |
1401 |
$(use_with scanner sane) \ |
1402 |
$(use_enable test tests) \ |
1403 |
$(use_with truetype freetype) \ |
1404 |
$(use_with v4l) \ |
1405 |
$(use_with X x) \ |
1406 |
$(use_with xcomposite) \ |
1407 |
$(use_with xinerama) \ |
1408 |
$(use_with xml) \ |
1409 |
$(use_with xml xslt) \ |
1410 |
$2 |
1411 |
|
1412 |
emake -j1 depend |
1413 |
|
1414 |
popd >/dev/null |
1415 |
} |
1416 |
|
1417 |
src_configure() { |
1418 |
export LDCONFIG=/bin/true |
1419 |
use custom-cflags || strip-flags |
1420 |
|
1421 |
if use win64 ; then |
1422 |
do_configure 64 --enable-win64 |
1423 |
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
1424 |
else |
1425 |
ABI=x86 do_configure 32 --disable-win64 |
1426 |
fi |
1427 |
} |
1428 |
|
1429 |
src_compile() { |
1430 |
local b |
1431 |
for b in 64 32 ; do |
1432 |
local builddir="${WORKDIR}/wine${b}" |
1433 |
[[ -d ${builddir} ]] || continue |
1434 |
emake -C "${builddir}" all |
1435 |
done |
1436 |
} |
1437 |
|
1438 |
src_install() { |
1439 |
local b |
1440 |
for b in 64 32 ; do |
1441 |
local builddir="${WORKDIR}/wine${b}" |
1442 |
[[ -d ${builddir} ]] || continue |
1443 |
emake -C "${builddir}" install DESTDIR="${D}" |
1444 |
done |
1445 |
dodoc ANNOUNCE AUTHORS README |
1446 |
if use gecko ; then |
1447 |
insinto /usr/share/wine/gecko |
1448 |
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
1449 |
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
1450 |
fi |
1451 |
if use mono ; then |
1452 |
insinto /usr/share/wine/mono |
1453 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
1454 |
fi |
1455 |
if ! use perl ; then |
1456 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
1457 |
fi |
1458 |
|
1459 |
if use win32 || ! use win64; then |
1460 |
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
1461 |
fi |
1462 |
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
1463 |
|
1464 |
if use win64 && ! use win32; then |
1465 |
dosym /usr/bin/wine{64,} # 404331 |
1466 |
dosym /usr/bin/wine{64,}-preloader |
1467 |
fi |
1468 |
} |
1469 |
|
1470 |
|
1471 |
|
1472 |
1.1 app-emulation/wine/wine-1.5.11-r1.ebuild |
1473 |
|
1474 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.11-r1.ebuild?rev=1.1&view=markup |
1475 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.11-r1.ebuild?rev=1.1&content-type=text/plain |
1476 |
|
1477 |
Index: wine-1.5.11-r1.ebuild |
1478 |
=================================================================== |
1479 |
# Copyright 1999-2012 Gentoo Foundation |
1480 |
# Distributed under the terms of the GNU General Public License v2 |
1481 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.11-r1.ebuild,v 1.1 2012/10/29 23:36:46 tetromino Exp $ |
1482 |
|
1483 |
EAPI="4" |
1484 |
|
1485 |
inherit autotools eutils flag-o-matic multilib pax-utils |
1486 |
|
1487 |
if [[ ${PV} == "9999" ]] ; then |
1488 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
1489 |
inherit git-2 |
1490 |
SRC_URI="" |
1491 |
#KEYWORDS="" |
1492 |
else |
1493 |
MY_P="${PN}-${PV/_/-}" |
1494 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
1495 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
1496 |
S=${WORKDIR}/${MY_P} |
1497 |
fi |
1498 |
|
1499 |
GV="1.7" |
1500 |
MV="0.0.4" |
1501 |
PULSE_PATCH="winepulse-2012.06.15.patch" |
1502 |
DESCRIPTION="free implementation of Windows(tm) on Unix" |
1503 |
HOMEPAGE="http://www.winehq.org/" |
1504 |
SRC_URI="${SRC_URI} |
1505 |
gecko? ( |
1506 |
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
1507 |
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
1508 |
) |
1509 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
1510 |
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}" |
1511 |
|
1512 |
LICENSE="LGPL-2.1" |
1513 |
SLOT="0" |
1514 |
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
1515 |
REQUIRED_USE="elibc_glibc? ( threads ) |
1516 |
mono? ( || ( win32 !win64 ) ) |
1517 |
osmesa? ( opengl )" #286560 |
1518 |
RESTRICT="test" #72375 |
1519 |
|
1520 |
MLIB_DEPS="amd64? ( |
1521 |
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
1522 |
X? ( |
1523 |
>=app-emulation/emul-linux-x86-xlibs-2.1 |
1524 |
>=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?] |
1525 |
) |
1526 |
mp3? ( app-emulation/emul-linux-x86-soundlibs ) |
1527 |
odbc? ( app-emulation/emul-linux-x86-db ) |
1528 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
1529 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
1530 |
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
1531 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
1532 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
1533 |
app-emulation/emul-linux-x86-baselibs |
1534 |
>=sys-kernel/linux-headers-2.6 |
1535 |
)" |
1536 |
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
1537 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
1538 |
capi? ( net-dialup/capi4k-utils ) |
1539 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
1540 |
fontconfig? ( media-libs/fontconfig ) |
1541 |
gphoto2? ( media-libs/libgphoto2 ) |
1542 |
openal? ( media-libs/openal ) |
1543 |
udisks? ( |
1544 |
sys-apps/dbus |
1545 |
sys-fs/udisks:2 |
1546 |
) |
1547 |
gnutls? ( net-libs/gnutls ) |
1548 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
1549 |
X? ( |
1550 |
x11-libs/libXcursor |
1551 |
x11-libs/libXrandr |
1552 |
x11-libs/libXi |
1553 |
x11-libs/libXmu |
1554 |
x11-libs/libXxf86vm |
1555 |
) |
1556 |
xinerama? ( x11-libs/libXinerama ) |
1557 |
alsa? ( media-libs/alsa-lib ) |
1558 |
cups? ( net-print/cups ) |
1559 |
opencl? ( virtual/opencl ) |
1560 |
opengl? ( |
1561 |
virtual/glu |
1562 |
virtual/opengl |
1563 |
) |
1564 |
gsm? ( media-sound/gsm ) |
1565 |
jpeg? ( virtual/jpeg ) |
1566 |
ldap? ( net-nds/openldap ) |
1567 |
lcms? ( =media-libs/lcms-1* ) |
1568 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
1569 |
nls? ( sys-devel/gettext ) |
1570 |
odbc? ( dev-db/unixODBC ) |
1571 |
osmesa? ( media-libs/mesa[osmesa] ) |
1572 |
pulseaudio? ( media-sound/pulseaudio ) |
1573 |
samba? ( >=net-fs/samba-3.0.25 ) |
1574 |
selinux? ( sec-policy/selinux-wine ) |
1575 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
1576 |
scanner? ( media-gfx/sane-backends ) |
1577 |
ssl? ( dev-libs/openssl ) |
1578 |
png? ( media-libs/libpng ) |
1579 |
v4l? ( media-libs/libv4l ) |
1580 |
!win64? ( ${MLIB_DEPS} ) |
1581 |
win32? ( ${MLIB_DEPS} ) |
1582 |
xcomposite? ( x11-libs/libXcomposite )" |
1583 |
DEPEND="${RDEPEND} |
1584 |
X? ( |
1585 |
x11-proto/inputproto |
1586 |
x11-proto/xextproto |
1587 |
x11-proto/xf86vidmodeproto |
1588 |
) |
1589 |
xinerama? ( x11-proto/xineramaproto ) |
1590 |
!hardened? ( sys-devel/prelink ) |
1591 |
virtual/pkgconfig |
1592 |
virtual/yacc |
1593 |
sys-devel/flex" |
1594 |
|
1595 |
src_unpack() { |
1596 |
if use win64 ; then |
1597 |
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
1598 |
&& die "you need gcc-4.4+ to build 64bit wine" |
1599 |
fi |
1600 |
|
1601 |
if use win32 && use opencl; then |
1602 |
[[ x$(eselect opencl show) = "xintel" ]] && |
1603 |
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 |
1604 |
fi |
1605 |
|
1606 |
if [[ ${PV} == "9999" ]] ; then |
1607 |
git-2_src_unpack |
1608 |
else |
1609 |
unpack ${MY_P}.tar.bz2 |
1610 |
fi |
1611 |
} |
1612 |
|
1613 |
src_prepare() { |
1614 |
local md5="$(md5sum server/protocol.def)" |
1615 |
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 |
1616 |
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
1617 |
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386 |
1618 |
epatch "${DISTDIR}/${PULSE_PATCH}" #421365 |
1619 |
epatch_user #282735 |
1620 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
1621 |
einfo "server/protocol.def was patched; running tools/make_requests" |
1622 |
tools/make_requests || die #432348 |
1623 |
fi |
1624 |
eautoreconf |
1625 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
1626 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
1627 |
} |
1628 |
|
1629 |
do_configure() { |
1630 |
local builddir="${WORKDIR}/wine$1" |
1631 |
mkdir -p "${builddir}" |
1632 |
pushd "${builddir}" >/dev/null |
1633 |
|
1634 |
ECONF_SOURCE=${S} \ |
1635 |
econf \ |
1636 |
--sysconfdir=/etc/wine \ |
1637 |
$(use_with alsa) \ |
1638 |
$(use_with capi) \ |
1639 |
$(use_with lcms cms) \ |
1640 |
$(use_with cups) \ |
1641 |
$(use_with ncurses curses) \ |
1642 |
$(use_with udisks dbus) \ |
1643 |
$(use_with fontconfig) \ |
1644 |
$(use_with gnutls) \ |
1645 |
$(use_with gphoto2 gphoto) \ |
1646 |
$(use_with gsm) \ |
1647 |
$(use_with gstreamer) \ |
1648 |
--without-hal \ |
1649 |
$(use_with jpeg) \ |
1650 |
$(use_with ldap) \ |
1651 |
$(use_with mp3 mpg123) \ |
1652 |
$(use_with nls gettext) \ |
1653 |
$(use_with openal) \ |
1654 |
$(use_with opencl) \ |
1655 |
$(use_with opengl) \ |
1656 |
$(use_with ssl openssl) \ |
1657 |
$(use_with osmesa) \ |
1658 |
$(use_with oss) \ |
1659 |
$(use_with png) \ |
1660 |
$(use_with threads pthread) \ |
1661 |
$(use_with pulseaudio pulse) \ |
1662 |
$(use_with scanner sane) \ |
1663 |
$(use_enable test tests) \ |
1664 |
$(use_with truetype freetype) \ |
1665 |
$(use_with v4l) \ |
1666 |
$(use_with X x) \ |
1667 |
$(use_with xcomposite) \ |
1668 |
$(use_with xinerama) \ |
1669 |
$(use_with xml) \ |
1670 |
$(use_with xml xslt) \ |
1671 |
$2 |
1672 |
|
1673 |
emake -j1 depend |
1674 |
|
1675 |
popd >/dev/null |
1676 |
} |
1677 |
|
1678 |
src_configure() { |
1679 |
export LDCONFIG=/bin/true |
1680 |
use custom-cflags || strip-flags |
1681 |
|
1682 |
if use win64 ; then |
1683 |
do_configure 64 --enable-win64 |
1684 |
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
1685 |
else |
1686 |
ABI=x86 do_configure 32 --disable-win64 |
1687 |
fi |
1688 |
} |
1689 |
|
1690 |
src_compile() { |
1691 |
local b |
1692 |
for b in 64 32 ; do |
1693 |
local builddir="${WORKDIR}/wine${b}" |
1694 |
[[ -d ${builddir} ]] || continue |
1695 |
emake -C "${builddir}" all |
1696 |
done |
1697 |
} |
1698 |
|
1699 |
src_install() { |
1700 |
local b |
1701 |
for b in 64 32 ; do |
1702 |
local builddir="${WORKDIR}/wine${b}" |
1703 |
[[ -d ${builddir} ]] || continue |
1704 |
emake -C "${builddir}" install DESTDIR="${D}" |
1705 |
done |
1706 |
dodoc ANNOUNCE AUTHORS README |
1707 |
if use gecko ; then |
1708 |
insinto /usr/share/wine/gecko |
1709 |
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
1710 |
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
1711 |
fi |
1712 |
if use mono ; then |
1713 |
insinto /usr/share/wine/mono |
1714 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
1715 |
fi |
1716 |
if ! use perl ; then |
1717 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
1718 |
fi |
1719 |
|
1720 |
if use win32 || ! use win64; then |
1721 |
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
1722 |
fi |
1723 |
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
1724 |
|
1725 |
if use win64 && ! use win32; then |
1726 |
dosym /usr/bin/wine{64,} # 404331 |
1727 |
dosym /usr/bin/wine{64,}-preloader |
1728 |
fi |
1729 |
} |
1730 |
|
1731 |
|
1732 |
|
1733 |
1.1 app-emulation/wine/wine-1.5.12-r1.ebuild |
1734 |
|
1735 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.12-r1.ebuild?rev=1.1&view=markup |
1736 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.12-r1.ebuild?rev=1.1&content-type=text/plain |
1737 |
|
1738 |
Index: wine-1.5.12-r1.ebuild |
1739 |
=================================================================== |
1740 |
# Copyright 1999-2012 Gentoo Foundation |
1741 |
# Distributed under the terms of the GNU General Public License v2 |
1742 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.12-r1.ebuild,v 1.1 2012/10/29 23:36:46 tetromino Exp $ |
1743 |
|
1744 |
EAPI="4" |
1745 |
|
1746 |
inherit autotools eutils flag-o-matic multilib pax-utils |
1747 |
|
1748 |
if [[ ${PV} == "9999" ]] ; then |
1749 |
EGIT_REPO_URI="git://source.winehq.org/git/wine.git" |
1750 |
inherit git-2 |
1751 |
SRC_URI="" |
1752 |
#KEYWORDS="" |
1753 |
else |
1754 |
MY_P="${PN}-${PV/_/-}" |
1755 |
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2" |
1756 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
1757 |
S=${WORKDIR}/${MY_P} |
1758 |
fi |
1759 |
|
1760 |
GV="1.7" |
1761 |
MV="0.0.4" |
1762 |
PULSE_PATCH="winepulse-2012.06.15.patch" |
1763 |
DESCRIPTION="free implementation of Windows(tm) on Unix" |
1764 |
HOMEPAGE="http://www.winehq.org/" |
1765 |
SRC_URI="${SRC_URI} |
1766 |
gecko? ( |
1767 |
mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
1768 |
win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
1769 |
) |
1770 |
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) |
1771 |
http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}" |
1772 |
|
1773 |
LICENSE="LGPL-2.1" |
1774 |
SLOT="0" |
1775 |
IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
1776 |
REQUIRED_USE="elibc_glibc? ( threads ) |
1777 |
mono? ( || ( win32 !win64 ) ) |
1778 |
osmesa? ( opengl )" #286560 |
1779 |
RESTRICT="test" #72375 |
1780 |
|
1781 |
MLIB_DEPS="amd64? ( |
1782 |
truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
1783 |
X? ( |
1784 |
>=app-emulation/emul-linux-x86-xlibs-2.1 |
1785 |
>=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?] |
1786 |
) |
1787 |
mp3? ( app-emulation/emul-linux-x86-soundlibs ) |
1788 |
odbc? ( app-emulation/emul-linux-x86-db ) |
1789 |
openal? ( app-emulation/emul-linux-x86-sdl ) |
1790 |
opengl? ( app-emulation/emul-linux-x86-opengl ) |
1791 |
osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028 ) |
1792 |
scanner? ( app-emulation/emul-linux-x86-medialibs ) |
1793 |
v4l? ( app-emulation/emul-linux-x86-medialibs ) |
1794 |
app-emulation/emul-linux-x86-baselibs |
1795 |
>=sys-kernel/linux-headers-2.6 |
1796 |
)" |
1797 |
RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
1798 |
perl? ( dev-lang/perl dev-perl/XML-Simple ) |
1799 |
capi? ( net-dialup/capi4k-utils ) |
1800 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
1801 |
fontconfig? ( media-libs/fontconfig ) |
1802 |
gphoto2? ( media-libs/libgphoto2 ) |
1803 |
openal? ( media-libs/openal ) |
1804 |
udisks? ( |
1805 |
sys-apps/dbus |
1806 |
sys-fs/udisks:2 |
1807 |
) |
1808 |
gnutls? ( net-libs/gnutls ) |
1809 |
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 ) |
1810 |
X? ( |
1811 |
x11-libs/libXcursor |
1812 |
x11-libs/libXrandr |
1813 |
x11-libs/libXi |
1814 |
x11-libs/libXmu |
1815 |
x11-libs/libXxf86vm |
1816 |
) |
1817 |
xinerama? ( x11-libs/libXinerama ) |
1818 |
alsa? ( media-libs/alsa-lib ) |
1819 |
cups? ( net-print/cups ) |
1820 |
opencl? ( virtual/opencl ) |
1821 |
opengl? ( |
1822 |
virtual/glu |
1823 |
virtual/opengl |
1824 |
) |
1825 |
gsm? ( media-sound/gsm ) |
1826 |
jpeg? ( virtual/jpeg ) |
1827 |
ldap? ( net-nds/openldap ) |
1828 |
lcms? ( =media-libs/lcms-1* ) |
1829 |
mp3? ( >=media-sound/mpg123-1.5.0 ) |
1830 |
nls? ( sys-devel/gettext ) |
1831 |
odbc? ( dev-db/unixODBC ) |
1832 |
osmesa? ( media-libs/mesa[osmesa] ) |
1833 |
pulseaudio? ( media-sound/pulseaudio ) |
1834 |
samba? ( >=net-fs/samba-3.0.25 ) |
1835 |
selinux? ( sec-policy/selinux-wine ) |
1836 |
xml? ( dev-libs/libxml2 dev-libs/libxslt ) |
1837 |
scanner? ( media-gfx/sane-backends ) |
1838 |
ssl? ( dev-libs/openssl ) |
1839 |
png? ( media-libs/libpng ) |
1840 |
v4l? ( media-libs/libv4l ) |
1841 |
!win64? ( ${MLIB_DEPS} ) |
1842 |
win32? ( ${MLIB_DEPS} ) |
1843 |
xcomposite? ( x11-libs/libXcomposite )" |
1844 |
DEPEND="${RDEPEND} |
1845 |
X? ( |
1846 |
x11-proto/inputproto |
1847 |
x11-proto/xextproto |
1848 |
x11-proto/xf86vidmodeproto |
1849 |
) |
1850 |
xinerama? ( x11-proto/xineramaproto ) |
1851 |
!hardened? ( sys-devel/prelink ) |
1852 |
virtual/pkgconfig |
1853 |
virtual/yacc |
1854 |
sys-devel/flex" |
1855 |
|
1856 |
src_unpack() { |
1857 |
if use win64 ; then |
1858 |
[[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
1859 |
&& die "you need gcc-4.4+ to build 64bit wine" |
1860 |
fi |
1861 |
|
1862 |
if use win32 && use opencl; then |
1863 |
[[ x$(eselect opencl show) = "xintel" ]] && |
1864 |
die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947 |
1865 |
fi |
1866 |
|
1867 |
if [[ ${PV} == "9999" ]] ; then |
1868 |
git-2_src_unpack |
1869 |
else |
1870 |
unpack ${MY_P}.tar.bz2 |
1871 |
fi |
1872 |
} |
1873 |
|
1874 |
src_prepare() { |
1875 |
local md5="$(md5sum server/protocol.def)" |
1876 |
epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726 |
1877 |
epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615 |
1878 |
epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386 |
1879 |
epatch "${DISTDIR}/${PULSE_PATCH}" #421365 |
1880 |
epatch_user #282735 |
1881 |
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
1882 |
einfo "server/protocol.def was patched; running tools/make_requests" |
1883 |
tools/make_requests || die #432348 |
1884 |
fi |
1885 |
eautoreconf |
1886 |
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
1887 |
sed -i '/^MimeType/d' tools/wine.desktop || die #117785 |
1888 |
} |
1889 |
|
1890 |
do_configure() { |
1891 |
local builddir="${WORKDIR}/wine$1" |
1892 |
mkdir -p "${builddir}" |
1893 |
pushd "${builddir}" >/dev/null |
1894 |
|
1895 |
ECONF_SOURCE=${S} \ |
1896 |
econf \ |
1897 |
--sysconfdir=/etc/wine \ |
1898 |
$(use_with alsa) \ |
1899 |
$(use_with capi) \ |
1900 |
$(use_with lcms cms) \ |
1901 |
$(use_with cups) \ |
1902 |
$(use_with ncurses curses) \ |
1903 |
$(use_with udisks dbus) \ |
1904 |
$(use_with fontconfig) \ |
1905 |
$(use_with gnutls) \ |
1906 |
$(use_with gphoto2 gphoto) \ |
1907 |
$(use_with gsm) \ |
1908 |
$(use_with gstreamer) \ |
1909 |
--without-hal \ |
1910 |
$(use_with jpeg) \ |
1911 |
$(use_with ldap) \ |
1912 |
$(use_with mp3 mpg123) \ |
1913 |
$(use_with nls gettext) \ |
1914 |
$(use_with openal) \ |
1915 |
$(use_with opencl) \ |
1916 |
$(use_with opengl) \ |
1917 |
$(use_with ssl openssl) \ |
1918 |
$(use_with osmesa) \ |
1919 |
$(use_with oss) \ |
1920 |
$(use_with png) \ |
1921 |
$(use_with threads pthread) \ |
1922 |
$(use_with pulseaudio pulse) \ |
1923 |
$(use_with scanner sane) \ |
1924 |
$(use_enable test tests) \ |
1925 |
$(use_with truetype freetype) \ |
1926 |
$(use_with v4l) \ |
1927 |
$(use_with X x) \ |
1928 |
$(use_with xcomposite) \ |
1929 |
$(use_with xinerama) \ |
1930 |
$(use_with xml) \ |
1931 |
$(use_with xml xslt) \ |
1932 |
$2 |
1933 |
|
1934 |
emake -j1 depend |
1935 |
|
1936 |
popd >/dev/null |
1937 |
} |
1938 |
|
1939 |
src_configure() { |
1940 |
export LDCONFIG=/bin/true |
1941 |
use custom-cflags || strip-flags |
1942 |
|
1943 |
if use win64 ; then |
1944 |
do_configure 64 --enable-win64 |
1945 |
use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
1946 |
else |
1947 |
ABI=x86 do_configure 32 --disable-win64 |
1948 |
fi |
1949 |
} |
1950 |
|
1951 |
src_compile() { |
1952 |
local b |
1953 |
for b in 64 32 ; do |
1954 |
local builddir="${WORKDIR}/wine${b}" |
1955 |
[[ -d ${builddir} ]] || continue |
1956 |
emake -C "${builddir}" all |
1957 |
done |
1958 |
} |
1959 |
|
1960 |
src_install() { |
1961 |
local b |
1962 |
for b in 64 32 ; do |
1963 |
local builddir="${WORKDIR}/wine${b}" |
1964 |
[[ -d ${builddir} ]] || continue |
1965 |
emake -C "${builddir}" install DESTDIR="${D}" |
1966 |
done |
1967 |
dodoc ANNOUNCE AUTHORS README |
1968 |
if use gecko ; then |
1969 |
insinto /usr/share/wine/gecko |
1970 |
doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
1971 |
use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
1972 |
fi |
1973 |
if use mono ; then |
1974 |
insinto /usr/share/wine/mono |
1975 |
doins "${DISTDIR}"/wine-mono-${MV}.msi |
1976 |
fi |
1977 |
if ! use perl ; then |
1978 |
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
1979 |
fi |
1980 |
|
1981 |
if use win32 || ! use win64; then |
1982 |
pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055 |
1983 |
fi |
1984 |
use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader} |
1985 |
|
1986 |
if use win64 && ! use win32; then |
1987 |
dosym /usr/bin/wine{64,} # 404331 |
1988 |
dosym /usr/bin/wine{64,}-preloader |
1989 |
fi |
1990 |
} |