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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.54 Revision 1.55
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.54 2010/06/21 19:21:55 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.55 2010/07/24 04:34:37 vapier Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7inherit eutils flag-o-matic multilib 7inherit eutils flag-o-matic multilib
8 8
24SRC_URI="${SRC_URI} 24SRC_URI="${SRC_URI}
25 gecko? ( mirror://sourceforge/wine/wine_gecko-${GV}.cab )" 25 gecko? ( mirror://sourceforge/wine/wine_gecko-${GV}.cab )"
26 26
27LICENSE="LGPL-2.1" 27LICENSE="LGPL-2.1"
28SLOT="0" 28SLOT="0"
29IUSE="alsa capi cups custom-cflags dbus esd fontconfig +gecko gnutls gphoto2 gsm hal jack jpeg lcms ldap mp3 nas ncurses openal +opengl +oss +perl png samba scanner ssl test +threads +truetype win64 +X xcomposite xinerama xml" 29IUSE="alsa capi cups custom-cflags dbus esd fontconfig +gecko gnutls gphoto2 gsm hal jack jpeg lcms ldap mp3 nas ncurses openal +opengl +oss +perl png samba scanner ssl test +threads +truetype +win32 +win64 +X xcomposite xinerama xml"
30RESTRICT="test" #72375 30RESTRICT="test" #72375
31 31
32RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) 32RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
33 perl? ( dev-lang/perl dev-perl/XML-Simple ) 33 perl? ( dev-lang/perl dev-perl/XML-Simple )
34 capi? ( net-dialup/capi4k-utils ) 34 capi? ( net-dialup/capi4k-utils )
102 epatch_user #282735 102 epatch_user #282735
103 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die 103 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
104 sed -i '/^MimeType/d' tools/wine.desktop || die #117785 104 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
105} 105}
106 106
107src_configure() { 107do_configure() {
108 export LDCONFIG=/bin/true 108 local builddir="${WORKDIR}/wine$1"
109 mkdir -p "${builddir}"
110 pushd "${builddir}" >/dev/null
109 111
110 use custom-cflags || strip-flags 112 ECONF_SOURCE=${S} \
111 use amd64 && ! use win64 && multilib_toolchain_setup x86
112
113 econf \ 113 econf \
114 --sysconfdir=/etc/wine \ 114 --sysconfdir=/etc/wine \
115 $(use_with alsa) \ 115 $(use_with alsa) \
116 $(use_with capi) \ 116 $(use_with capi) \
117 $(use_with lcms cms) \ 117 $(use_with lcms cms) \
135 $(use_with png) \ 135 $(use_with png) \
136 $(use_with threads pthread) \ 136 $(use_with threads pthread) \
137 $(use_with scanner sane) \ 137 $(use_with scanner sane) \
138 $(use_enable test tests) \ 138 $(use_enable test tests) \
139 $(use_with truetype freetype) \ 139 $(use_with truetype freetype) \
140 $(use_enable win64) \
141 $(use_with X x) \ 140 $(use_with X x) \
142 $(use_with xcomposite) \ 141 $(use_with xcomposite) \
143 $(use_with xinerama) \ 142 $(use_with xinerama) \
144 $(use_with xml) \ 143 $(use_with xml) \
145 $(use_with xml xslt) \ 144 $(use_with xml xslt) \
146 || die "configure failed" 145 $2
147 146
148 emake -j1 depend || die "depend" 147 emake -j1 depend || die "depend"
148
149 popd >/dev/null
150}
151src_configure() {
152 export LDCONFIG=/bin/true
153 use custom-cflags || strip-flags
154
155 if use win64 && use amd64 ; then
156 do_configure 64 --enable-win64
157 use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
158 else
159 do_configure 32 --disable-win64
160 fi
149} 161}
150 162
151src_compile() { 163src_compile() {
152 emake all || die "all" 164 local b
165 for b in 64 32 ; do
166 local builddir="${WORKDIR}/wine${b}"
167 [[ -d ${builddir} ]] || continue
168 emake -C "${builddir}" all || die
169 done
153} 170}
154 171
155src_install() { 172src_install() {
156 emake DESTDIR="${D}" install || die 173 local b
174 for b in 64 32 ; do
175 local builddir="${WORKDIR}/wine${b}"
176 [[ -d ${builddir} ]] || continue
177 emake -C "${builddir}" install DESTDIR="${D}" || die
178 done
157 dodoc ANNOUNCE AUTHORS README 179 dodoc ANNOUNCE AUTHORS README
158 if use gecko ; then 180 if use gecko ; then
159 insinto /usr/share/wine/gecko 181 insinto /usr/share/wine/gecko
160 doins "${DISTDIR}"/wine_gecko-${GV}.cab || die 182 doins "${DISTDIR}"/wine_gecko-${GV}.cab || die
161 fi 183 fi

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

  ViewVC Help
Powered by ViewVC 1.1.20