| 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/Attic/wine-1.2.ebuild,v 1.16 2011/09/18 09:08:12 ssuominen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/Attic/wine-1.2.ebuild,v 1.17 2012/01/14 03:20:51 tetromino Exp $ |
| 4 | |
4 | |
| 5 | EAPI="2" |
5 | EAPI="4" |
| 6 | |
6 | |
| 7 | AUTOTOOLS_AUTO_DEPEND="no" |
7 | AUTOTOOLS_AUTO_DEPEND="no" |
| 8 | inherit eutils flag-o-matic multilib autotools |
8 | inherit eutils flag-o-matic multilib autotools |
| 9 | |
9 | |
| 10 | if [[ ${PV} == "9999" ]] ; then |
10 | if [[ ${PV} == "9999" ]] ; then |
| … | |
… | |
| 27 | gecko? ( mirror://sourceforge/wine/wine_gecko-${GV}.cab ) |
27 | gecko? ( mirror://sourceforge/wine/wine_gecko-${GV}.cab ) |
| 28 | pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )" |
28 | pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )" |
| 29 | |
29 | |
| 30 | LICENSE="LGPL-2.1" |
30 | LICENSE="LGPL-2.1" |
| 31 | SLOT="0" |
31 | SLOT="0" |
| 32 | IUSE="alsa capi cups custom-cflags dbus esd 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 win64 +X xcomposite xinerama xml" |
32 | 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 win64 +X xcomposite xinerama xml" |
|
|
33 | REQUIRED_USE="elibc_glibc? ( threads )" #286560 |
| 33 | RESTRICT="test" #72375 |
34 | RESTRICT="test" #72375 |
| 34 | |
35 | |
| 35 | RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
36 | RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts ) |
| 36 | perl? ( dev-lang/perl dev-perl/XML-Simple ) |
37 | perl? ( dev-lang/perl dev-perl/XML-Simple ) |
| 37 | capi? ( net-dialup/capi4k-utils ) |
38 | capi? ( net-dialup/capi4k-utils ) |
| … | |
… | |
| 50 | x11-libs/libXxf86vm |
51 | x11-libs/libXxf86vm |
| 51 | x11-apps/xmessage |
52 | x11-apps/xmessage |
| 52 | ) |
53 | ) |
| 53 | xinerama? ( x11-libs/libXinerama ) |
54 | xinerama? ( x11-libs/libXinerama ) |
| 54 | alsa? ( media-libs/alsa-lib ) |
55 | alsa? ( media-libs/alsa-lib ) |
| 55 | esd? ( media-sound/esound ) |
|
|
| 56 | nas? ( media-libs/nas ) |
56 | nas? ( media-libs/nas ) |
| 57 | cups? ( net-print/cups ) |
57 | cups? ( net-print/cups ) |
| 58 | opengl? ( virtual/opengl ) |
58 | opengl? ( virtual/opengl ) |
| 59 | pulseaudio? ( media-sound/pulseaudio ) |
59 | pulseaudio? ( media-sound/pulseaudio ) |
| 60 | gsm? ( media-sound/gsm ) |
60 | gsm? ( media-sound/gsm ) |
| … | |
… | |
| 129 | $(use_with alsa) \ |
129 | $(use_with alsa) \ |
| 130 | $(use_with capi) \ |
130 | $(use_with capi) \ |
| 131 | $(use_with lcms cms) \ |
131 | $(use_with lcms cms) \ |
| 132 | $(use_with cups) \ |
132 | $(use_with cups) \ |
| 133 | $(use_with ncurses curses) \ |
133 | $(use_with ncurses curses) \ |
| 134 | $(use_with esd) \ |
134 | --without-esd \ |
| 135 | $(use_with fontconfig) \ |
135 | $(use_with fontconfig) \ |
| 136 | $(use_with gnutls) \ |
136 | $(use_with gnutls) \ |
| 137 | $(use_with gphoto2 gphoto) \ |
137 | $(use_with gphoto2 gphoto) \ |
| 138 | $(use_with gsm) \ |
138 | $(use_with gsm) \ |
| 139 | --without-hal \ |
139 | --without-hal \ |
| … | |
… | |
| 156 | $(use_enable win64) \ |
156 | $(use_enable win64) \ |
| 157 | $(use_with X x) \ |
157 | $(use_with X x) \ |
| 158 | $(use_with xcomposite) \ |
158 | $(use_with xcomposite) \ |
| 159 | $(use_with xinerama) \ |
159 | $(use_with xinerama) \ |
| 160 | $(use_with xml) \ |
160 | $(use_with xml) \ |
| 161 | $(use_with xml xslt) \ |
161 | $(use_with xml xslt) |
| 162 | || die "configure failed" |
|
|
| 163 | |
162 | |
| 164 | emake -j1 depend || die "depend" |
163 | emake -j1 depend |
| 165 | } |
|
|
| 166 | |
|
|
| 167 | src_compile() { |
|
|
| 168 | emake all || die "all" |
|
|
| 169 | } |
164 | } |
| 170 | |
165 | |
| 171 | src_install() { |
166 | src_install() { |
| 172 | emake DESTDIR="${D}" install || die |
167 | emake DESTDIR="${D}" install |
| 173 | dodoc ANNOUNCE AUTHORS README |
168 | dodoc ANNOUNCE AUTHORS README |
| 174 | if use gecko ; then |
169 | if use gecko ; then |
| 175 | insinto /usr/share/wine/gecko |
170 | insinto /usr/share/wine/gecko |
| 176 | doins "${DISTDIR}"/wine_gecko-${GV}.cab || die |
171 | doins "${DISTDIR}"/wine_gecko-${GV}.cab |
| 177 | fi |
172 | fi |
| 178 | if ! use perl ; then |
173 | if ! use perl ; then |
| 179 | rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die |
174 | rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die |
| 180 | fi |
175 | fi |
| 181 | } |
176 | } |