elisp.eclass: Allow for user patches. New variable ELISP_REMOVE.
elisp-common.eclass: Replace echo by einfo for proper logging.
# ChangeLog for eclass directory
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.31 2011/12/02 10:22:41 ferringb Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.32 2011/12/03 08:54:46 ulm Exp $
+
+ 03 Dec 2011; Ulrich Mueller <ulm@gentoo.org> elisp.eclass,
+ elisp-common.eclass:
+ 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.
02 Dec 2011; Brian Harring <ferringb@gentoo.org> eutils.eclass:
Fix eqawarn to match portage's return code; this fixes sporadic failures
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.76 2011/10/09 09:10:41 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.77 2011/12/03 08:54:46 ulm Exp $
#
# @ECLASS: elisp-common.eclass
# @MAINTAINER:
return 1
fi
- einfon "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE}) ..."
+ einfo "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE}) ..."
# Until January 2009, elisp-common.eclass sometimes created an
# auxiliary file for backwards compatibility. Remove any such file.
# was actually no change.
# A case is a remerge where we have doubled output.
rm -f "${T}"/site-gentoo.el
- echo " no changes."
+ einfo "... no changes."
else
mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el
- echo
case ${#sflist[@]} in
0) ewarn "... Huh? No site initialisation files found." ;;
1) einfo "... ${#sflist[@]} site initialisation file included." ;;
# 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:
# 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:
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