Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/wine: ChangeLog wine-1.3.8.ebuild
Date: Thu, 02 Dec 2010 21:47:28
Message-Id: 20101202214709.8A21C20054@flycatcher.gentoo.org
1 vapier 10/12/02 21:47:09
2
3 Modified: ChangeLog
4 Added: wine-1.3.8.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha5/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.340 app-emulation/wine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.340&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?rev=1.340&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/ChangeLog?r1=1.339&r2=1.340
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v
20 retrieving revision 1.339
21 retrieving revision 1.340
22 diff -u -r1.339 -r1.340
23 --- ChangeLog 21 Nov 2010 21:47:23 -0000 1.339
24 +++ ChangeLog 2 Dec 2010 21:47:09 -0000 1.340
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-emulation/wine
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.339 2010/11/21 21:47:23 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.340 2010/12/02 21:47:09 vapier Exp $
30 +
31 +*wine-1.3.8 (02 Dec 2010)
32 +
33 + 02 Dec 2010; Mike Frysinger <vapier@g.o> +wine-1.3.8.ebuild:
34 + Version bump.
35
36 *wine-1.3.7 (21 Nov 2010)
37
38
39
40
41 1.1 app-emulation/wine/wine-1.3.8.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.3.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/wine/wine-1.3.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wine-1.3.8.ebuild
47 ===================================================================
48 # Copyright 1999-2010 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.3.8.ebuild,v 1.1 2010/12/02 21:47:09 vapier Exp $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic multilib
55
56 if [[ ${PV} == "9999" ]] ; then
57 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
58 inherit git autotools
59 SRC_URI=""
60 #KEYWORDS=""
61 else
62 AUTOTOOLS_AUTO_DEPEND="no"
63 inherit autotools
64 MY_P="${PN}-${PV/_/-}"
65 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
66 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
67 S=${WORKDIR}/${MY_P}
68 fi
69
70 pulse_patches() { echo "$1"/winepulse-{0.39,0.39-configure.ac,0.38-winecfg}.patch ; }
71 GV="1.1.0"
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.cab
77 win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.cab )
78 )
79 pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )"
80
81 LICENSE="LGPL-2.1"
82 SLOT="0"
83 IUSE="alsa capi cups custom-cflags dbus esd fontconfig +gecko gnutls gphoto2 gsm gstreamer hal jack jpeg lcms ldap mp3 nas ncurses openal +opengl +oss +perl png pulseaudio samba scanner ssl test +threads +truetype +win32 +win64 +X xcomposite xinerama xml"
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 openal? ( app-emulation/emul-linux-x86-sdl )
93 opengl? ( app-emulation/emul-linux-x86-opengl )
94 app-emulation/emul-linux-x86-baselibs
95 >=sys-kernel/linux-headers-2.6
96 )"
97 RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
98 perl? ( dev-lang/perl dev-perl/XML-Simple )
99 capi? ( net-dialup/capi4k-utils )
100 ncurses? ( >=sys-libs/ncurses-5.2 )
101 fontconfig? ( media-libs/fontconfig )
102 gphoto2? ( media-libs/libgphoto2 )
103 jack? ( media-sound/jack-audio-connection-kit )
104 openal? ( media-libs/openal )
105 dbus? ( sys-apps/dbus )
106 gnutls? ( net-libs/gnutls )
107 gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
108 hal? ( sys-apps/hal )
109 X? (
110 x11-libs/libXcursor
111 x11-libs/libXrandr
112 x11-libs/libXi
113 x11-libs/libXmu
114 x11-libs/libXxf86vm
115 x11-apps/xmessage
116 )
117 xinerama? ( x11-libs/libXinerama )
118 alsa? ( media-libs/alsa-lib )
119 esd? ( media-sound/esound )
120 nas? ( media-libs/nas )
121 cups? ( net-print/cups )
122 opengl? ( virtual/opengl )
123 pulseaudio? ( media-sound/pulseaudio ${AUTOTOOLS_DEPEND} )
124 gsm? ( media-sound/gsm )
125 jpeg? ( virtual/jpeg )
126 ldap? ( net-nds/openldap )
127 lcms? ( =media-libs/lcms-1* )
128 mp3? ( >=media-sound/mpg123-1.5.0 )
129 samba? ( >=net-fs/samba-3.0.25 )
130 xml? ( dev-libs/libxml2 dev-libs/libxslt )
131 scanner? ( media-gfx/sane-backends )
132 ssl? ( dev-libs/openssl )
133 png? ( media-libs/libpng )
134 !win64? ( ${MLIB_DEPS} )
135 win32? ( ${MLIB_DEPS} )
136 xcomposite? ( x11-libs/libXcomposite ) "
137 DEPEND="${RDEPEND}
138 X? (
139 x11-proto/inputproto
140 x11-proto/xextproto
141 x11-proto/xf86vidmodeproto
142 )
143 xinerama? ( x11-proto/xineramaproto )
144 sys-devel/bison
145 sys-devel/flex"
146
147 src_unpack() {
148 if use win64 ; then
149 [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
150 && die "you need gcc-4.4+ to build 64bit wine"
151 fi
152
153 if [[ ${PV} == "9999" ]] ; then
154 git_src_unpack
155 else
156 unpack ${MY_P}.tar.bz2
157 fi
158 }
159
160 src_prepare() {
161 if use pulseaudio ; then
162 EPATCH_OPTS=-p1 epatch `pulse_patches "${DISTDIR}"`
163 eautoreconf
164 fi
165 epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
166 epatch_user #282735
167 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
168 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
169 }
170
171 do_configure() {
172 local builddir="${WORKDIR}/wine$1"
173 mkdir -p "${builddir}"
174 pushd "${builddir}" >/dev/null
175
176 ECONF_SOURCE=${S} \
177 econf \
178 --sysconfdir=/etc/wine \
179 $(use_with alsa) \
180 $(use_with capi) \
181 $(use_with lcms cms) \
182 $(use_with cups) \
183 $(use_with ncurses curses) \
184 $(use_with esd) \
185 $(use_with fontconfig) \
186 $(use_with gnutls) \
187 $(use_with gphoto2 gphoto) \
188 $(use_with gsm) \
189 $(use_with gstreamer) \
190 $(! use dbus && echo --without-hal || use_with hal) \
191 $(use_with jack) \
192 $(use_with jpeg) \
193 $(use_with ldap) \
194 $(use_with mp3 mpg123) \
195 $(use_with nas) \
196 $(use_with openal) \
197 $(use_with opengl) \
198 $(use_with ssl openssl) \
199 $(use_with oss) \
200 $(use_with png) \
201 $(use_with threads pthread) \
202 $(use pulseaudio && use_with pulseaudio pulse) \
203 $(use_with scanner sane) \
204 $(use_enable test tests) \
205 $(use_with truetype freetype) \
206 $(use_with X x) \
207 $(use_with xcomposite) \
208 $(use_with xinerama) \
209 $(use_with xml) \
210 $(use_with xml xslt) \
211 $2
212
213 emake -j1 depend || die "depend"
214
215 popd >/dev/null
216 }
217 src_configure() {
218 export LDCONFIG=/bin/true
219 use custom-cflags || strip-flags
220
221 if use win64 ; then
222 do_configure 64 --enable-win64
223 use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
224 else
225 ABI=x86 do_configure 32 --disable-win64
226 fi
227 }
228
229 src_compile() {
230 local b
231 for b in 64 32 ; do
232 local builddir="${WORKDIR}/wine${b}"
233 [[ -d ${builddir} ]] || continue
234 emake -C "${builddir}" all || die
235 done
236 }
237
238 src_install() {
239 local b
240 for b in 64 32 ; do
241 local builddir="${WORKDIR}/wine${b}"
242 [[ -d ${builddir} ]] || continue
243 emake -C "${builddir}" install DESTDIR="${D}" || die
244 done
245 dodoc ANNOUNCE AUTHORS README
246 if use gecko ; then
247 insinto /usr/share/wine/gecko
248 doins "${DISTDIR}"/wine_gecko-${GV}-x86.cab || die
249 use win64 && { doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.cab || die ; }
250 fi
251 if ! use perl ; then
252 rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
253 fi
254 }
255
256 pkg_postinst() {
257 paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
258 }