From a31420dc4e190b09cb99b50833f8f151950562a9 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Sat, 30 Jan 2010 22:56:57 +0000 Subject: Look for patch in WORKDIR too. svn path=/emacs-overlay/; revision=1500 --- eclass/ChangeLog | 6 +++++- eclass/elisp.eclass | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'eclass') diff --git a/eclass/ChangeLog b/eclass/ChangeLog index c68ad3f..c199ed4 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,3 +1,7 @@ +2010-01-30 Ulrich Mueller + + * elisp.eclass (elisp_src_prepare): Look for patch in WORKDIR too. + 2009-11-25 Ulrich Mueller * elisp-common.eclass: Prepare for Prefix support. @@ -651,5 +655,5 @@ * elisp.eclass: Initial. -Copyright 2002-2009 Gentoo Foundation +Copyright 2002-2010 Gentoo Foundation Distributed under the terms of the GNU General Public License v2 diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index c551304..3843644 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -1,11 +1,11 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # # Copyright 2002-2003 Matthew Kennedy # Copyright 2003 Jeremy Maitin-Shepard # Copyright 2007-2009 Christian Faulhammer -# Copyright 2007-2009 Ulrich Müller +# Copyright 2007-2010 Ulrich Müller # # @ECLASS: elisp.eclass # @MAINTAINER: @@ -98,6 +98,8 @@ elisp_src_prepare() { for patch in ${ELISP_PATCHES}; do if [ -f "${patch}" ]; then epatch "${patch}" + elif [ -f "${WORKDIR}/${patch}" ]; then + epatch "${WORKDIR}/${patch}" elif [ -f "${FILESDIR}/${patch}" ]; then epatch "${FILESDIR}/${patch}" else -- cgit v1.2.3-65-gdbad