diff options
author | Ulrich Müller <ulm@gentoo.org> | 2011-12-03 08:54:46 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2011-12-03 08:54:46 +0000 |
commit | 1456d7e968b0aa09decd1fbf94cd11076baa03d5 (patch) | |
tree | f83698fa8f5f305aa52d961da08a888208c65265 /eclass/elisp.eclass | |
parent | New snapshot, bug 392299. Updated HOMEPAGE. (diff) | |
download | gentoo-2-1456d7e968b0aa09decd1fbf94cd11076baa03d5.tar.gz gentoo-2-1456d7e968b0aa09decd1fbf94cd11076baa03d5.tar.bz2 gentoo-2-1456d7e968b0aa09decd1fbf94cd11076baa03d5.zip |
Sync eclasses from Emacs overlay (revision 1752).
elisp.eclass: Allow for user patches. New variable ELISP_REMOVE.
elisp-common.eclass: Replace echo by einfo for proper logging.
Diffstat (limited to 'eclass/elisp.eclass')
-rw-r--r-- | eclass/elisp.eclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 0a3953664436..66c311052e61 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.53 2011/10/21 19:16:16 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.54 2011/12/03 08:54:46 ulm Exp $ # # @ECLASS: elisp.eclass # @MAINTAINER: @@ -40,6 +40,11 @@ # Patch files are searched for in the current working dir, WORKDIR, and # FILESDIR. +# @ECLASS-VARIABLE: ELISP_REMOVE +# @DEFAULT_UNSET +# @DESCRIPTION: +# Space separated list of files to remove after unpacking the sources. + # @ECLASS-VARIABLE: SITEFILE # @DEFAULT_UNSET # @DESCRIPTION: @@ -120,6 +125,13 @@ elisp_src_prepare() { die "Cannot find ${patch}" fi done + + # apply any user patches + epatch_user + + if [[ -n ${ELISP_REMOVE} ]]; then + rm ${ELISP_REMOVE} || die + fi } # @FUNCTION: elisp_src_configure |