diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-06-28 21:15:35 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-07-01 09:25:49 +0200 |
commit | 40f8970603e763c6d30488879d9603968d185cee (patch) | |
tree | 897042e547c452fdc4fcdc7ced136362e527739f /eclass | |
parent | elisp-common.eclass: New function elisp-make-site-file (diff) | |
download | gentoo-40f8970603e763c6d30488879d9603968d185cee.tar.gz gentoo-40f8970603e763c6d30488879d9603968d185cee.tar.bz2 gentoo-40f8970603e763c6d30488879d9603968d185cee.zip |
elisp.eclass: Update elisp_src_install
Call the new elisp-make-site-file function when no explicit site-init
file is found.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/elisp.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 1ac1a2dbfabf..72e623a12179 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -166,7 +166,11 @@ elisp_src_test() { elisp_src_install() { elisp-install ${PN} *.el *.elc if [[ -n ${SITEFILE} ]]; then - elisp-site-file-install "${FILESDIR}/${SITEFILE}" + if [[ -f "${FILESDIR}/${SITEFILE}" ]]; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + else + elisp-make-site-file "${SITEFILE}" + fi fi if [[ -n ${ELISP_TEXINFO} ]]; then set -- ${ELISP_TEXINFO} |