--- wine-1.7.20.ebuild 2014-06-18 21:31:05.000000000 +0200 +++ wine-1.7.20-r1.ebuild 2014-10-05 00:11:08.010108193 +0200 @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.20.ebuild,v 1.2 2014/06/18 19:08:47 mgorny Exp $ +# $Header: $ EAPI="5" @@ -24,9 +24,11 @@ GV="2.24" MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.20" -COMPHOLIOV="1.7.20" +PULSE_PATCHES="winepulse-patches-1.7.20-r1" +COMPHOLIOV="${PV}" COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" +GSTREAMERV="1.7.12" +GSTREAMER_PATCHES="wine-gstreamer-patches-${GSTREAMERV}" WINE_GENTOO="wine-gentoo-2013.06.24" DESCRIPTION="Free implementation of Windows(tm) on Unix" HOMEPAGE="http://www.winehq.org/" @@ -36,8 +38,9 @@ abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi ) ) mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) + gstreamer? ( https://googledrive.com/host/0BwvWj1tAgHFpcmMwY1hsbUo3Nk0 -> ${GSTREAMER_PATCHES}.tar.xz ) pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz ) - pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 ) + pulseaudio? ( https://googledrive.com/host/0BwvWj1tAgHFpd2w5bUNud3BlWVk -> ${PULSE_PATCHES}.tar.bz2 ) http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" LICENSE="LGPL-2.1" @@ -46,10 +49,8 @@ REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) test? ( abi_x86_32 ) elibc_glibc? ( threads ) - gstreamer? ( pulseaudio ) mono? ( abi_x86_32 ) osmesa? ( opengl )" #286560 -# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557 # FIXME: the test suite is unsuitable for us; many tests require net access # or fail due to Xvfb's opengl limitations. @@ -295,6 +296,7 @@ unpack ${MY_P}.tar.bz2 fi + use gstreamer && unpack "${GSTREAMER_PATCHES}.tar.xz" use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" if use pipelight; then unpack "${COMPHOLIO_PATCHES}.tar.gz" @@ -317,10 +319,21 @@ "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 ) + if use gstreamer; then + # See http://bugs.winehq.org/show_bug.cgi?id=30557 + ewarn "Applying experimental patch to fix GStreamer support. Note that" + ewarn "this patch has been reported to cause crashes in certain games." + + PATCHES+=( "../${GSTREAMER_PATCHES}"/*.patch ) + fi use pulseaudio && PATCHES+=( "../${PULSE_PATCHES}"/*.patch #421365 ) if use pipelight; then + ewarn "Applying the unofficial Compholio patchset for Pipelight support," + ewarn "which is unsupported by Wine developers. Please don't report bugs" + ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight" + PATCHES+=( "../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950 "../${COMPHOLIO_PATCHES}/patches/patch-list.patch" @@ -479,12 +492,6 @@ pkg_postinst() { gnome2_icon_cache_update fdo-mime_desktop_database_update - - if use pipelight; then - ewarn "You installed Wine with the unofficial Compholio patchset for Pipelight" - ewarn "support, which is unsupported by Wine developers. Please don't report" - ewarn "bugs to Wine bugzilla unless you can reproduce them with USE=-pipelight" - fi } pkg_postrm() {