Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/wine: ChangeLog wine-1.5.27.ebuild
Date: Sun, 31 Mar 2013 03:40:11
Message-Id: 20130331034003.4B5052171D@flycatcher.gentoo.org
1 tetromino 13/03/31 03:40:03
2
3 Modified: ChangeLog
4 Added: wine-1.5.27.ebuild
5 Log:
6 Version bump, see http://www.winehq.org/announce/1.5.27 for the announcement.
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
9
10 Revision Changes Path
11 1.459 app-emulation/wine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.459&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.459&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.458&r2=1.459
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v
20 retrieving revision 1.458
21 retrieving revision 1.459
22 diff -u -r1.458 -r1.459
23 --- ChangeLog 18 Mar 2013 03:28:57 -0000 1.458
24 +++ ChangeLog 31 Mar 2013 03:40:03 -0000 1.459
25 @@ -1,6 +1,11 @@
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.458 2013/03/18 03:28:57 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.459 2013/03/31 03:40:03 tetromino Exp $
30 +
31 +*wine-1.5.27 (31 Mar 2013)
32 +
33 + 31 Mar 2013; Alexandre Rostovtsev <tetromino@g.o> +wine-1.5.27.ebuild:
34 + Version bump, see http://www.winehq.org/announce/1.5.27 for the announcement.
35
36 *wine-1.5.26 (18 Mar 2013)
37
38
39
40
41 1.1 app-emulation/wine/wine-1.5.27.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.27.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.5.27.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wine-1.5.27.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.27.ebuild,v 1.1 2013/03/31 03:40:03 tetromino Exp $
51
52 EAPI="5"
53
54 AUTOTOOLS_AUTORECONF=1
55 inherit autotools-multilib eutils flag-o-matic gnome2-utils multilib pax-utils toolchain-funcs virtualx
56
57 if [[ ${PV} == "9999" ]] ; then
58 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
59 inherit git-2
60 SRC_URI=""
61 #KEYWORDS=""
62 else
63 MY_P="${PN}-${PV/_/-}"
64 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
65 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
66 S=${WORKDIR}/${MY_P}
67 fi
68
69 GV="1.9"
70 MV="0.0.8"
71 PULSE_PATCHES="winepulse-patches-1.5.25"
72 WINE_GENTOO="wine-gentoo-2012.11.24"
73 DESCRIPTION="Free implementation of Windows(tm) on Unix"
74 HOMEPAGE="http://www.winehq.org/"
75 SRC_URI="${SRC_URI}
76 gecko? (
77 abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
78 abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
79 )
80 mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
81 http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2
82 http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
83
84 LICENSE="LGPL-2.1"
85 SLOT="0"
86 IUSE="+abi_x86_32 +abi_x86_64 alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png +prelink samba scanner selinux ssl test +threads +truetype udisks v4l +X xcomposite xinerama xml"
87 [[ ${PV} == "9999" ]] || IUSE="${IUSE} pulseaudio"
88 REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
89 test? ( abi_x86_32 )
90 elibc_glibc? ( threads )
91 mono? ( abi_x86_32 )
92 osmesa? ( opengl )" #286560
93
94 # FIXME: the test suite is unsuitable for us; many tests require net access
95 # or fail due to Xvfb's opengl limitations.
96 RESTRICT="test"
97
98 RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
99 perl? ( dev-lang/perl dev-perl/XML-Simple )
100 capi? ( net-dialup/capi4k-utils )
101 ncurses? ( >=sys-libs/ncurses-5.2:= )
102 fontconfig? ( media-libs/fontconfig:= )
103 gphoto2? ( media-libs/libgphoto2:= )
104 openal? ( media-libs/openal:= )
105 udisks? (
106 sys-apps/dbus
107 sys-fs/udisks:2
108 )
109 gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
110 X? (
111 x11-libs/libXcursor
112 x11-libs/libXext
113 x11-libs/libXrandr
114 x11-libs/libXi
115 x11-libs/libXmu
116 x11-libs/libXxf86vm
117 )
118 xinerama? ( x11-libs/libXinerama )
119 alsa? ( media-libs/alsa-lib )
120 cups? ( net-print/cups:= )
121 opencl? ( virtual/opencl )
122 opengl? (
123 virtual/glu
124 virtual/opengl
125 )
126 gsm? ( media-sound/gsm:= )
127 jpeg? ( virtual/jpeg:= )
128 ldap? ( net-nds/openldap:= )
129 lcms? ( media-libs/lcms:0= )
130 mp3? ( >=media-sound/mpg123-1.5.0 )
131 nls? ( sys-devel/gettext )
132 odbc? ( dev-db/unixODBC:= )
133 osmesa? ( media-libs/mesa[osmesa] )
134 samba? ( >=net-fs/samba-3.0.25 )
135 selinux? ( sec-policy/selinux-wine )
136 xml? ( dev-libs/libxml2 dev-libs/libxslt )
137 scanner? ( media-gfx/sane-backends:= )
138 ssl? (
139 dev-libs/openssl:0=
140 net-libs/gnutls:= )
141 png? ( media-libs/libpng:0= )
142 v4l? ( media-libs/libv4l )
143 xcomposite? ( x11-libs/libXcomposite )
144 amd64? (
145 abi_x86_32? (
146 gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
147 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1[development] )
148 X? (
149 >=app-emulation/emul-linux-x86-xlibs-2.1[development]
150 >=app-emulation/emul-linux-x86-soundlibs-2.1[development]
151 )
152 mp3? ( app-emulation/emul-linux-x86-soundlibs[development] )
153 odbc? ( app-emulation/emul-linux-x86-db[development] )
154 openal? ( app-emulation/emul-linux-x86-sdl[development] )
155 opengl? ( app-emulation/emul-linux-x86-opengl[development] )
156 osmesa? ( >=app-emulation/emul-linux-x86-opengl-20121028[development] )
157 scanner? ( app-emulation/emul-linux-x86-medialibs[development] )
158 v4l? ( app-emulation/emul-linux-x86-medialibs[development] )
159 >=app-emulation/emul-linux-x86-baselibs-20130224[development]
160 >=sys-kernel/linux-headers-2.6
161 )
162 )"
163 [[ ${PV} == "9999" ]] || RDEPEND="${RDEPEND}
164 pulseaudio? (
165 media-sound/pulseaudio
166 sys-auth/rtkit
167 )"
168 DEPEND="${RDEPEND}
169 X? (
170 x11-proto/inputproto
171 x11-proto/xextproto
172 x11-proto/xf86vidmodeproto
173 )
174 xinerama? ( x11-proto/xineramaproto )
175 prelink? ( sys-devel/prelink )
176 virtual/pkgconfig
177 virtual/yacc
178 sys-devel/flex"
179
180 # These use a non-standard "Wine" category, which is provided by
181 # /etc/xdg/applications-merged/wine.menu
182 QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
183 usr/share/applications/wine-notepad.desktop
184 usr/share/applications/wine-uninstaller.desktop
185 usr/share/applications/wine-winecfg.desktop"
186
187 src_unpack() {
188 if use abi_x86_64; then
189 [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
190 && die "you need gcc-4.4+ to build 64bit wine"
191 fi
192
193 if use abi_x86_32 && use opencl; then
194 [[ x$(eselect opencl show) = "xintel" ]] &&
195 die "Cannot build wine[opencl,abi_x86_32]: intel-ocl-sdk is 64-bit only" # 403947
196 fi
197
198 if [[ ${PV} == "9999" ]] ; then
199 git-2_src_unpack
200 else
201 unpack ${MY_P}.tar.bz2
202 fi
203
204 unpack "${PULSE_PATCHES}.tar.bz2"
205 unpack "${WINE_GENTOO}.tar.bz2"
206 }
207
208 src_prepare() {
209 local md5="$(md5sum server/protocol.def)"
210 local PATCHES=(
211 "${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
212 "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
213 "${FILESDIR}"/${PN}-1.5.17-osmesa-check.patch #429386
214 "${FILESDIR}"/${PN}-1.5.23-winebuild-CCAS.patch #455308
215 )
216 [[ ${PV} == "9999" ]] || PATCHES+=(
217 "../${PULSE_PATCHES}"/*.patch #421365
218 )
219
220 autotools-utils_src_prepare
221
222 if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
223 einfo "server/protocol.def was patched; running tools/make_requests"
224 tools/make_requests || die #432348
225 fi
226 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
227 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
228 }
229
230 do_configure() {
231 local myeconfargs=(
232 "${myeconfargs[@]}"
233 CCAS="$(tc-getAS)"
234 )
235
236 if use amd64; then
237 if [[ ${ABI} == amd64 ]]; then
238 myeconfargs+=( --enable-win64 )
239 else
240 myeconfargs+=( --disable-win64 )
241 fi
242
243 # Note: using --with-wine64 results in problems with multilib.eclass
244 # CC/LD hackery. We're using separate tools instead.
245 fi
246
247 autotools-utils_src_configure
248 }
249
250 src_configure() {
251 export LDCONFIG=/bin/true
252 use custom-cflags || strip-flags
253
254 local myeconfargs=( # common
255 --sysconfdir=/etc/wine
256 $(use_with alsa)
257 $(use_with capi)
258 $(use_with lcms cms)
259 $(use_with cups)
260 $(use_with ncurses curses)
261 $(use_with udisks dbus)
262 $(use_with fontconfig)
263 $(use_with ssl gnutls)
264 $(use_with gphoto2 gphoto)
265 $(use_with gsm)
266 $(use_with gstreamer)
267 --without-hal
268 $(use_with jpeg)
269 $(use_with ldap)
270 $(use_with mp3 mpg123)
271 $(use_with nls gettext)
272 $(use_with openal)
273 $(use_with opencl)
274 $(use_with opengl)
275 $(use_with ssl openssl)
276 $(use_with osmesa)
277 $(use_with oss)
278 $(use_with png)
279 $(use_with threads pthread)
280 $(use_with scanner sane)
281 $(use_enable test tests)
282 $(use_with truetype freetype)
283 $(use_with v4l)
284 $(use_with X x)
285 $(use_with xcomposite)
286 $(use_with xinerama)
287 $(use_with xml)
288 $(use_with xml xslt)
289 )
290
291 [[ ${PV} == "9999" ]] || myeconfargs+=( $(use_with pulseaudio pulse) )
292
293 multilib_parallel_foreach_abi do_configure
294 }
295
296 src_compile() {
297 autotools-multilib_src_compile depend
298 autotools-multilib_src_compile all
299 }
300
301 src_test() {
302 if [[ $(id -u) == 0 ]]; then
303 ewarn "Skipping tests since they cannot be run under the root user."
304 ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
305 return
306 fi
307
308 # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
309 multilib_toolchain_setup x86
310 local BUILD_DIR="${S}-${ABI}"
311 cd "${BUILD_DIR}" || die
312 WINEPREFIX="${T}/.wine-${ABI}" Xemake test
313 }
314
315 src_install() {
316 local DOCS=( ANNOUNCE AUTHORS README )
317 autotools-multilib_src_install
318
319 emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
320 if use gecko ; then
321 insinto /usr/share/wine/gecko
322 use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
323 use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
324 fi
325 if use mono ; then
326 insinto /usr/share/wine/mono
327 doins "${DISTDIR}"/wine-mono-${MV}.msi
328 fi
329 if ! use perl ; then
330 rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
331 fi
332
333 use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
334 use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
335
336 if use abi_x86_64 && ! use abi_x86_32; then
337 dosym /usr/bin/wine{64,} # 404331
338 dosym /usr/bin/wine{64,}-preloader
339 fi
340 }
341
342 pkg_preinst() {
343 gnome2_icon_savelist
344 }
345
346 pkg_postinst() {
347 gnome2_icon_cache_update
348 }
349
350 pkg_postrm() {
351 gnome2_icon_cache_update
352 }