summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-06-28 21:15:35 +0200
committerUlrich Müller <ulm@gentoo.org>2023-07-01 09:25:49 +0200
commit40f8970603e763c6d30488879d9603968d185cee (patch)
tree897042e547c452fdc4fcdc7ced136362e527739f /eclass
parentelisp-common.eclass: New function elisp-make-site-file (diff)
downloadgentoo-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.eclass6
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}