/[gentoo-x86]/app-emulation/wine/wine-1.2.ebuild
Gentoo

Contents of /app-emulation/wine/wine-1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (hide annotations) (download)
Sun Jun 24 23:23:11 2012 UTC (22 months ago) by tetromino
Branch: MAIN
Changes since 1.21: +2 -2 lines
Bump, see http://www.winehq.org/announce/1.5.7 and http://www.winehq.org/announce/1.4.1 for the announcements. Enable optional native pulseaudio support for 1.5.7 (bug #421365, thanks to Lee Trager). Fix emul-linux-x86-soundlibs dependency (bug #423093, thanks to Pacho Ramos).

(Portage version: 2.2.0_alpha112/cvs/Linux x86_64)

1 tetromino 1.17 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.22 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.2.ebuild,v 1.21 2012/06/10 03:24:21 tetromino Exp $
4 vapier 1.1
5 tetromino 1.17 EAPI="4"
6 vapier 1.1
7     AUTOTOOLS_AUTO_DEPEND="no"
8     inherit eutils flag-o-matic multilib autotools
9    
10     if [[ ${PV} == "9999" ]] ; then
11     EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
12 vapier 1.10 inherit git-2
13 vapier 1.1 SRC_URI=""
14     #KEYWORDS=""
15     else
16     MY_P="${PN}-${PV/_/-}"
17 tetromino 1.20 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
18 vapier 1.3 KEYWORDS="-* amd64 x86 ~x86-fbsd"
19 vapier 1.1 S=${WORKDIR}/${MY_P}
20     fi
21    
22     pulse_patches() { echo "$1"/winepulse-{0.36,0.35-configure.ac,0.38-winecfg}.patch ; }
23     GV="1.0.0-x86"
24     DESCRIPTION="free implementation of Windows(tm) on Unix"
25     HOMEPAGE="http://www.winehq.org/"
26     SRC_URI="${SRC_URI}
27 tetromino 1.21 gecko? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}.cab )
28 vapier 1.1 pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )"
29    
30     LICENSE="LGPL-2.1"
31     SLOT="0"
32 tetromino 1.17 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
34 vapier 1.1 RESTRICT="test" #72375
35    
36     RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
37     perl? ( dev-lang/perl dev-perl/XML-Simple )
38     capi? ( net-dialup/capi4k-utils )
39     ncurses? ( >=sys-libs/ncurses-5.2 )
40     fontconfig? ( media-libs/fontconfig )
41     gphoto2? ( media-libs/libgphoto2 )
42     jack? ( media-sound/jack-audio-connection-kit )
43     openal? ( media-libs/openal )
44     dbus? ( sys-apps/dbus )
45     gnutls? ( net-libs/gnutls )
46     X? (
47     x11-libs/libXcursor
48     x11-libs/libXrandr
49     x11-libs/libXi
50     x11-libs/libXmu
51     x11-libs/libXxf86vm
52     x11-apps/xmessage
53     )
54     xinerama? ( x11-libs/libXinerama )
55     alsa? ( media-libs/alsa-lib )
56     nas? ( media-libs/nas )
57     cups? ( net-print/cups )
58     opengl? ( virtual/opengl )
59 vapier 1.7 pulseaudio? ( media-sound/pulseaudio )
60 vapier 1.1 gsm? ( media-sound/gsm )
61 ssuominen 1.6 jpeg? ( virtual/jpeg )
62 vapier 1.1 ldap? ( net-nds/openldap )
63     lcms? ( =media-libs/lcms-1* )
64     mp3? ( >=media-sound/mpg123-1.5.0 )
65     samba? ( >=net-fs/samba-3.0.25 )
66     xml? ( dev-libs/libxml2 dev-libs/libxslt )
67     scanner? ( media-gfx/sane-backends )
68     ssl? ( dev-libs/openssl )
69     png? ( media-libs/libpng )
70 vapier 1.9 v4l? ( media-libs/libv4l )
71 vapier 1.1 !win64? ( amd64? (
72     truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
73     X? (
74     >=app-emulation/emul-linux-x86-xlibs-2.1
75 tetromino 1.22 >=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?]
76 vapier 1.1 )
77 vapier 1.15 mp3? ( app-emulation/emul-linux-x86-soundlibs )
78 vapier 1.1 openal? ( app-emulation/emul-linux-x86-sdl )
79 vapier 1.2 opengl? ( app-emulation/emul-linux-x86-opengl )
80 vapier 1.15 scanner? ( app-emulation/emul-linux-x86-medialibs )
81 vapier 1.11 v4l? ( app-emulation/emul-linux-x86-medialibs )
82 vapier 1.1 app-emulation/emul-linux-x86-baselibs
83     >=sys-kernel/linux-headers-2.6
84     ) )
85 vapier 1.12 xcomposite? ( x11-libs/libXcomposite )"
86 vapier 1.1 DEPEND="${RDEPEND}
87 vapier 1.7 pulseaudio? ( ${AUTOTOOLS_DEPEND} )
88 vapier 1.1 X? (
89     x11-proto/inputproto
90     x11-proto/xextproto
91     x11-proto/xf86vidmodeproto
92     )
93     xinerama? ( x11-proto/xineramaproto )
94 vapier 1.14 !hardened? ( sys-devel/prelink )
95 jdhore 1.19 virtual/pkgconfig
96 vapier 1.13 virtual/yacc
97 vapier 1.1 sys-devel/flex"
98    
99     src_unpack() {
100     if [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] ; then
101     use win64 && die "you need gcc-4.4+ to build 64bit wine"
102     fi
103    
104     if [[ ${PV} == "9999" ]] ; then
105 vapier 1.10 git-2_src_unpack
106 vapier 1.1 else
107     unpack ${MY_P}.tar.bz2
108     fi
109     }
110    
111     src_prepare() {
112     if use pulseaudio ; then
113     EPATCH_OPTS=-p1 epatch `pulse_patches "${DISTDIR}"`
114     eautoreconf
115     fi
116     epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
117     epatch_user #282735
118     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
119     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
120     }
121    
122     src_configure() {
123     export LDCONFIG=/bin/true
124    
125     use custom-cflags || strip-flags
126     use amd64 && ! use win64 && multilib_toolchain_setup x86
127    
128     econf \
129     --sysconfdir=/etc/wine \
130     $(use_with alsa) \
131     $(use_with capi) \
132     $(use_with lcms cms) \
133     $(use_with cups) \
134     $(use_with ncurses curses) \
135 tetromino 1.17 --without-esd \
136 vapier 1.1 $(use_with fontconfig) \
137     $(use_with gnutls) \
138     $(use_with gphoto2 gphoto) \
139     $(use_with gsm) \
140 ssuominen 1.16 --without-hal \
141 vapier 1.1 $(use_with jack) \
142     $(use_with jpeg) \
143     $(use_with ldap) \
144     $(use_with mp3 mpg123) \
145     $(use_with nas) \
146     $(use_with openal) \
147     $(use_with opengl) \
148     $(use_with ssl openssl) \
149     $(use_with oss) \
150     $(use_with png) \
151     $(use_with threads pthread) \
152     $(use pulseaudio && use_with pulseaudio pulse) \
153     $(use_with scanner sane) \
154     $(use_enable test tests) \
155     $(use_with truetype freetype) \
156 vapier 1.9 $(use_with v4l) \
157 vapier 1.1 $(use_enable win64) \
158     $(use_with X x) \
159     $(use_with xcomposite) \
160     $(use_with xinerama) \
161     $(use_with xml) \
162 tetromino 1.17 $(use_with xml xslt)
163 vapier 1.1
164 tetromino 1.17 emake -j1 depend
165 vapier 1.1 }
166    
167     src_install() {
168 tetromino 1.17 emake DESTDIR="${D}" install
169 vapier 1.1 dodoc ANNOUNCE AUTHORS README
170     if use gecko ; then
171     insinto /usr/share/wine/gecko
172 tetromino 1.17 doins "${DISTDIR}"/wine_gecko-${GV}.cab
173 vapier 1.1 fi
174     if ! use perl ; then
175     rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
176     fi
177     }
178    
179     pkg_postinst() {
180     paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
181     }

  ViewVC Help
Powered by ViewVC 1.1.20