/[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.99 Revision 1.100
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 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.99 2011/12/31 06:42:09 tetromino Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.100 2012/01/14 03:20:51 tetromino Exp $
4 4
5EAPI="2" 5EAPI="4"
6 6
7inherit eutils flag-o-matic multilib 7inherit eutils flag-o-matic multilib
8 8
9if [[ ${PV} == "9999" ]] ; then 9if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="git://source.winehq.org/git/wine.git" 10 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
27 win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.msi ) 27 win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.msi )
28 )" 28 )"
29 29
30LICENSE="LGPL-2.1" 30LICENSE="LGPL-2.1"
31SLOT="0" 31SLOT="0"
32IUSE="alsa capi cups custom-cflags 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" 32IUSE="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"
33REQUIRED_USE="elibc_glibc? ( threads )" #286560
33RESTRICT="test" #72375 34RESTRICT="test" #72375
34 35
35MLIB_DEPS="amd64? ( 36MLIB_DEPS="amd64? (
36 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) 37 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
37 X? ( 38 X? (
158 $(use_with xinerama) \ 159 $(use_with xinerama) \
159 $(use_with xml) \ 160 $(use_with xml) \
160 $(use_with xml xslt) \ 161 $(use_with xml xslt) \
161 $2 162 $2
162 163
163 emake -j1 depend || die "depend" 164 emake -j1 depend
164 165
165 popd >/dev/null 166 popd >/dev/null
166} 167}
168
167src_configure() { 169src_configure() {
168 export LDCONFIG=/bin/true 170 export LDCONFIG=/bin/true
169 use custom-cflags || strip-flags 171 use custom-cflags || strip-flags
170 172
171 if use win64 ; then 173 if use win64 ; then
179src_compile() { 181src_compile() {
180 local b 182 local b
181 for b in 64 32 ; do 183 for b in 64 32 ; do
182 local builddir="${WORKDIR}/wine${b}" 184 local builddir="${WORKDIR}/wine${b}"
183 [[ -d ${builddir} ]] || continue 185 [[ -d ${builddir} ]] || continue
184 emake -C "${builddir}" all || die 186 emake -C "${builddir}" all
185 done 187 done
186} 188}
187 189
188src_install() { 190src_install() {
189 local b 191 local b
190 for b in 64 32 ; do 192 for b in 64 32 ; do
191 local builddir="${WORKDIR}/wine${b}" 193 local builddir="${WORKDIR}/wine${b}"
192 [[ -d ${builddir} ]] || continue 194 [[ -d ${builddir} ]] || continue
193 emake -C "${builddir}" install DESTDIR="${D}" || die 195 emake -C "${builddir}" install DESTDIR="${D}"
194 done 196 done
195 dodoc ANNOUNCE AUTHORS README 197 dodoc ANNOUNCE AUTHORS README
196 if use gecko ; then 198 if use gecko ; then
197 insinto /usr/share/wine/gecko 199 insinto /usr/share/wine/gecko
198 doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi || die 200 doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
199 use win64 && { doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi || die ; } 201 use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
200 fi 202 fi
201 if ! use perl ; then 203 if ! use perl ; then
202 rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die 204 rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
203 fi 205 fi
204} 206}

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

  ViewVC Help
Powered by ViewVC 1.1.20