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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (hide annotations) (download)
Sun Jun 24 23:23:11 2012 UTC (2 years, 5 months ago) by tetromino
Branch: MAIN
Changes since 1.16: +2 -2 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.11 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.17 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.2.3.ebuild,v 1.16 2012/06/10 03:24:21 tetromino Exp $
4 vapier 1.1
5 tetromino 1.12 EAPI="4"
6 vapier 1.1
7     inherit eutils flag-o-matic multilib
8    
9     if [[ ${PV} == "9999" ]] ; then
10     EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
11 vapier 1.4 inherit git-2 autotools
12 vapier 1.1 SRC_URI=""
13     #KEYWORDS=""
14     else
15     AUTOTOOLS_AUTO_DEPEND="no"
16     inherit autotools
17     MY_P="${PN}-${PV/_/-}"
18 tetromino 1.15 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
19 vapier 1.3 KEYWORDS="-* amd64 x86 ~x86-fbsd"
20 vapier 1.1 S=${WORKDIR}/${MY_P}
21     fi
22    
23     pulse_patches() { echo "$1"/winepulse-{0.36,0.35-configure.ac,0.38-winecfg}.patch ; }
24     GV="1.0.0-x86"
25     DESCRIPTION="free implementation of Windows(tm) on Unix"
26     HOMEPAGE="http://www.winehq.org/"
27     SRC_URI="${SRC_URI}
28 tetromino 1.16 gecko? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}.cab )
29 vapier 1.1 pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )"
30    
31     LICENSE="LGPL-2.1"
32     SLOT="0"
33 tetromino 1.12 IUSE="alsa capi cups custom-cflags dbus elibc_glibc fontconfig +gecko gnutls gphoto2 gsm hardened jack jpeg lcms ldap mp3 nas ncurses openal +opengl +oss +perl png pulseaudio samba scanner ssl test +threads +truetype v4l +win32 +win64 +X xcomposite xinerama xml"
34     REQUIRED_USE="elibc_glibc? ( threads )" #286560
35 vapier 1.1 RESTRICT="test" #72375
36    
37     MLIB_DEPS="amd64? (
38     truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
39     X? (
40     >=app-emulation/emul-linux-x86-xlibs-2.1
41 tetromino 1.17 >=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?]
42 vapier 1.1 )
43 vapier 1.9 mp3? ( app-emulation/emul-linux-x86-soundlibs )
44 vapier 1.1 openal? ( app-emulation/emul-linux-x86-sdl )
45     opengl? ( app-emulation/emul-linux-x86-opengl )
46 vapier 1.9 scanner? ( app-emulation/emul-linux-x86-medialibs )
47 vapier 1.5 v4l? ( app-emulation/emul-linux-x86-medialibs )
48 vapier 1.1 app-emulation/emul-linux-x86-baselibs
49     >=sys-kernel/linux-headers-2.6
50     )"
51     RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
52     perl? ( dev-lang/perl dev-perl/XML-Simple )
53     capi? ( net-dialup/capi4k-utils )
54     ncurses? ( >=sys-libs/ncurses-5.2 )
55     fontconfig? ( media-libs/fontconfig )
56     gphoto2? ( media-libs/libgphoto2 )
57     jack? ( media-sound/jack-audio-connection-kit )
58     openal? ( media-libs/openal )
59     dbus? ( sys-apps/dbus )
60     gnutls? ( net-libs/gnutls )
61     X? (
62     x11-libs/libXcursor
63     x11-libs/libXrandr
64     x11-libs/libXi
65     x11-libs/libXmu
66     x11-libs/libXxf86vm
67     x11-apps/xmessage
68     )
69     xinerama? ( x11-libs/libXinerama )
70     alsa? ( media-libs/alsa-lib )
71     nas? ( media-libs/nas )
72     cups? ( net-print/cups )
73     opengl? ( virtual/opengl )
74     pulseaudio? ( media-sound/pulseaudio )
75     gsm? ( media-sound/gsm )
76     jpeg? ( virtual/jpeg )
77     ldap? ( net-nds/openldap )
78     lcms? ( =media-libs/lcms-1* )
79     mp3? ( >=media-sound/mpg123-1.5.0 )
80     samba? ( >=net-fs/samba-3.0.25 )
81     xml? ( dev-libs/libxml2 dev-libs/libxslt )
82     scanner? ( media-gfx/sane-backends )
83     ssl? ( dev-libs/openssl )
84     png? ( media-libs/libpng )
85 vapier 1.2 v4l? ( media-libs/libv4l )
86 vapier 1.1 !win64? ( ${MLIB_DEPS} )
87     win32? ( ${MLIB_DEPS} )
88 vapier 1.6 xcomposite? ( x11-libs/libXcomposite )"
89 vapier 1.1 DEPEND="${RDEPEND}
90     pulseaudio? ( ${AUTOTOOLS_DEPEND} )
91     X? (
92     x11-proto/inputproto
93     x11-proto/xextproto
94     x11-proto/xf86vidmodeproto
95     )
96     xinerama? ( x11-proto/xineramaproto )
97 vapier 1.8 !hardened? ( sys-devel/prelink )
98 jdhore 1.14 virtual/pkgconfig
99 vapier 1.7 virtual/yacc
100 vapier 1.1 sys-devel/flex"
101    
102     src_unpack() {
103     if use win64 ; then
104     [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
105     && die "you need gcc-4.4+ to build 64bit wine"
106     fi
107    
108     if [[ ${PV} == "9999" ]] ; then
109 vapier 1.4 git-2_src_unpack
110 vapier 1.1 else
111     unpack ${MY_P}.tar.bz2
112     fi
113     }
114    
115     src_prepare() {
116     if use pulseaudio ; then
117     EPATCH_OPTS=-p1 epatch `pulse_patches "${DISTDIR}"`
118     eautoreconf
119     fi
120     epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
121 tetromino 1.11 epatch "${FILESDIR}"/${PN}-1.2.3-msxml3-libxml2-headers.patch #397993
122 vapier 1.1 epatch_user #282735
123     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
124     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
125     }
126    
127     do_configure() {
128     local builddir="${WORKDIR}/wine$1"
129     mkdir -p "${builddir}"
130     pushd "${builddir}" >/dev/null
131    
132     ECONF_SOURCE=${S} \
133     econf \
134     --sysconfdir=/etc/wine \
135     $(use_with alsa) \
136     $(use_with capi) \
137     $(use_with lcms cms) \
138     $(use_with cups) \
139     $(use_with ncurses curses) \
140 tetromino 1.12 --without-esd \
141 vapier 1.1 $(use_with fontconfig) \
142     $(use_with gnutls) \
143     $(use_with gphoto2 gphoto) \
144     $(use_with gsm) \
145 ssuominen 1.10 --without-hal \
146 vapier 1.1 $(use_with jack) \
147     $(use_with jpeg) \
148     $(use_with ldap) \
149     $(use_with mp3 mpg123) \
150     $(use_with nas) \
151     $(use_with openal) \
152     $(use_with opengl) \
153     $(use_with ssl openssl) \
154     $(use_with oss) \
155     $(use_with png) \
156     $(use_with threads pthread) \
157     $(use pulseaudio && use_with pulseaudio pulse) \
158     $(use_with scanner sane) \
159     $(use_enable test tests) \
160     $(use_with truetype freetype) \
161 vapier 1.2 $(use_with v4l) \
162 vapier 1.1 $(use_with X x) \
163     $(use_with xcomposite) \
164     $(use_with xinerama) \
165     $(use_with xml) \
166     $(use_with xml xslt) \
167     $2
168    
169 tetromino 1.12 emake -j1 depend
170 vapier 1.1
171     popd >/dev/null
172     }
173     src_configure() {
174     export LDCONFIG=/bin/true
175     use custom-cflags || strip-flags
176    
177     if use win64 ; then
178     do_configure 64 --enable-win64
179     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
180     else
181     ABI=x86 do_configure 32 --disable-win64
182     fi
183     }
184    
185     src_compile() {
186     local b
187     for b in 64 32 ; do
188     local builddir="${WORKDIR}/wine${b}"
189     [[ -d ${builddir} ]] || continue
190 tetromino 1.12 emake -C "${builddir}" all
191 vapier 1.1 done
192     }
193    
194     src_install() {
195     local b
196     for b in 64 32 ; do
197     local builddir="${WORKDIR}/wine${b}"
198     [[ -d ${builddir} ]] || continue
199 tetromino 1.12 emake -C "${builddir}" install DESTDIR="${D}"
200 vapier 1.1 done
201     dodoc ANNOUNCE AUTHORS README
202     if use gecko ; then
203     insinto /usr/share/wine/gecko
204 tetromino 1.12 doins "${DISTDIR}"/wine_gecko-${GV}.cab
205 vapier 1.1 fi
206     if ! use perl ; then
207     rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
208     fi
209     }
210    
211     pkg_postinst() {
212     paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
213     }

  ViewVC Help
Powered by ViewVC 1.1.20