diff options
author | Ulrich Müller <ulm@gentoo.org> | 2011-11-21 19:11:30 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2011-11-21 19:11:30 +0000 |
commit | 24355838760c23ee8974ca19a7d5a2fe67810b49 (patch) | |
tree | 625e7f4f9a742e00cc53338b016421bafc49b7d6 /eclass/elisp.eclass | |
parent | Use a display table in the minibuffer, instead of recording of escape positio... (diff) | |
download | emacs-24355838760c23ee8974ca19a7d5a2fe67810b49.tar.gz emacs-24355838760c23ee8974ca19a7d5a2fe67810b49.tar.bz2 emacs-24355838760c23ee8974ca19a7d5a2fe67810b49.zip |
New variable ELISP_SOURCES, allows to specify a list of source files
that should be compiled and installed.
svn path=/emacs-overlay/; revision=1748
Diffstat (limited to 'eclass/elisp.eclass')
-rw-r--r-- | eclass/elisp.eclass | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 2cbd426..314512d 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -48,6 +48,14 @@ # reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice # in most cases. +# @ECLASS-VARIABLE: ELISP_SOURCES +# @DEFAULT_UNSET +# @DESCRIPTION: +# Space separated list of Emacs Lisp sources. These will be +# byte-compiled in src_compile() and installed in src_install(). +# Normally this variable needs not be set, in which case the default is +# to compile all *.el files and to install all *.el and *.elc files. + # @ECLASS-VARIABLE: ELISP_TEXINFO # @DEFAULT_UNSET # @DESCRIPTION: @@ -133,12 +141,13 @@ elisp_src_configure() { :; } # @FUNCTION: elisp_src_compile # @DESCRIPTION: -# Call elisp-compile to byte-compile all Emacs Lisp (*.el) files. +# Call elisp-compile to byte-compile all Emacs Lisp (*.el) files; +# if ELISP_SOURCES is set, then compile only the files listed there. # If ELISP_TEXINFO lists any Texinfo sources, call makeinfo to generate # GNU Info files from them. elisp_src_compile() { - elisp-compile *.el || die + elisp-compile ${ELISP_SOURCES:-*.el} || die if [[ -n ${ELISP_TEXINFO} ]]; then makeinfo ${ELISP_TEXINFO} || die fi @@ -146,13 +155,18 @@ elisp_src_compile() { # @FUNCTION: elisp_src_install # @DESCRIPTION: -# Call elisp-install to install all Emacs Lisp (*.el and *.elc) files. +# Call elisp-install to install all Emacs Lisp (*.el and *.elc) files; +# if ELISP_SOURCES is set, then install only the files listed there. # If the SITEFILE variable specifies a site-init file, install it with # elisp-site-file-install. Also install any GNU Info files listed in # ELISP_TEXINFO and documentation listed in the DOCS variable. elisp_src_install() { - elisp-install ${PN} *.el *.elc || die + set -- ${ELISP_SOURCES} + set -- $@ ${@/%.el/.elc} + [[ $# -eq 0 ]] && set -- *.el *.elc + elisp-install ${PN} $@ || die + if [[ -n ${SITEFILE} ]]; then elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die fi |