commit: 973e323e511dca084f8691ffa85d492daaf209fc
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 19 11:41:21 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 19 11:42:12 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=973e323e
app-emacs/zenburn-theme: Add theme to custom-safe-themes
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el | 1 +
.../{zenburn-theme-2.7.0.ebuild => zenburn-theme-2.7.0-r1.ebuild} | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el
b/app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el
index 002aaf546293..0f3b6bf3b24a 100644
--- a/app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el
+++ b/app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el
@@ -1 +1,2 @@
(add-to-list 'custom-theme-load-path "@SITEETC@")
+(add-to-list 'custom-safe-themes "@SHA256@")
diff --git a/app-emacs/zenburn-theme/zenburn-theme-2.7.0.ebuild
b/app-emacs/zenburn-theme/zenburn-theme-2.7.0-r1.ebuild
similarity index 78%
rename from app-emacs/zenburn-theme/zenburn-theme-2.7.0.ebuild
rename to app-emacs/zenburn-theme/zenburn-theme-2.7.0-r1.ebuild
index 4b8491dc0111..c84c101ecdcc 100644
--- a/app-emacs/zenburn-theme/zenburn-theme-2.7.0.ebuild
+++ b/app-emacs/zenburn-theme/zenburn-theme-2.7.0-r1.ebuild
@@ -20,7 +20,11 @@ SITEFILE="50${PN}-gentoo.el"
src_install() {
insinto "${SITEETC}/${PN}"
doins zenburn-theme.el
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+
+ local sha256=$(sha256sum zenburn-theme.el) || die
+ sed "s:@SHA256@:${sha256%% *}:" "${FILESDIR}/${SITEFILE}" \
+ > "${T}/${SITEFILE}" || die
+ elisp-site-file-install "${T}/${SITEFILE}"
dodoc CHANGELOG.md CONTRIBUTING.md README.md
dodoc -r screenshots
@@ -28,6 +32,6 @@ src_install() {
local DOC_CONTENTS="To enable zenburn by default, initialise it
in your ~/.emacs:
- \n\t(load-theme 'zenburn 'no-confirm)"
+ \n\t(load-theme 'zenburn)"
readme.gentoo_create_doc
}