/[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.26 Revision 1.27
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.26 2009/01/16 20:04:57 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.27 2009/01/18 19:36:38 vapier Exp $
4 4
5EAPI="1" 5EAPI="2"
6
7inherit eutils flag-o-matic multilib
8 6
9if [[ ${PV} == "9999" ]] ; then 7if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="git://source.winehq.org/git/wine.git" 8 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
11 inherit git 9 inherit git
12 SRC_URI="" 10 SRC_URI=""
11 KEYWORDS=""
13else 12else
14 MY_P="${PN}-${PV/_/-}" 13 MY_P="${PN}-${PV/_/-}"
15 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" 14 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
15 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
16 S=${WORKDIR}/${MY_P} 16 S=${WORKDIR}/${MY_P}
17fi 17fi
18 18
19GV="0.9.0" 19GV="0.9.0"
20DESCRIPTION="free implementation of Windows(tm) on Unix" 20DESCRIPTION="free implementation of Windows(tm) on Unix"
22SRC_URI="${SRC_URI} 22SRC_URI="${SRC_URI}
23 gecko? ( mirror://sourceforge/wine/wine_gecko-${GV}.cab )" 23 gecko? ( mirror://sourceforge/wine/wine_gecko-${GV}.cab )"
24 24
25LICENSE="LGPL-2.1" 25LICENSE="LGPL-2.1"
26SLOT="0" 26SLOT="0"
27KEYWORDS=""
28IUSE="alsa cups dbus esd +gecko gnutls hal jack jpeg lcms ldap nas ncurses +opengl oss samba scanner xml +X" 27IUSE="alsa cups dbus esd +gecko gnutls hal jack jpeg lcms ldap nas ncurses +opengl oss png samba scanner ssl win64 xml +X"
29RESTRICT="test" #72375 28RESTRICT="test" #72375
30 29
31RDEPEND=">=media-libs/freetype-2.0.0 30RDEPEND=">=media-libs/freetype-2.0.0
32 media-fonts/corefonts 31 media-fonts/corefonts
33 ncurses? ( >=sys-libs/ncurses-5.2 ) 32 ncurses? ( >=sys-libs/ncurses-5.2 )
41 x11-libs/libXi 40 x11-libs/libXi
42 x11-libs/libXmu 41 x11-libs/libXmu
43 x11-libs/libXxf86vm 42 x11-libs/libXxf86vm
44 x11-apps/xmessage 43 x11-apps/xmessage
45 ) 44 )
46 alsa? ( media-libs/alsa-lib ) 45 alsa? ( media-libs/alsa-lib[midi] )
47 esd? ( media-sound/esound ) 46 esd? ( media-sound/esound )
48 nas? ( media-libs/nas ) 47 nas? ( media-libs/nas )
49 cups? ( net-print/cups ) 48 cups? ( net-print/cups )
50 opengl? ( virtual/opengl ) 49 opengl? ( virtual/opengl )
51 jpeg? ( media-libs/jpeg ) 50 jpeg? ( media-libs/jpeg )
52 ldap? ( net-nds/openldap ) 51 ldap? ( net-nds/openldap )
53 lcms? ( media-libs/lcms ) 52 lcms? ( media-libs/lcms )
54 samba? ( >=net-fs/samba-3.0.25 ) 53 samba? ( >=net-fs/samba-3.0.25 )
55 xml? ( dev-libs/libxml2 dev-libs/libxslt ) 54 xml? ( dev-libs/libxml2 dev-libs/libxslt )
56 scanner? ( media-gfx/sane-backends ) 55 scanner? ( media-gfx/sane-backends )
56 ssl? ( dev-libs/openssl )
57 png? ( media-libs/libpng )
57 amd64? ( 58 amd64? (
58 X? ( 59 X? (
59 >=app-emulation/emul-linux-x86-xlibs-2.1 60 >=app-emulation/emul-linux-x86-xlibs-2.1
60 >=app-emulation/emul-linux-x86-soundlibs-2.1 61 >=app-emulation/emul-linux-x86-soundlibs-2.1
61 ) 62 )
68 x11-proto/xf86vidmodeproto 69 x11-proto/xf86vidmodeproto
69 ) 70 )
70 sys-devel/bison 71 sys-devel/bison
71 sys-devel/flex" 72 sys-devel/flex"
72 73
73pkg_setup() {
74 use alsa || return 0
75 if ! built_with_use --missing true media-libs/alsa-lib midi ; then
76 eerror "You must build media-libs/alsa-lib with USE=midi"
77 die "please re-emerge media-libs/alsa-lib with USE=midi"
78 fi
79}
80
81src_unpack() { 74src_unpack() {
82 if [[ ${PV} == "9999" ]] ; then 75 if [[ ${PV} == "9999" ]] ; then
83 git_src_unpack 76 git_src_unpack
84 else 77 else
85 unpack ${MY_P}.tar.bz2 78 unpack ${MY_P}.tar.bz2
88 81
89 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die 82 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
90 sed -i '/^MimeType/d' tools/wine.desktop || die #117785 83 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
91} 84}
92 85
93config_cache() {
94 local h ans="no"
95 use $1 && ans="yes"
96 shift
97 for h in "$@" ; do
98 [[ ${h} == *.h ]] \
99 && h=header_${h} \
100 || h=lib_${h}
101 export ac_cv_${h//[:\/.]/_}=${ans}
102 done
103}
104
105src_compile() { 86src_compile() {
106 export LDCONFIG=/bin/true 87 export LDCONFIG=/bin/true
107 use esd || export ac_cv_path_ESDCONFIG=""
108 use scanner || export ac_cv_path_sane_devel="no"
109 config_cache jack jack/jack.h
110 config_cache cups cups/cups.h
111 config_cache alsa alsa/asoundlib.h sys/asoundlib.h asound:snd_pcm_open
112 config_cache nas audio/audiolib.h audio/soundlib.h
113 config_cache xml libxml/parser.h libxslt/pattern.h libxslt/transform.h
114 config_cache ldap ldap.h lber.h
115 config_cache dbus dbus/dbus.h
116 config_cache hal hal/libhal.h
117 config_cache jpeg jpeglib.h
118 config_cache oss sys/soundcard.h machine/soundcard.h soundcard.h
119 config_cache lcms lcms.h
120 88
121 strip-flags 89 # XXX: should check out these flags too:
122 90 # audioio capi fontconfig freetype gphoto
123 use amd64 && multilib_toolchain_setup x86
124
125 # $(use_enable amd64 win64)
126 econf \ 91 econf \
127 --sysconfdir=/etc/wine \ 92 --sysconfdir=/etc/wine \
93 $(use_with alsa) \
94 $(use_with cups) \
95 $(use_with esd) \
128 $(use_with gnutls) \ 96 $(use_with gnutls) \
97 $(! use dbus && echo --without-hal || use_with hal) \
98 $(use_with jack) \
99 $(use_with jpeg) \
100 $(use_with lcms cms) \
101 $(use_with ldap) \
102 $(use_with nas) \
129 $(use_with ncurses curses) \ 103 $(use_with ncurses curses) \
130 $(use_with opengl) \ 104 $(use_with opengl) \
105 $(use_with oss) \
106 $(use_with png) \
107 $(use_with sane scanner) \
108 $(use_with ssl openssl) \
109 $(use_with win64) \
131 $(use_with X x) \ 110 $(use_with X x) \
111 $(use_with xcomposite) \
112 $(use_with xinerama) \
113 $(use_with xml) \
114 $(use_with xml xslt) \
132 || die "configure failed" 115 || die "configure failed"
133 116
134 emake -j1 depend || die "depend" 117 emake -j1 depend || die "depend"
135 emake all || die "all" 118 emake all || die "all"
136} 119}
141 if use gecko ; then 124 if use gecko ; then
142 insinto /usr/share/wine/gecko 125 insinto /usr/share/wine/gecko
143 doins "${DISTDIR}"/wine_gecko-${GV}.cab || die 126 doins "${DISTDIR}"/wine_gecko-${GV}.cab || die
144 fi 127 fi
145} 128}
146
147pkg_postinst() {
148 elog "~/.wine/config is now deprecated. For configuration either use"
149 elog "winecfg or regedit HKCU\\Software\\Wine"
150}

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20