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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (hide annotations) (download)
Sun Jun 10 03:24:21 2012 UTC (2 years ago) by tetromino
Branch: MAIN
Changes since 1.21: +3 -3 lines
Bump, see http://www.winehq.org/announce/1.5.6 for the announcement. Optionally enable Wine's binary Mono add-on for .NET support. Update Gecko add-on source URIs.

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

1 tetromino 1.18 # 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.3.9.ebuild,v 1.21 2012/05/12 21:12:51 tetromino Exp $
4 vapier 1.1
5 tetromino 1.18 EAPI="4"
6 vapier 1.1
7     inherit eutils flag-o-matic multilib
8    
9     if [[ ${PV} == "9999" ]] ; then
10     EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
11 vapier 1.16 inherit git-2
12 vapier 1.1 SRC_URI=""
13     #KEYWORDS=""
14     else
15     MY_P="${PN}-${PV/_/-}"
16 tetromino 1.21 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
17 vapier 1.1 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
18     S=${WORKDIR}/${MY_P}
19     fi
20    
21     GV="1.1.0"
22     DESCRIPTION="free implementation of Windows(tm) on Unix"
23     HOMEPAGE="http://www.winehq.org/"
24     SRC_URI="${SRC_URI}
25     gecko? (
26 tetromino 1.22 mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.cab
27     win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.cab )
28 vapier 1.16 )"
29 vapier 1.1
30     LICENSE="LGPL-2.1"
31     SLOT="0"
32 tetromino 1.18 IUSE="alsa capi cups custom-cflags dbus elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jack jpeg lcms ldap mp3 nas ncurses openal opencl +opengl +oss +perl png samba scanner ssl test +threads +truetype v4l +win32 +win64 +X xcomposite xinerama xml"
33     REQUIRED_USE="elibc_glibc? ( threads )" #286560
34 vapier 1.1 RESTRICT="test" #72375
35    
36     MLIB_DEPS="amd64? (
37     truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
38     X? (
39     >=app-emulation/emul-linux-x86-xlibs-2.1
40 vapier 1.16 >=app-emulation/emul-linux-x86-soundlibs-2.1
41 vapier 1.1 )
42 vapier 1.14 mp3? ( app-emulation/emul-linux-x86-soundlibs )
43 vapier 1.1 openal? ( app-emulation/emul-linux-x86-sdl )
44     opengl? ( app-emulation/emul-linux-x86-opengl )
45 vapier 1.14 scanner? ( app-emulation/emul-linux-x86-medialibs )
46 vapier 1.10 v4l? ( app-emulation/emul-linux-x86-medialibs )
47 vapier 1.1 app-emulation/emul-linux-x86-baselibs
48     >=sys-kernel/linux-headers-2.6
49     )"
50     RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
51     perl? ( dev-lang/perl dev-perl/XML-Simple )
52     capi? ( net-dialup/capi4k-utils )
53     ncurses? ( >=sys-libs/ncurses-5.2 )
54     fontconfig? ( media-libs/fontconfig )
55     gphoto2? ( media-libs/libgphoto2 )
56     jack? ( media-sound/jack-audio-connection-kit )
57     openal? ( media-libs/openal )
58     dbus? ( sys-apps/dbus )
59     gnutls? ( net-libs/gnutls )
60     gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
61     X? (
62     x11-libs/libXcursor
63     x11-libs/libXrandr
64     x11-libs/libXi
65     x11-libs/libXmu
66     x11-libs/libXxf86vm
67     x11-apps/xmessage
68     )
69     xinerama? ( x11-libs/libXinerama )
70     alsa? ( media-libs/alsa-lib )
71     nas? ( media-libs/nas )
72     cups? ( net-print/cups )
73 vapier 1.17 opencl? ( virtual/opencl )
74 vapier 1.1 opengl? ( virtual/opengl )
75     gsm? ( media-sound/gsm )
76     jpeg? ( virtual/jpeg )
77     ldap? ( net-nds/openldap )
78     lcms? ( =media-libs/lcms-1* )
79     mp3? ( >=media-sound/mpg123-1.5.0 )
80     samba? ( >=net-fs/samba-3.0.25 )
81     xml? ( dev-libs/libxml2 dev-libs/libxslt )
82     scanner? ( media-gfx/sane-backends )
83     ssl? ( dev-libs/openssl )
84     png? ( media-libs/libpng )
85 vapier 1.4 v4l? ( media-libs/libv4l )
86 vapier 1.1 !win64? ( ${MLIB_DEPS} )
87     win32? ( ${MLIB_DEPS} )
88 vapier 1.11 xcomposite? ( x11-libs/libXcomposite )"
89 vapier 1.1 DEPEND="${RDEPEND}
90     X? (
91     x11-proto/inputproto
92     x11-proto/xextproto
93     x11-proto/xf86vidmodeproto
94     )
95     xinerama? ( x11-proto/xineramaproto )
96 vapier 1.13 !hardened? ( sys-devel/prelink )
97 jdhore 1.20 virtual/pkgconfig
98 vapier 1.12 virtual/yacc
99 vapier 1.1 sys-devel/flex"
100    
101     src_unpack() {
102     if use win64 ; then
103     [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
104     && die "you need gcc-4.4+ to build 64bit wine"
105     fi
106    
107     if [[ ${PV} == "9999" ]] ; then
108 vapier 1.6 git-2_src_unpack
109 vapier 1.1 else
110     unpack ${MY_P}.tar.bz2
111     fi
112     }
113    
114     src_prepare() {
115     epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
116     epatch_user #282735
117     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
118     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
119     }
120    
121     do_configure() {
122     local builddir="${WORKDIR}/wine$1"
123     mkdir -p "${builddir}"
124     pushd "${builddir}" >/dev/null
125    
126     ECONF_SOURCE=${S} \
127     econf \
128     --sysconfdir=/etc/wine \
129     $(use_with alsa) \
130     $(use_with capi) \
131     $(use_with lcms cms) \
132     $(use_with cups) \
133     $(use_with ncurses curses) \
134 tetromino 1.18 --without-esd \
135 vapier 1.1 $(use_with fontconfig) \
136     $(use_with gnutls) \
137     $(use_with gphoto2 gphoto) \
138     $(use_with gsm) \
139     $(use_with gstreamer) \
140 ssuominen 1.15 --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 vapier 1.5 $(use_with opencl) \
148 vapier 1.1 $(use_with opengl) \
149     $(use_with ssl openssl) \
150     $(use_with oss) \
151     $(use_with png) \
152     $(use_with threads pthread) \
153     $(use_with scanner sane) \
154     $(use_enable test tests) \
155     $(use_with truetype freetype) \
156 vapier 1.4 $(use_with v4l) \
157 vapier 1.1 $(use_with X x) \
158     $(use_with xcomposite) \
159     $(use_with xinerama) \
160     $(use_with xml) \
161     $(use_with xml xslt) \
162     $2
163    
164 tetromino 1.18 emake -j1 depend
165 vapier 1.1
166     popd >/dev/null
167     }
168     src_configure() {
169     export LDCONFIG=/bin/true
170     use custom-cflags || strip-flags
171    
172     if use win64 ; then
173     do_configure 64 --enable-win64
174     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
175     else
176     ABI=x86 do_configure 32 --disable-win64
177     fi
178     }
179    
180     src_compile() {
181     local b
182     for b in 64 32 ; do
183     local builddir="${WORKDIR}/wine${b}"
184     [[ -d ${builddir} ]] || continue
185 tetromino 1.18 emake -C "${builddir}" all
186 vapier 1.1 done
187     }
188    
189     src_install() {
190     local b
191     for b in 64 32 ; do
192     local builddir="${WORKDIR}/wine${b}"
193     [[ -d ${builddir} ]] || continue
194 tetromino 1.18 emake -C "${builddir}" install DESTDIR="${D}"
195 vapier 1.1 done
196     dodoc ANNOUNCE AUTHORS README
197     if use gecko ; then
198     insinto /usr/share/wine/gecko
199 tetromino 1.18 doins "${DISTDIR}"/wine_gecko-${GV}-x86.cab
200     use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.cab
201 vapier 1.1 fi
202     if ! use perl ; then
203     rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
204     fi
205     }
206    
207     pkg_postinst() {
208     paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
209     }

  ViewVC Help
Powered by ViewVC 1.1.20