app-emacs/zenburn-theme: Add theme to custom-safe-themes

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2024-08-19 13:42:12 +02:00
parent 8b33158404
commit 973e323e51
2 changed files with 7 additions and 2 deletions
@@ -1 +1,2 @@
(add-to-list 'custom-theme-load-path "@SITEETC@")
(add-to-list 'custom-safe-themes "@SHA256@")
@@ -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
}