| 1 | # Copyright 1999-2012 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.108 2012/05/12 21:12:51 tetromino Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.109 2012/06/10 03:24:21 tetromino Exp $ |
| 4 | |
4 | |
| 5 | EAPI="4" |
5 | EAPI="4" |
| 6 | |
6 | |
| 7 | inherit autotools eutils flag-o-matic multilib pax-utils |
7 | inherit autotools eutils flag-o-matic multilib pax-utils |
| 8 | |
8 | |
| … | |
… | |
| 17 | KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
17 | KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
| 18 | S=${WORKDIR}/${MY_P} |
18 | S=${WORKDIR}/${MY_P} |
| 19 | fi |
19 | fi |
| 20 | |
20 | |
| 21 | GV="1.5" |
21 | GV="1.5" |
|
|
22 | MV="0.0.4" |
| 22 | DESCRIPTION="free implementation of Windows(tm) on Unix" |
23 | DESCRIPTION="free implementation of Windows(tm) on Unix" |
| 23 | HOMEPAGE="http://www.winehq.org/" |
24 | HOMEPAGE="http://www.winehq.org/" |
| 24 | SRC_URI="${SRC_URI} |
25 | SRC_URI="${SRC_URI} |
| 25 | gecko? ( |
26 | gecko? ( |
| 26 | mirror://sourceforge/wine/wine_gecko-${GV}-x86.msi |
27 | mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi |
| 27 | win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.msi ) |
28 | win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) |
| 28 | )" |
29 | ) |
|
|
30 | mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )" |
| 29 | |
31 | |
| 30 | LICENSE="LGPL-2.1" |
32 | LICENSE="LGPL-2.1" |
| 31 | SLOT="0" |
33 | SLOT="0" |
| 32 | IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
34 | 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 samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml" |
| 33 | REQUIRED_USE="elibc_glibc? ( threads )" #286560 |
35 | REQUIRED_USE="elibc_glibc? ( threads ) |
|
|
36 | mono? ( || ( win32 !win64 ) )" #286560 |
| 34 | RESTRICT="test" #72375 |
37 | RESTRICT="test" #72375 |
| 35 | |
38 | |
| 36 | MLIB_DEPS="amd64? ( |
39 | MLIB_DEPS="amd64? ( |
| 37 | truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
40 | truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 ) |
| 38 | X? ( |
41 | X? ( |
| … | |
… | |
| 209 | if use gecko ; then |
212 | if use gecko ; then |
| 210 | insinto /usr/share/wine/gecko |
213 | insinto /usr/share/wine/gecko |
| 211 | doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
214 | doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi |
| 212 | use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
215 | use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi |
| 213 | fi |
216 | fi |
|
|
217 | if use mono ; then |
|
|
218 | insinto /usr/share/wine/mono |
|
|
219 | doins "${DISTDIR}"/wine-mono-${MV}.msi |
|
|
220 | fi |
| 214 | if ! use perl ; then |
221 | if ! use perl ; then |
| 215 | rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
222 | rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die |
| 216 | fi |
223 | fi |
| 217 | |
224 | |
| 218 | if use win32 || ! use win64; then |
225 | if use win32 || ! use win64; then |