diff options
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/elisp.eclass | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index c090175..0d3dfc7 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,3 +1,8 @@ +2011-11-22 Ulrich Mueller <ulm@gentoo.org> + + * elisp.eclass (ELISP_REMOVE): New variable. + (elisp_src_prepare): Remove files specified in ELISP_REMOVE. + 2011-10-17 Ulrich Mueller <ulm@gentoo.org> * elisp.eclass (elisp_src_prepare): Allow for user patches. diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 2cbd426..522ad0e 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -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: @@ -123,6 +128,10 @@ elisp_src_prepare() { # apply any user patches epatch_user + + if [[ -n ${ELISP_REMOVE} ]]; then + rm ${ELISP_REMOVE} || die + fi } # @FUNCTION: elisp_src_configure |