summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-04 04:35:16 +0000
committerMike Frysinger <vapier@gentoo.org>2011-04-04 04:35:16 +0000
commitd9bdde8d31d6e22d8a166b7c4d0bd0290cbbab1a (patch)
treeb1329d12a24434d249d21d612cec1a2b9d2a0a7c /app-emulation
parentInstall icon files now that we have them (bug #344399). (diff)
downloadhistorical-d9bdde8d31d6e22d8a166b7c4d0bd0290cbbab1a.tar.gz
historical-d9bdde8d31d6e22d8a166b7c4d0bd0290cbbab1a.tar.bz2
historical-d9bdde8d31d6e22d8a166b7c4d0bd0290cbbab1a.zip
Version bump #361741 by Jesse Adelman.
Package-Manager: portage-2.2.0_alpha28/cvs/Linux x86_64
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/wine/ChangeLog9
-rw-r--r--app-emulation/wine/Manifest16
-rw-r--r--app-emulation/wine/wine-1.3.16.ebuild215
-rw-r--r--app-emulation/wine/wine-1.3.17.ebuild215
4 files changed, 453 insertions, 2 deletions
diff --git a/app-emulation/wine/ChangeLog b/app-emulation/wine/ChangeLog
index d87811f1553f..bcf98008ea09 100644
--- a/app-emulation/wine/ChangeLog
+++ b/app-emulation/wine/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-emulation/wine
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.355 2011/03/27 17:34:34 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/ChangeLog,v 1.356 2011/04/04 04:35:16 vapier Exp $
+
+*wine-1.3.17 (04 Apr 2011)
+*wine-1.3.16 (04 Apr 2011)
+
+ 04 Apr 2011; Mike Frysinger <vapier@gentoo.org> +wine-1.3.16.ebuild,
+ +wine-1.3.17.ebuild:
+ Version bump #361741 by Jesse Adelman.
27 Mar 2011; Samuli Suominen <ssuominen@gentoo.org> metadata.xml:
Move USE="hal" description here from use.desc.
diff --git a/app-emulation/wine/Manifest b/app-emulation/wine/Manifest
index 0954d08f7daa..fce3dd35236f 100644
--- a/app-emulation/wine/Manifest
+++ b/app-emulation/wine/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX wine-1.1.15-configure-host.patch 314 RMD160 1c8d09d5265a23b1931eba949a614eaeff251ac7 SHA1 af887b963cf154e8bcf1e9b8b19731bbdda5f487 SHA256 c281217f6e221a6235485918750907b02aa1e40fa68e45133cc4c14ebb40bfe9
AUX wine-1.1.15-winegcc.patch 1556 RMD160 ca7e0df0a45507e7d31ed81c5712111b83ed9bfa SHA1 4b155fe7cb5e831b7f92757d52aa1ab12569b232 SHA256 dbd89db561d7583faf317d795b8c11231575d885e21c6414add39079604dbd0d
AUX wine-1.3.14-mouse-warp.patch 20111 RMD160 43098f5ec5b597d6186fc7dad6e783c512b037b2 SHA1 ecb919b56503e522c32268b0bce1ec4dcb966c88 SHA256 08d84e68f4358709b943baa09b99b72ea80b4dbbe89e55c2fbe9d874da032b42
@@ -14,6 +17,8 @@ DIST wine-1.3.12.tar.bz2 18689003 RMD160 7d80c53d69ee31428215890c6cfb41ab4830cce
DIST wine-1.3.13.tar.bz2 18957029 RMD160 f77310c0d8d8fe93e3886df3feb2cca8b571ae12 SHA1 f7e7aa2dbefc0f3fd48703f8640d13bcdb7312e4 SHA256 2cb3ae4e6129fd52d34a914c8077652e3b737823d7ce25e99dab7a7d2e0ae831
DIST wine-1.3.14.tar.bz2 18970017 RMD160 5ba6408b9eff67fb4dfbc3e050857b21ba7346b9 SHA1 58456606b6932044de0b8884417e68f089bd46a6 SHA256 1597ca202972cf3e981329fe2c0e9986b4948cf24a3f5e7d17bd0fe1d6802d69
DIST wine-1.3.15.tar.bz2 19043638 RMD160 9377a99a9921b3d37e37491b24ac3815f6dc728d SHA1 c0b6137671fc2413ad72c3aa9eb3046a871f7889 SHA256 da8cab485008af89ae85b536846b41423bc4ab2c38533b24dd754ea1f0812854
+DIST wine-1.3.16.tar.bz2 19129120 RMD160 6d9ea3acbdda450239d8263eaa87bdf87524a372 SHA1 66c39e2a465a99cbe70fa7bfd5f370bcd9dc5f3c SHA256 37a0bf1825081a72b480ef8f4600f512f51546b1d0309f90083b7bd4bfeb6735
+DIST wine-1.3.17.tar.bz2 19081222 RMD160 a82d799fa94b721a0edbefc3166620d91045752c SHA1 bdad018e266ed3ae8c17c186e435bb775edcc6bf SHA256 44d694e0808961641c214d91b8a03703d07c2f090b3b77b5cc776b30cf57cc24
DIST wine-1.3.2.tar.bz2 17906953 RMD160 dfb03ab39e9b01a182c2751be955ae56bdb852e7 SHA1 876043a93aa834f926a26235b34e72364bc9876e SHA256 eacefbc88bd2b7d3c934239809ba1df8076f455823c3dfd54f9f5892385161c5
DIST wine-1.3.3.tar.bz2 18043631 RMD160 af7044275f62cd81f9491af0639c3868e163693f SHA1 b19455987f0a71adf691046898a1ca6b3ed7d155 SHA256 455b6ec2f881f54d89d3e6dd9d04318a9eeb3c40f8c66b53e5bf73fc4765fcce
DIST wine-1.3.4.tar.bz2 18079846 RMD160 ebbbf31aac547ee25ecf6c0171e29ae312c853d8 SHA1 7dbb1716cf83b61232f64bcc25e7e2d109321e49 SHA256 449387f5672cc535548740eef90403afd5d3cd678d3686bccf62813958825fdc
@@ -44,6 +49,8 @@ EBUILD wine-1.3.12.ebuild 5883 RMD160 679ffa51ace4886e547b522fbde7c57bacb68adf S
EBUILD wine-1.3.13.ebuild 5883 RMD160 dc2a173cb187dd7899fbf501a3a0e9ee9ea0a5bb SHA1 5bd81ebdd04eed978cea0b7b9b35c75d5dc593ce SHA256 3271ef375e0c9bb0dbf955559015f34e05d9e3ee467760c3a1e2813738347df3
EBUILD wine-1.3.14.ebuild 5962 RMD160 b95db4ca52dd812be07f02298b7e705d1e37cdfd SHA1 9db9cbc0d231495b4137154f8e228549a08763ad SHA256 143f0e25a40c3c4ecdb35329e22ae01ba4ee1113f7747fc2982b0f9dbcce5304
EBUILD wine-1.3.15.ebuild 5962 RMD160 ad697b272e1617d84ff75c928da1e4ab72c40171 SHA1 3cf814934f2199ec62366a3e6e39186ffa653f95 SHA256 00a8578f20acafca0255f493da7b16f4afd4912d0f7306ccf100aa8eab037ee2
+EBUILD wine-1.3.16.ebuild 5962 RMD160 6d0d668956552d7996a82d9b6072c791329268e5 SHA1 f69cbb13fc85ffae3b1fc571984204634b644e2e SHA256 2ec7616b60e1dc7b9fda27ffaf9933fbc72ce0be338cf7fb82844cb4dea8d01e
+EBUILD wine-1.3.17.ebuild 5962 RMD160 81058776fe3a6139fa2c4fe6784c8e3701b0d835 SHA1 543c87e6376635668717690af49cd1eddc446a3e SHA256 52cb7649b0ae46d956de2178312440374079c2b7058bef3095ef297611347600
EBUILD wine-1.3.2.ebuild 5715 RMD160 375a817e5e5bf8d385a1d2bc08faee1c780f49e0 SHA1 f93e5c72560d49139ea76b52ffc61641687538b9 SHA256 858aa83a689ec48745ee22dc95747f66892cb92f638a4cfc667dd17af761ee15
EBUILD wine-1.3.3.ebuild 5715 RMD160 0921d74c23c352a54c385d43e98f233d63e272a5 SHA1 f74c85a0662749a4fdbd2858ba607a477cb080d6 SHA256 7ed82390d2b1d9f18164e540793b820840cdc16945f52790556e4ae6fac4dc85
EBUILD wine-1.3.4.ebuild 5715 RMD160 e457e78d2b5262110bfdbda0ff824e15135e5cb8 SHA1 770e6dbd5fcf08f7e8a5acc96d5e2d6a4b071d10 SHA256 122916aecc0212f8a47c18059ba1baeafcc92b8213b3f69964e27ae32bda9b1b
@@ -53,5 +60,12 @@ EBUILD wine-1.3.7.ebuild 5816 RMD160 5e04a8e9fd4ce819cb64413f5ff9136e7d366ef0 SH
EBUILD wine-1.3.8.ebuild 5816 RMD160 851de949bbf7909b4f9bca9ce14dddbed1c0c5c6 SHA1 41a5f7be3535d2508ed607a3b55fae3920df0b7d SHA256 8f4e2c645ae692a820092ff047f3ca4cd9693298831314d8c44cd91a48b16a60
EBUILD wine-1.3.9.ebuild 5816 RMD160 9d6b3b04a575c7f7dc557097b3d88a69852595b1 SHA1 9a571c0bb42229c7d841c5029488e3ebc8b1a34d SHA256 3458ba56b4850be14b061bb880ac8cf897cdffea8c9786f3bbd1159a98478784
EBUILD wine-9999.ebuild 5961 RMD160 c2d27aea0e9222827d63c653a79bbabc8a9e4924 SHA1 7fa982b75d79c1564d401fcc3f54e13e273b506f SHA256 0c1e98b08d15cce604e6f3c9151c1b7de744b1b1e2feb2a5df57af20da2375f2
-MISC ChangeLog 68438 RMD160 8edd947028b0377140f0e7b520e5f99c95ced6b9 SHA1 335156f371c2267136cb63619feec1ad3164803e SHA256 a567ed94d8e1e10740ed064105eb9cd6b9e624124119b4d0f761ff058a95d433
+MISC ChangeLog 68626 RMD160 30c2b3aa9d761dbc31a797a1aaecf2e2eb37f15c SHA1 bdd8813b9831f319b3366b7bbee9adda039d796f SHA256 1fad41772e4c24b564663d5ed0e4f3ce929d04d9e87e36e52aa0d923e0d26b5d
MISC metadata.xml 1631 RMD160 cd71f09aba508f443a0cb7ee51e64771a7631cf5 SHA1 e959f456fa558bd8301388b5d405e2d703143877 SHA256 a626ea25bf251a0963d821d7e7a706e4dc3599d9821d4c15d91a7a71aed34586
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iF4EAREIAAYFAk2ZSoIACgkQaC/OocHi7JbJ6gD7B2Kbu2JGIxzMeELJJjT64nkS
+1Oz6TMkiUsGhLUiyaJAA/3FcLztt8+wzNmzxbsGOi9jwaLdyWBNAYBV2/Ull9/bL
+=sAGq
+-----END PGP SIGNATURE-----
diff --git a/app-emulation/wine/wine-1.3.16.ebuild b/app-emulation/wine/wine-1.3.16.ebuild
new file mode 100644
index 000000000000..0621b64a9d65
--- /dev/null
+++ b/app-emulation/wine/wine-1.3.16.ebuild
@@ -0,0 +1,215 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.3.16.ebuild,v 1.1 2011/04/04 04:35:16 vapier Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic multilib
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
+ inherit git autotools
+ SRC_URI=""
+ #KEYWORDS=""
+else
+ AUTOTOOLS_AUTO_DEPEND="no"
+ inherit autotools
+ MY_P="${PN}-${PV/_/-}"
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+ KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
+ S=${WORKDIR}/${MY_P}
+fi
+
+pulse_patches() { echo "$1"/winepulse-{0.39,configure.ac-1.3.10,winecfg-1.3.11}.patch ; }
+GV="1.1.0"
+DESCRIPTION="free implementation of Windows(tm) on Unix"
+HOMEPAGE="http://www.winehq.org/"
+SRC_URI="${SRC_URI}
+ gecko? (
+ mirror://sourceforge/wine/wine_gecko-${GV}-x86.cab
+ win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.cab )
+ )
+ pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="alsa capi cups custom-cflags dbus esd fontconfig +gecko gnutls gphoto2 gsm gstreamer hal jack jpeg lcms ldap mousewarp mp3 nas ncurses nls openal +opengl +oss +perl png pulseaudio samba scanner ssl test +threads +truetype +win32 +win64 +X xcomposite xinerama xml"
+RESTRICT="test" #72375
+
+MLIB_DEPS="amd64? (
+ truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
+ X? (
+ >=app-emulation/emul-linux-x86-xlibs-2.1
+ >=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio?]
+ )
+ openal? ( app-emulation/emul-linux-x86-sdl )
+ opengl? ( app-emulation/emul-linux-x86-opengl )
+ app-emulation/emul-linux-x86-baselibs
+ >=sys-kernel/linux-headers-2.6
+ )"
+RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
+ perl? ( dev-lang/perl dev-perl/XML-Simple )
+ capi? ( net-dialup/capi4k-utils )
+ ncurses? ( >=sys-libs/ncurses-5.2 )
+ fontconfig? ( media-libs/fontconfig )
+ gphoto2? ( media-libs/libgphoto2 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ openal? ( media-libs/openal )
+ dbus? ( sys-apps/dbus )
+ gnutls? ( net-libs/gnutls )
+ gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
+ hal? ( sys-apps/hal )
+ X? (
+ x11-libs/libXcursor
+ x11-libs/libXrandr
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXxf86vm
+ x11-apps/xmessage
+ )
+ xinerama? ( x11-libs/libXinerama )
+ alsa? ( media-libs/alsa-lib )
+ esd? ( media-sound/esound )
+ nas? ( media-libs/nas )
+ cups? ( net-print/cups )
+ opengl? ( virtual/opengl )
+ pulseaudio? ( media-sound/pulseaudio )
+ gsm? ( media-sound/gsm )
+ jpeg? ( virtual/jpeg )
+ ldap? ( net-nds/openldap )
+ lcms? ( =media-libs/lcms-1* )
+ mp3? ( >=media-sound/mpg123-1.5.0 )
+ nls? ( sys-devel/gettext )
+ samba? ( >=net-fs/samba-3.0.25 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )
+ scanner? ( media-gfx/sane-backends )
+ ssl? ( dev-libs/openssl )
+ png? ( media-libs/libpng )
+ !win64? ( ${MLIB_DEPS} )
+ win32? ( ${MLIB_DEPS} )
+ xcomposite? ( x11-libs/libXcomposite ) "
+DEPEND="${RDEPEND}
+ pulseaudio? ( ${AUTOTOOLS_DEPEND} )
+ X? (
+ x11-proto/inputproto
+ x11-proto/xextproto
+ x11-proto/xf86vidmodeproto
+ )
+ xinerama? ( x11-proto/xineramaproto )
+ sys-devel/bison
+ sys-devel/flex"
+
+src_unpack() {
+ if use win64 ; then
+ [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
+ && die "you need gcc-4.4+ to build 64bit wine"
+ fi
+
+ if [[ ${PV} == "9999" ]] ; then
+ git_src_unpack
+ else
+ unpack ${MY_P}.tar.bz2
+ fi
+}
+
+src_prepare() {
+ use mousewarp && epatch "${FILESDIR}"/${PN}-1.3.16-mouse-warp.patch
+ if use pulseaudio ; then
+ EPATCH_OPTS=-p1 epatch `pulse_patches "${DISTDIR}"`
+ eautoreconf
+ fi
+ epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
+ epatch_user #282735
+ sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
+ sed -i '/^MimeType/d' tools/wine.desktop || die #117785
+}
+
+do_configure() {
+ local builddir="${WORKDIR}/wine$1"
+ mkdir -p "${builddir}"
+ pushd "${builddir}" >/dev/null
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --sysconfdir=/etc/wine \
+ $(use_with alsa) \
+ $(use_with capi) \
+ $(use_with lcms cms) \
+ $(use_with cups) \
+ $(use_with ncurses curses) \
+ $(use_with esd) \
+ $(use_with fontconfig) \
+ $(use_with gnutls) \
+ $(use_with gphoto2 gphoto) \
+ $(use_with gsm) \
+ $(use_with gstreamer) \
+ $(! use dbus && echo --without-hal || use_with hal) \
+ $(use_with jack) \
+ $(use_with jpeg) \
+ $(use_with ldap) \
+ $(use_with mp3 mpg123) \
+ $(use_with nas) \
+ $(use_with nls gettextpo) \
+ $(use_with openal) \
+ $(use_with opengl) \
+ $(use_with ssl openssl) \
+ $(use_with oss) \
+ $(use_with png) \
+ $(use_with threads pthread) \
+ $(use pulseaudio && use_with pulseaudio pulse) \
+ $(use_with scanner sane) \
+ $(use_enable test tests) \
+ $(use_with truetype freetype) \
+ $(use_with X x) \
+ $(use_with xcomposite) \
+ $(use_with xinerama) \
+ $(use_with xml) \
+ $(use_with xml xslt) \
+ $2
+
+ emake -j1 depend || die "depend"
+
+ popd >/dev/null
+}
+src_configure() {
+ export LDCONFIG=/bin/true
+ use custom-cflags || strip-flags
+
+ if use win64 ; then
+ do_configure 64 --enable-win64
+ use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
+ else
+ ABI=x86 do_configure 32 --disable-win64
+ fi
+}
+
+src_compile() {
+ local b
+ for b in 64 32 ; do
+ local builddir="${WORKDIR}/wine${b}"
+ [[ -d ${builddir} ]] || continue
+ emake -C "${builddir}" all || die
+ done
+}
+
+src_install() {
+ local b
+ for b in 64 32 ; do
+ local builddir="${WORKDIR}/wine${b}"
+ [[ -d ${builddir} ]] || continue
+ emake -C "${builddir}" install DESTDIR="${D}" || die
+ done
+ dodoc ANNOUNCE AUTHORS README
+ if use gecko ; then
+ insinto /usr/share/wine/gecko
+ doins "${DISTDIR}"/wine_gecko-${GV}-x86.cab || die
+ use win64 && { doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.cab || die ; }
+ fi
+ if ! use perl ; then
+ rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
+ fi
+}
+
+pkg_postinst() {
+ paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
+}
diff --git a/app-emulation/wine/wine-1.3.17.ebuild b/app-emulation/wine/wine-1.3.17.ebuild
new file mode 100644
index 000000000000..cb23462a43c9
--- /dev/null
+++ b/app-emulation/wine/wine-1.3.17.ebuild
@@ -0,0 +1,215 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.3.17.ebuild,v 1.1 2011/04/04 04:35:16 vapier Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic multilib
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
+ inherit git autotools
+ SRC_URI=""
+ #KEYWORDS=""
+else
+ AUTOTOOLS_AUTO_DEPEND="no"
+ inherit autotools
+ MY_P="${PN}-${PV/_/-}"
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+ KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
+ S=${WORKDIR}/${MY_P}
+fi
+
+pulse_patches() { echo "$1"/winepulse-{0.39,configure.ac-1.3.10,winecfg-1.3.11}.patch ; }
+GV="1.1.0"
+DESCRIPTION="free implementation of Windows(tm) on Unix"
+HOMEPAGE="http://www.winehq.org/"
+SRC_URI="${SRC_URI}
+ gecko? (
+ mirror://sourceforge/wine/wine_gecko-${GV}-x86.cab
+ win64? ( mirror://sourceforge/wine/wine_gecko-${GV}-x86_64.cab )
+ )
+ pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="alsa capi cups custom-cflags dbus esd fontconfig +gecko gnutls gphoto2 gsm gstreamer hal jack jpeg lcms ldap mousewarp mp3 nas ncurses nls openal +opengl +oss +perl png pulseaudio samba scanner ssl test +threads +truetype +win32 +win64 +X xcomposite xinerama xml"
+RESTRICT="test" #72375
+
+MLIB_DEPS="amd64? (
+ truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
+ X? (
+ >=app-emulation/emul-linux-x86-xlibs-2.1
+ >=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio?]
+ )
+ openal? ( app-emulation/emul-linux-x86-sdl )
+ opengl? ( app-emulation/emul-linux-x86-opengl )
+ app-emulation/emul-linux-x86-baselibs
+ >=sys-kernel/linux-headers-2.6
+ )"
+RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
+ perl? ( dev-lang/perl dev-perl/XML-Simple )
+ capi? ( net-dialup/capi4k-utils )
+ ncurses? ( >=sys-libs/ncurses-5.2 )
+ fontconfig? ( media-libs/fontconfig )
+ gphoto2? ( media-libs/libgphoto2 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ openal? ( media-libs/openal )
+ dbus? ( sys-apps/dbus )
+ gnutls? ( net-libs/gnutls )
+ gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
+ hal? ( sys-apps/hal )
+ X? (
+ x11-libs/libXcursor
+ x11-libs/libXrandr
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXxf86vm
+ x11-apps/xmessage
+ )
+ xinerama? ( x11-libs/libXinerama )
+ alsa? ( media-libs/alsa-lib )
+ esd? ( media-sound/esound )
+ nas? ( media-libs/nas )
+ cups? ( net-print/cups )
+ opengl? ( virtual/opengl )
+ pulseaudio? ( media-sound/pulseaudio )
+ gsm? ( media-sound/gsm )
+ jpeg? ( virtual/jpeg )
+ ldap? ( net-nds/openldap )
+ lcms? ( =media-libs/lcms-1* )
+ mp3? ( >=media-sound/mpg123-1.5.0 )
+ nls? ( sys-devel/gettext )
+ samba? ( >=net-fs/samba-3.0.25 )
+ xml? ( dev-libs/libxml2 dev-libs/libxslt )
+ scanner? ( media-gfx/sane-backends )
+ ssl? ( dev-libs/openssl )
+ png? ( media-libs/libpng )
+ !win64? ( ${MLIB_DEPS} )
+ win32? ( ${MLIB_DEPS} )
+ xcomposite? ( x11-libs/libXcomposite ) "
+DEPEND="${RDEPEND}
+ pulseaudio? ( ${AUTOTOOLS_DEPEND} )
+ X? (
+ x11-proto/inputproto
+ x11-proto/xextproto
+ x11-proto/xf86vidmodeproto
+ )
+ xinerama? ( x11-proto/xineramaproto )
+ sys-devel/bison
+ sys-devel/flex"
+
+src_unpack() {
+ if use win64 ; then
+ [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
+ && die "you need gcc-4.4+ to build 64bit wine"
+ fi
+
+ if [[ ${PV} == "9999" ]] ; then
+ git_src_unpack
+ else
+ unpack ${MY_P}.tar.bz2
+ fi
+}
+
+src_prepare() {
+ use mousewarp && epatch "${FILESDIR}"/${PN}-1.3.16-mouse-warp.patch
+ if use pulseaudio ; then
+ EPATCH_OPTS=-p1 epatch `pulse_patches "${DISTDIR}"`
+ eautoreconf
+ fi
+ epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
+ epatch_user #282735
+ sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
+ sed -i '/^MimeType/d' tools/wine.desktop || die #117785
+}
+
+do_configure() {
+ local builddir="${WORKDIR}/wine$1"
+ mkdir -p "${builddir}"
+ pushd "${builddir}" >/dev/null
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --sysconfdir=/etc/wine \
+ $(use_with alsa) \
+ $(use_with capi) \
+ $(use_with lcms cms) \
+ $(use_with cups) \
+ $(use_with ncurses curses) \
+ $(use_with esd) \
+ $(use_with fontconfig) \
+ $(use_with gnutls) \
+ $(use_with gphoto2 gphoto) \
+ $(use_with gsm) \
+ $(use_with gstreamer) \
+ $(! use dbus && echo --without-hal || use_with hal) \
+ $(use_with jack) \
+ $(use_with jpeg) \
+ $(use_with ldap) \
+ $(use_with mp3 mpg123) \
+ $(use_with nas) \
+ $(use_with nls gettextpo) \
+ $(use_with openal) \
+ $(use_with opengl) \
+ $(use_with ssl openssl) \
+ $(use_with oss) \
+ $(use_with png) \
+ $(use_with threads pthread) \
+ $(use pulseaudio && use_with pulseaudio pulse) \
+ $(use_with scanner sane) \
+ $(use_enable test tests) \
+ $(use_with truetype freetype) \
+ $(use_with X x) \
+ $(use_with xcomposite) \
+ $(use_with xinerama) \
+ $(use_with xml) \
+ $(use_with xml xslt) \
+ $2
+
+ emake -j1 depend || die "depend"
+
+ popd >/dev/null
+}
+src_configure() {
+ export LDCONFIG=/bin/true
+ use custom-cflags || strip-flags
+
+ if use win64 ; then
+ do_configure 64 --enable-win64
+ use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
+ else
+ ABI=x86 do_configure 32 --disable-win64
+ fi
+}
+
+src_compile() {
+ local b
+ for b in 64 32 ; do
+ local builddir="${WORKDIR}/wine${b}"
+ [[ -d ${builddir} ]] || continue
+ emake -C "${builddir}" all || die
+ done
+}
+
+src_install() {
+ local b
+ for b in 64 32 ; do
+ local builddir="${WORKDIR}/wine${b}"
+ [[ -d ${builddir} ]] || continue
+ emake -C "${builddir}" install DESTDIR="${D}" || die
+ done
+ dodoc ANNOUNCE AUTHORS README
+ if use gecko ; then
+ insinto /usr/share/wine/gecko
+ doins "${DISTDIR}"/wine_gecko-${GV}-x86.cab || die
+ use win64 && { doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.cab || die ; }
+ fi
+ if ! use perl ; then
+ rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
+ fi
+}
+
+pkg_postinst() {
+ paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
+}