/[gentoo-x86]/app-emulation/wine/wine-9999.ebuild
Gentoo

Contents of /app-emulation/wine/wine-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.110 - (hide annotations) (download)
Sun Jun 24 23:23:11 2012 UTC (2 years, 3 months ago) by tetromino
Branch: MAIN
Changes since 1.109: +11 -6 lines
Bump, see http://www.winehq.org/announce/1.5.7 and http://www.winehq.org/announce/1.4.1 for the announcements. Enable optional native pulseaudio support for 1.5.7 (bug #421365, thanks to Lee Trager). Fix emul-linux-x86-soundlibs dependency (bug #423093, thanks to Pacho Ramos).

(Portage version: 2.2.0_alpha112/cvs/Linux x86_64)

1 tetromino 1.100 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.110 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.6.ebuild,v 1.1 2012/06/10 03:24:21 tetromino Exp $
4 vapier 1.1
5 tetromino 1.100 EAPI="4"
6 vapier 1.24
7 tetromino 1.103 inherit autotools eutils flag-o-matic multilib pax-utils
8 vapier 1.34
9 vapier 1.24 if [[ ${PV} == "9999" ]] ; then
10     EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
11 vapier 1.97 inherit git-2
12 vapier 1.24 SRC_URI=""
13 vapier 1.47 #KEYWORDS=""
14 vapier 1.24 else
15 vapier 1.26 MY_P="${PN}-${PV/_/-}"
16 tetromino 1.108 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
17 vapier 1.27 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
18 vapier 1.26 S=${WORKDIR}/${MY_P}
19 vapier 1.24 fi
20 vapier 1.1
21 tetromino 1.110 GV="1.6"
22 tetromino 1.109 MV="0.0.4"
23 tetromino 1.110 PULSE_PATCH="winepulse-2012.06.15.patch"
24 vapier 1.1 DESCRIPTION="free implementation of Windows(tm) on Unix"
25 vapier 1.23 HOMEPAGE="http://www.winehq.org/"
26 vapier 1.24 SRC_URI="${SRC_URI}
27 vapier 1.60 gecko? (
28 tetromino 1.109 mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
29     win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
30     )
31 tetromino 1.110 mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
32     http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
33 vapier 1.1
34     LICENSE="LGPL-2.1"
35     SLOT="0"
36 tetromino 1.110 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 +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
37 tetromino 1.109 REQUIRED_USE="elibc_glibc? ( threads )
38     mono? ( || ( win32 !win64 ) )" #286560
39 vapier 1.1 RESTRICT="test" #72375
40    
41 vapier 1.57 MLIB_DEPS="amd64? (
42     truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
43 vapier 1.88 X? (
44     >=app-emulation/emul-linux-x86-xlibs-2.1
45 tetromino 1.110 >=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?]
46 vapier 1.88 )
47 vapier 1.93 mp3? ( app-emulation/emul-linux-x86-soundlibs )
48 tetromino 1.103 odbc? ( app-emulation/emul-linux-x86-db )
49 vapier 1.57 openal? ( app-emulation/emul-linux-x86-sdl )
50     opengl? ( app-emulation/emul-linux-x86-opengl )
51 vapier 1.93 scanner? ( app-emulation/emul-linux-x86-medialibs )
52 vapier 1.86 v4l? ( app-emulation/emul-linux-x86-medialibs )
53 vapier 1.57 app-emulation/emul-linux-x86-baselibs
54     >=sys-kernel/linux-headers-2.6
55     )"
56 vapier 1.46 RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
57 vapier 1.45 perl? ( dev-lang/perl dev-perl/XML-Simple )
58 vapier 1.43 capi? ( net-dialup/capi4k-utils )
59 vapier 1.1 ncurses? ( >=sys-libs/ncurses-5.2 )
60 vapier 1.43 fontconfig? ( media-libs/fontconfig )
61     gphoto2? ( media-libs/libgphoto2 )
62     openal? ( media-libs/openal )
63 tetromino 1.99 udisks? (
64     sys-apps/dbus
65 tetromino 1.110 sys-fs/udisks:2
66 tetromino 1.99 )
67 vapier 1.26 gnutls? ( net-libs/gnutls )
68 vapier 1.66 gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
69 vapier 1.18 X? (
70 vapier 1.24 x11-libs/libXcursor
71 vapier 1.18 x11-libs/libXrandr
72     x11-libs/libXi
73     x11-libs/libXmu
74     x11-libs/libXxf86vm
75     x11-apps/xmessage
76 spyderous 1.2 )
77 vapier 1.50 xinerama? ( x11-libs/libXinerama )
78 ssuominen 1.39 alsa? ( media-libs/alsa-lib )
79 vapier 1.1 cups? ( net-print/cups )
80 vapier 1.98 opencl? ( virtual/opencl )
81 vapier 1.1 opengl? ( virtual/opengl )
82 scarabeus 1.42 gsm? ( media-sound/gsm )
83 ssuominen 1.65 jpeg? ( virtual/jpeg )
84 vapier 1.1 ldap? ( net-nds/openldap )
85 ssuominen 1.54 lcms? ( =media-libs/lcms-1* )
86 vapier 1.51 mp3? ( >=media-sound/mpg123-1.5.0 )
87 vapier 1.69 nls? ( sys-devel/gettext )
88 tetromino 1.103 odbc? ( dev-db/unixODBC )
89 tetromino 1.110 pulseaudio? ( media-sound/pulseaudio )
90 vapier 1.24 samba? ( >=net-fs/samba-3.0.25 )
91 tetromino 1.102 selinux? ( sec-policy/selinux-wine )
92 vapier 1.11 xml? ( dev-libs/libxml2 dev-libs/libxslt )
93 vapier 1.1 scanner? ( media-gfx/sane-backends )
94 vapier 1.27 ssl? ( dev-libs/openssl )
95     png? ( media-libs/libpng )
96 vapier 1.76 v4l? ( media-libs/libv4l )
97 vapier 1.57 !win64? ( ${MLIB_DEPS} )
98     win32? ( ${MLIB_DEPS} )
99 vapier 1.89 xcomposite? ( x11-libs/libXcomposite )"
100 vapier 1.1 DEPEND="${RDEPEND}
101 vapier 1.16 X? (
102     x11-proto/inputproto
103     x11-proto/xextproto
104     x11-proto/xf86vidmodeproto
105 spyderous 1.2 )
106 vapier 1.50 xinerama? ( x11-proto/xineramaproto )
107 vapier 1.91 !hardened? ( sys-devel/prelink )
108 jdhore 1.107 virtual/pkgconfig
109 vapier 1.90 virtual/yacc
110 vapier 1.1 sys-devel/flex"
111    
112     src_unpack() {
113 vapier 1.59 if use win64 ; then
114     [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
115     && die "you need gcc-4.4+ to build 64bit wine"
116 vapier 1.49 fi
117    
118 tetromino 1.103 if use win32 && use opencl; then
119     [[ x$(eselect opencl show) = "xintel" ]] &&
120     die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
121     fi
122    
123 vapier 1.24 if [[ ${PV} == "9999" ]] ; then
124 vapier 1.82 git-2_src_unpack
125 vapier 1.24 else
126 vapier 1.26 unpack ${MY_P}.tar.bz2
127 vapier 1.24 fi
128 vapier 1.30 }
129 vapier 1.1
130 vapier 1.30 src_prepare() {
131 scarabeus 1.42 epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
132 tetromino 1.101 epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
133 tetromino 1.110 epatch "${DISTDIR}/${PULSE_PATCH}" #421365
134 vapier 1.40 epatch_user #282735
135 tetromino 1.101 eautoreconf
136 vapier 1.26 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
137 vapier 1.3 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
138 vapier 1.1 }
139    
140 vapier 1.55 do_configure() {
141     local builddir="${WORKDIR}/wine$1"
142     mkdir -p "${builddir}"
143     pushd "${builddir}" >/dev/null
144 vapier 1.34
145 vapier 1.55 ECONF_SOURCE=${S} \
146 vapier 1.1 econf \
147     --sysconfdir=/etc/wine \
148 vapier 1.27 $(use_with alsa) \
149 vapier 1.43 $(use_with capi) \
150     $(use_with lcms cms) \
151 vapier 1.27 $(use_with cups) \
152 vapier 1.43 $(use_with ncurses curses) \
153 tetromino 1.99 $(use_with udisks dbus) \
154 vapier 1.43 $(use_with fontconfig) \
155 vapier 1.26 $(use_with gnutls) \
156 vapier 1.43 $(use_with gphoto2 gphoto) \
157 scarabeus 1.42 $(use_with gsm) \
158 vapier 1.66 $(use_with gstreamer) \
159 ssuominen 1.94 --without-hal \
160 vapier 1.27 $(use_with jpeg) \
161     $(use_with ldap) \
162 scarabeus 1.42 $(use_with mp3 mpg123) \
163 vapier 1.95 $(use_with nls gettext) \
164 vapier 1.43 $(use_with openal) \
165 vapier 1.81 $(use_with opencl) \
166 vapier 1.1 $(use_with opengl) \
167 vapier 1.43 $(use_with ssl openssl) \
168 vapier 1.27 $(use_with oss) \
169     $(use_with png) \
170 vapier 1.43 $(use_with threads pthread) \
171 tetromino 1.110 $(use_with pulseaudio pulse) \
172 vapier 1.28 $(use_with scanner sane) \
173 vapier 1.41 $(use_enable test tests) \
174 vapier 1.46 $(use_with truetype freetype) \
175 vapier 1.76 $(use_with v4l) \
176 vapier 1.1 $(use_with X x) \
177 vapier 1.27 $(use_with xcomposite) \
178     $(use_with xinerama) \
179     $(use_with xml) \
180     $(use_with xml xslt) \
181 vapier 1.55 $2
182 vapier 1.1
183 tetromino 1.100 emake -j1 depend
184 vapier 1.55
185     popd >/dev/null
186     }
187 tetromino 1.100
188 vapier 1.55 src_configure() {
189     export LDCONFIG=/bin/true
190     use custom-cflags || strip-flags
191    
192 vapier 1.59 if use win64 ; then
193 vapier 1.55 do_configure 64 --enable-win64
194     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
195     else
196 vapier 1.58 ABI=x86 do_configure 32 --disable-win64
197 vapier 1.55 fi
198 vapier 1.30 }
199    
200     src_compile() {
201 vapier 1.55 local b
202     for b in 64 32 ; do
203     local builddir="${WORKDIR}/wine${b}"
204     [[ -d ${builddir} ]] || continue
205 tetromino 1.100 emake -C "${builddir}" all
206 vapier 1.55 done
207 vapier 1.1 }
208    
209     src_install() {
210 vapier 1.55 local b
211     for b in 64 32 ; do
212     local builddir="${WORKDIR}/wine${b}"
213     [[ -d ${builddir} ]] || continue
214 tetromino 1.100 emake -C "${builddir}" install DESTDIR="${D}"
215 vapier 1.55 done
216 vapier 1.26 dodoc ANNOUNCE AUTHORS README
217 vapier 1.24 if use gecko ; then
218     insinto /usr/share/wine/gecko
219 tetromino 1.100 doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
220     use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
221 vapier 1.24 fi
222 tetromino 1.109 if use mono ; then
223     insinto /usr/share/wine/mono
224     doins "${DISTDIR}"/wine-mono-${MV}.msi
225     fi
226 vapier 1.45 if ! use perl ; then
227 tetromino 1.103 rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
228     fi
229    
230     if use win32 || ! use win64; then
231     pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
232 vapier 1.45 fi
233 tetromino 1.103 use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
234 vapier 1.46
235 tetromino 1.103 if use win64 && ! use win32; then
236     dosym /usr/bin/wine{64,} # 404331
237     dosym /usr/bin/wine{64,}-preloader
238     fi
239 vapier 1.46 }

  ViewVC Help
Powered by ViewVC 1.1.20