commit:     5acbe1fd2c8aa7de0b0d06fcfdad98240deab4a6
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  2 15:17:03 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Sep  2 15:17:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=5acbe1fd

elisp-common.eclass: Sync from Gentoo repository

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/elisp-common.eclass | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index bab7250..ad9d3c7 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: elisp-common.eclass
@@ -322,7 +322,7 @@ elisp-make-autoload-file() {
        ebegin "Generating autoload file for GNU Emacs"
 
        cat >"${f}" <<-EOF
-       ;;; ${f##*/} --- autoloads for ${PN}
+       ;;; ${f##*/} --- autoloads for ${PN}  -*-lexical-binding:t-*-
 
        ;;; Commentary:
        ;; Automatically generated by elisp-common.eclass
@@ -333,7 +333,6 @@ elisp-make-autoload-file() {
        ;; Local ${null}Variables:
        ;; version-control: never
        ;; no-byte-compile: t
-       ;; no-native-compile: t
        ;; no-update-autoloads: t
        ;; End:
 
@@ -687,7 +686,7 @@ elisp-make-site-file() {
 # directory.
 
 elisp-site-regen() {
-       local sitelisp=${ROOT%/}${EPREFIX}${SITELISP}
+       local sitelisp=${EROOT}${SITELISP}
        local sf i ret=0 null="" page=$'\f'
        local -a sflist
 
@@ -699,9 +698,6 @@ elisp-site-regen() {
        [[ -d ${sitelisp} ]] \
                || die "elisp-site-regen: Directory ${sitelisp} does not exist"
 
-       [[ -d ${T} ]] \
-               || die "elisp-site-regen: Temporary directory ${T} does not 
exist"
-
        ebegin "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE})"
 
        for sf in "${sitelisp}"/site-gentoo.d/[0-9][0-9]*.el; do
@@ -709,7 +705,7 @@ elisp-site-regen() {
        done
 
        cat <<-EOF >"${T}"/site-gentoo.el || ret=$?
-       ;;; site-gentoo.el --- site initialisation for Gentoo-installed packages
+       ;;; site-gentoo.el --- Gentoo site initialisation  
-*-lexical-binding:t-*-
 
        ;;; Commentary:
        ;; Automatically generated by elisp-common.eclass
@@ -726,7 +722,6 @@ elisp-site-regen() {
 
        ;; Local ${null}Variables:
        ;; no-byte-compile: t
-       ;; no-native-compile: t
        ;; buffer-read-only: t
        ;; End:
 

Reply via email to