/[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.23 Revision 1.24
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.23 2008/03/27 18:22:16 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.24 2008/03/27 18:30:15 vapier Exp $
4 4
5EGIT_REPO_URI="git://source.winehq.org/git/wine.git" 5EAPI="1"
6 6
7inherit eutils flag-o-matic multilib git 7inherit eutils flag-o-matic multilib
8
9if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
11 inherit git
12 SRC_URI=""
13else
14 SRC_URI="mirror://sourceforge/${PN}/wine-${PV}.tar.bz2"
15fi
8 16
9DESCRIPTION="free implementation of Windows(tm) on Unix" 17DESCRIPTION="free implementation of Windows(tm) on Unix"
10HOMEPAGE="http://www.winehq.org/" 18HOMEPAGE="http://www.winehq.org/"
11SRC_URI="" 19SRC_URI="${SRC_URI}
20 gecko? ( mirror://sourceforge/wine/wine_gecko-0.1.0.cab )"
12 21
13LICENSE="LGPL-2.1" 22LICENSE="LGPL-2.1"
14SLOT="0" 23SLOT="0"
15KEYWORDS="" 24KEYWORDS=""
16IUSE="alsa arts cups dbus esd hal jack jpeg lcms ldap nas ncurses opengl oss scanner xml X" 25IUSE="alsa cups dbus esd +gecko hal jack jpeg lcms ldap nas ncurses +opengl oss samba scanner xml +X"
17RESTRICT="test" #72375 26RESTRICT="test" #72375
18 27
19RDEPEND=">=media-libs/freetype-2.0.0 28RDEPEND=">=media-libs/freetype-2.0.0
20 media-fonts/corefonts 29 media-fonts/corefonts
21 ncurses? ( >=sys-libs/ncurses-5.2 ) 30 ncurses? ( >=sys-libs/ncurses-5.2 )
22 jack? ( media-sound/jack-audio-connection-kit ) 31 jack? ( media-sound/jack-audio-connection-kit )
23 dbus? ( sys-apps/dbus ) 32 dbus? ( sys-apps/dbus )
24 hal? ( sys-apps/hal ) 33 hal? ( sys-apps/hal )
25 X? ( 34 X? (
35 x11-libs/libXcursor
26 x11-libs/libXrandr 36 x11-libs/libXrandr
27 x11-libs/libXi 37 x11-libs/libXi
28 x11-libs/libXmu 38 x11-libs/libXmu
29 x11-libs/libXxf86vm 39 x11-libs/libXxf86vm
30 x11-apps/xmessage 40 x11-apps/xmessage
31 ) 41 )
32 arts? ( kde-base/arts )
33 alsa? ( media-libs/alsa-lib ) 42 alsa? ( media-libs/alsa-lib )
34 esd? ( media-sound/esound ) 43 esd? ( media-sound/esound )
35 nas? ( media-libs/nas ) 44 nas? ( media-libs/nas )
36 cups? ( net-print/cups ) 45 cups? ( net-print/cups )
37 opengl? ( virtual/opengl ) 46 opengl? ( virtual/opengl )
38 jpeg? ( media-libs/jpeg ) 47 jpeg? ( media-libs/jpeg )
39 ldap? ( net-nds/openldap ) 48 ldap? ( net-nds/openldap )
40 lcms? ( media-libs/lcms ) 49 lcms? ( media-libs/lcms )
50 samba? ( >=net-fs/samba-3.0.25 )
41 xml? ( dev-libs/libxml2 dev-libs/libxslt ) 51 xml? ( dev-libs/libxml2 dev-libs/libxslt )
42 scanner? ( media-gfx/sane-backends ) 52 scanner? ( media-gfx/sane-backends )
43 amd64? ( 53 amd64? (
44 >=app-emulation/emul-linux-x86-xlibs-2.1 54 >=app-emulation/emul-linux-x86-xlibs-2.1
45 >=app-emulation/emul-linux-x86-soundlibs-2.1 55 >=app-emulation/emul-linux-x86-soundlibs-2.1
53 x11-proto/xf86vidmodeproto 63 x11-proto/xf86vidmodeproto
54 ) 64 )
55 sys-devel/bison 65 sys-devel/bison
56 sys-devel/flex" 66 sys-devel/flex"
57 67
58S=${WORKDIR}/${EGIT_PROJECT} 68pkg_setup() {
69 use alsa || return 0
70 if ! built_with_use --missing true media-libs/alsa-lib midi ; then
71 eerror "You must build media-libs/alsa-lib with USE=midi"
72 die "please re-emerge media-libs/alsa-lib with USE=midi"
73 fi
74}
59 75
60src_unpack() { 76src_unpack() {
77 if [[ ${PV} == "9999" ]] ; then
61 git_src_unpack 78 git_src_unpack
79 else
80 unpack wine-${PV}.tar.bz2
81 fi
62 cd "${S}" 82 cd "${S}"
63 83
64 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in 84 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in
65 epatch "${FILESDIR}"/wine-gentoo-no-ssp.patch #66002 85 epatch "${FILESDIR}"/wine-gentoo-no-ssp.patch #66002
66 sed -i '/^MimeType/d' tools/wine.desktop || die #117785 86 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
78 done 98 done
79} 99}
80 100
81src_compile() { 101src_compile() {
82 export LDCONFIG=/bin/true 102 export LDCONFIG=/bin/true
83 use arts || export ac_cv_path_ARTSCCONFIG=""
84 use esd || export ac_cv_path_ESDCONFIG="" 103 use esd || export ac_cv_path_ESDCONFIG=""
85 use scanner || export ac_cv_path_sane_devel="no" 104 use scanner || export ac_cv_path_sane_devel="no"
86 config_cache jack jack/jack.h 105 config_cache jack jack/jack.h
87 config_cache cups cups/cups.h 106 config_cache cups cups/cups.h
88 config_cache alsa alsa/asoundlib.h sys/asoundlib.h asound:snd_pcm_open 107 config_cache alsa alsa/asoundlib.h sys/asoundlib.h asound:snd_pcm_open
110 emake -j1 depend || die "depend" 129 emake -j1 depend || die "depend"
111 emake all || die "all" 130 emake all || die "all"
112} 131}
113 132
114src_install() { 133src_install() {
115 make DESTDIR="${D}" install || die 134 emake DESTDIR="${D}" install || die
116 dodoc ANNOUNCE AUTHORS ChangeLog DEVELOPERS-HINTS README 135 dodoc ANNOUNCE AUTHORS ChangeLog DEVELOPERS-HINTS README
136 if use gecko ; then
137 insinto /usr/share/wine/gecko
138 doins "${DISTDIR}"/wine_gecko-*.cab || die
139 fi
117} 140}
118 141
119pkg_postinst() { 142pkg_postinst() {
120 elog "~/.wine/config is now deprecated. For configuration either use" 143 elog "~/.wine/config is now deprecated. For configuration either use"
121 elog "winecfg or regedit HKCU\\Software\\Wine" 144 elog "winecfg or regedit HKCU\\Software\\Wine"

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20