--- /usr/portage/app-emulation/wine/wine-1.7.21.ebuild 2014-06-29 02:42:47.000000000 +0200 +++ wine-1.7.27.ebuild 2014-09-23 22:09:57.217117581 +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.21.ebuild,v 1.1 2014/06/29 00:42:47 tetromino Exp $ +# $Header: $ EAPI="5" @@ -24,8 +24,8 @@ GV="2.24" MV="4.5.2" -PULSE_PATCHES="winepulse-patches-1.7.21" -COMPHOLIOV="1.7.21" +PULSE_PATCHES="winepulse-patches-1.7.24" +COMPHOLIOV="${PV}" COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}" WINE_GENTOO="wine-gentoo-2013.06.24" DESCRIPTION="Free implementation of Windows(tm) on Unix" @@ -37,7 +37,10 @@ ) mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi ) 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? ( + http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 + https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz + ) http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2" LICENSE="LGPL-2.1" @@ -296,13 +299,8 @@ fi use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2" - if use pipelight; then - unpack "${COMPHOLIO_PATCHES}.tar.gz" - # we use a separate pulseaudio patchset - rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die - # ... and need special tools for binary patches - mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die - fi + use pipelight || use pulseaudio && unpack "${COMPHOLIO_PATCHES}.tar.gz" + unpack "${WINE_GENTOO}.tar.bz2" l10n_find_plocales_changes "${S}/po" "" ".po" @@ -317,9 +315,6 @@ "${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386 "${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508 ) - use pulseaudio && PATCHES+=( - "../${PULSE_PATCHES}"/*.patch #421365 - ) if use gstreamer; then # See http://bugs.winehq.org/show_bug.cgi?id=30557 ewarn "Applying experimental patch to fix GStreamer support. Note that" @@ -331,18 +326,19 @@ 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" - ) - # epatch doesn't support binary patches - ebegin "Applying Compholio font patches" - for f in "${T}/10-Missing_Fonts"/*.patch; do - "../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches" - done - eend + # First of all, don't run autoreconf and tools/make_requests twice + sed -i 's/.*cat.*sort.*patchlist.*APPLY.*/&\n\n.PHONY: postinstall\npostinstall:/' \ + "../wine-compholio-${COMPHOLIOV}"/patches/Makefile || die + # Use Makefile instead of manually applying patches + # ...exclude pulseaudio patchset, we apply it conditionally + make -C "../wine-compholio-${COMPHOLIOV}"/patches DESTDIR=$(pwd) \ + install -W winepulse-PulseAudio_Support.ok fi + # See bug #518792: use pulseaudio patches as provided by compholio upstream + use pulseaudio && PATCHES+=( + "../wine-compholio-${COMPHOLIOV}"/patches/winepulse-PulseAudio_Support/*.patch + "../${PULSE_PATCHES}"/*.patch #421365 + ) autotools-utils_src_prepare if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then @@ -392,6 +388,7 @@ $(use_with opengl) $(use_with osmesa) $(use_with oss) + --without-pcap $(use_with png) $(use_with threads pthread) $(use_with scanner sane)