summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-08-19 13:41:21 +0200
committerUlrich Müller <ulm@gentoo.org>2024-08-19 13:42:12 +0200
commit973e323e511dca084f8691ffa85d492daaf209fc (patch)
tree0b9ee928c49d4947ae3e7afd1a2c48f460cbaaf1 /app-emacs/zenburn-theme
parentsys-kernel/gentoo-sources: drop 6.10.5 (diff)
downloadgentoo-973e323e511dca084f8691ffa85d492daaf209fc.tar.gz
gentoo-973e323e511dca084f8691ffa85d492daaf209fc.tar.bz2
gentoo-973e323e511dca084f8691ffa85d492daaf209fc.zip
app-emacs/zenburn-theme: Add theme to custom-safe-themes
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs/zenburn-theme')
-rw-r--r--app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el1
-rw-r--r--app-emacs/zenburn-theme/zenburn-theme-2.7.0-r1.ebuild (renamed from app-emacs/zenburn-theme/zenburn-theme-2.7.0.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
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
}