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.4_rc1.ebuild
Date: Sat, 28 Jan 2012 19:52:05
Message-Id: 20120128195156.9437E2004B@flycatcher.gentoo.org
1 tetromino 12/01/28 19:51:56
2
3 Modified: ChangeLog
4 Added: wine-1.4_rc1.ebuild
5 Log:
6 Version bump, see http://www.winehq.org/announce/1.4-rc1 for the announcement. Filter -m64 -m32 -mx32 flags for multilib-portage (bug #395615, thanks to Thomas Sachau).
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.397 app-emulation/wine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.397&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.397&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.396&r2=1.397
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v
20 retrieving revision 1.396
21 retrieving revision 1.397
22 diff -u -r1.396 -r1.397
23 --- ChangeLog 14 Jan 2012 03:30:58 -0000 1.396
24 +++ ChangeLog 28 Jan 2012 19:51:56 -0000 1.397
25 @@ -1,6 +1,14 @@
26 # ChangeLog for app-emulation/wine
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.396 2012/01/14 03:30:58 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.397 2012/01/28 19:51:56 tetromino Exp $
30 +
31 +*wine-1.4_rc1 (28 Jan 2012)
32 +
33 + 28 Jan 2012; Alexandre Rostovtsev <tetromino@g.o>
34 + +wine-1.4_rc1.ebuild:
35 + Version bump, see http://www.winehq.org/announce/1.4-rc1 for the
36 + announcement. Filter -m64 -m32 -mx32 flags for multilib-portage (bug #395615,
37 + thanks to Thomas Sachau).
38
39 *wine-1.3.37 (14 Jan 2012)
40
41
42
43
44 1.1 app-emulation/wine/wine-1.4_rc1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.4_rc1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.4_rc1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: wine-1.4_rc1.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.4_rc1.ebuild,v 1.1 2012/01/28 19:51:56 tetromino Exp $
54
55 EAPI="4"
56
57 inherit eutils flag-o-matic multilib
58
59 if [[ ${PV} == "9999" ]] ; then
60 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
61 inherit git-2
62 SRC_URI=""
63 #KEYWORDS=""
64 else
65 MY_P="${PN}-${PV/_/-}"
66 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
67 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
68 S=${WORKDIR}/${MY_P}
69 fi
70
71 GV="1.4"
72 DESCRIPTION="free implementation of Windows(tm) on Unix"
73 HOMEPAGE="http://www.winehq.org/"
74 SRC_URI="${SRC_URI}
75 gecko? (
76 mirror://sourceforge/wine/wine_gecko-${GV}-x86.msi
77 win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.msi )
78 )"
79
80 LICENSE="LGPL-2.1"
81 SLOT="0"
82 IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap mp3 ncurses nls openal opencl +opengl +oss +perl png samba scanner ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
83 REQUIRED_USE="elibc_glibc? ( threads )" #286560
84 RESTRICT="test" #72375
85
86 MLIB_DEPS="amd64? (
87 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
88 X? (
89 >=app-emulation/emul-linux-x86-xlibs-2.1
90 >=app-emulation/emul-linux-x86-soundlibs-2.1
91 )
92 mp3? ( app-emulation/emul-linux-x86-soundlibs )
93 openal? ( app-emulation/emul-linux-x86-sdl )
94 opengl? ( app-emulation/emul-linux-x86-opengl )
95 scanner? ( app-emulation/emul-linux-x86-medialibs )
96 v4l? ( app-emulation/emul-linux-x86-medialibs )
97 app-emulation/emul-linux-x86-baselibs
98 >=sys-kernel/linux-headers-2.6
99 )"
100 RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
101 perl? ( dev-lang/perl dev-perl/XML-Simple )
102 capi? ( net-dialup/capi4k-utils )
103 ncurses? ( >=sys-libs/ncurses-5.2 )
104 fontconfig? ( media-libs/fontconfig )
105 gphoto2? ( media-libs/libgphoto2 )
106 openal? ( media-libs/openal )
107 udisks? (
108 sys-apps/dbus
109 sys-fs/udisks
110 )
111 gnutls? ( net-libs/gnutls )
112 gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
113 X? (
114 x11-libs/libXcursor
115 x11-libs/libXrandr
116 x11-libs/libXi
117 x11-libs/libXmu
118 x11-libs/libXxf86vm
119 x11-apps/xmessage
120 )
121 xinerama? ( x11-libs/libXinerama )
122 alsa? ( media-libs/alsa-lib )
123 cups? ( net-print/cups )
124 opencl? ( virtual/opencl )
125 opengl? ( virtual/opengl )
126 gsm? ( media-sound/gsm )
127 jpeg? ( virtual/jpeg )
128 ldap? ( net-nds/openldap )
129 lcms? ( =media-libs/lcms-1* )
130 mp3? ( >=media-sound/mpg123-1.5.0 )
131 nls? ( sys-devel/gettext )
132 samba? ( >=net-fs/samba-3.0.25 )
133 xml? ( dev-libs/libxml2 dev-libs/libxslt )
134 scanner? ( media-gfx/sane-backends )
135 ssl? ( dev-libs/openssl )
136 png? ( media-libs/libpng )
137 v4l? ( media-libs/libv4l )
138 !win64? ( ${MLIB_DEPS} )
139 win32? ( ${MLIB_DEPS} )
140 xcomposite? ( x11-libs/libXcomposite )"
141 DEPEND="${RDEPEND}
142 X? (
143 x11-proto/inputproto
144 x11-proto/xextproto
145 x11-proto/xf86vidmodeproto
146 )
147 xinerama? ( x11-proto/xineramaproto )
148 !hardened? ( sys-devel/prelink )
149 virtual/yacc
150 sys-devel/flex"
151
152 src_unpack() {
153 if use win64 ; then
154 [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
155 && die "you need gcc-4.4+ to build 64bit wine"
156 fi
157
158 if [[ ${PV} == "9999" ]] ; then
159 git-2_src_unpack
160 else
161 unpack ${MY_P}.tar.bz2
162 fi
163 }
164
165 src_prepare() {
166 epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
167 epatch_user #282735
168 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
169 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
170 }
171
172 do_configure() {
173 local builddir="${WORKDIR}/wine$1"
174 mkdir -p "${builddir}"
175 pushd "${builddir}" >/dev/null
176
177 ECONF_SOURCE=${S} \
178 econf \
179 --sysconfdir=/etc/wine \
180 $(use_with alsa) \
181 $(use_with capi) \
182 $(use_with lcms cms) \
183 $(use_with cups) \
184 $(use_with ncurses curses) \
185 $(use_with udisks dbus) \
186 $(use_with fontconfig) \
187 $(use_with gnutls) \
188 $(use_with gphoto2 gphoto) \
189 $(use_with gsm) \
190 $(use_with gstreamer) \
191 --without-hal \
192 $(use_with jpeg) \
193 $(use_with ldap) \
194 $(use_with mp3 mpg123) \
195 $(use_with nls gettext) \
196 $(use_with openal) \
197 $(use_with opencl) \
198 $(use_with opengl) \
199 $(use_with ssl openssl) \
200 $(use_with oss) \
201 $(use_with png) \
202 $(use_with threads pthread) \
203 $(use_with scanner sane) \
204 $(use_enable test tests) \
205 $(use_with truetype freetype) \
206 $(use_with v4l) \
207 $(use_with X x) \
208 $(use_with xcomposite) \
209 $(use_with xinerama) \
210 $(use_with xml) \
211 $(use_with xml xslt) \
212 $2
213
214 emake -j1 depend
215
216 popd >/dev/null
217 }
218
219 src_configure() {
220 export LDCONFIG=/bin/true
221 use custom-cflags || strip-flags
222 filter-flags -m64 -m32 -mx32 #395615
223
224 if use win64 ; then
225 do_configure 64 --enable-win64
226 use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
227 else
228 ABI=x86 do_configure 32 --disable-win64
229 fi
230 }
231
232 src_compile() {
233 filter-flags -m64 -m32 -mx32 #395615
234 local b
235 for b in 64 32 ; do
236 local builddir="${WORKDIR}/wine${b}"
237 [[ -d ${builddir} ]] || continue
238 emake -C "${builddir}" all
239 done
240 }
241
242 src_install() {
243 filter-flags -m64 -m32 -mx32 #395615
244 local b
245 for b in 64 32 ; do
246 local builddir="${WORKDIR}/wine${b}"
247 [[ -d ${builddir} ]] || continue
248 emake -C "${builddir}" install DESTDIR="${D}"
249 done
250 dodoc ANNOUNCE AUTHORS README
251 if use gecko ; then
252 insinto /usr/share/wine/gecko
253 doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
254 use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
255 fi
256 if ! use perl ; then
257 rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
258 fi
259 }
260
261 pkg_postinst() {
262 paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
263 }