public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-emacs/zenburn-theme/files/, app-emacs/zenburn-theme/
@ 2024-08-19  9:31 Ulrich Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2024-08-19  9:31 UTC (permalink / raw
  To: gentoo-commits

commit:     86c97fae9b13dc0b18c0d6f8473216b802d10918
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 19 09:28:59 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Aug 19 09:29:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86c97fae

app-emacs/zenburn-theme: new package, add 2.7.0

Bug: https://bugs.gentoo.org/937910
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-emacs/zenburn-theme/Manifest                   |  1 +
 .../zenburn-theme/files/50zenburn-theme-gentoo.el  |  1 +
 app-emacs/zenburn-theme/metadata.xml               | 20 +++++++++++++
 app-emacs/zenburn-theme/zenburn-theme-2.7.0.ebuild | 33 ++++++++++++++++++++++
 4 files changed, 55 insertions(+)

diff --git a/app-emacs/zenburn-theme/Manifest b/app-emacs/zenburn-theme/Manifest
new file mode 100644
index 000000000000..2a38b0f0c4ef
--- /dev/null
+++ b/app-emacs/zenburn-theme/Manifest
@@ -0,0 +1 @@
+DIST zenburn-emacs-2.7.0.tar.gz 122812 BLAKE2B 2c5698de664dfbd1623f6f8358214cc4458323784e94cdd9c2d7ea47231466c984bf4b0399db4705be8acab53fb2ee1c30f7ae9f2b53f9a2bc825a9f19bb9a95 SHA512 4c125e19c2c223b7eb678be261d2e1240d9269c155ad5adc432e268c12b82c4610b09fd896c9d45361def8f132dcb45c0e46728f6ffb1f0181267b44fb5927e8

diff --git a/app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el b/app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el
new file mode 100644
index 000000000000..002aaf546293
--- /dev/null
+++ b/app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'custom-theme-load-path "@SITEETC@")

diff --git a/app-emacs/zenburn-theme/metadata.xml b/app-emacs/zenburn-theme/metadata.xml
new file mode 100644
index 000000000000..3e64e22fe991
--- /dev/null
+++ b/app-emacs/zenburn-theme/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+  <email>gnu-emacs@gentoo.org</email>
+  <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<longdescription>
+  Zenburn for Emacs is a direct port of the popular Zenburn theme
+  for vim, developed by Jani Nurminen. It's my personal belief (and that
+  of its many users I presume) that it's one of the best low contrast
+  color themes out there and that it is exceptionally easy on the eyes.
+  Zenburn is a low-contrast color theme. It's easy for your eyes and
+  designed to keep you in the zone for long programming sessions.
+</longdescription>
+<stabilize-allarches/>
+<upstream>
+  <remote-id type="github">bbatsov/zenburn-emacs</remote-id>
+</upstream>
+</pkgmetadata>

diff --git a/app-emacs/zenburn-theme/zenburn-theme-2.7.0.ebuild b/app-emacs/zenburn-theme/zenburn-theme-2.7.0.ebuild
new file mode 100644
index 000000000000..4b8491dc0111
--- /dev/null
+++ b/app-emacs/zenburn-theme/zenburn-theme-2.7.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp readme.gentoo-r1
+
+MY_PN="${PN%-*}-emacs"
+DESCRIPTION="Zenburn color theme for Emacs"
+HOMEPAGE="https://github.com/bbatsov/zenburn-emacs"
+SRC_URI="https://github.com/bbatsov/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_install() {
+	insinto "${SITEETC}/${PN}"
+	doins zenburn-theme.el
+	elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+
+	dodoc CHANGELOG.md CONTRIBUTING.md README.md
+	dodoc -r screenshots
+	docompress -x /usr/share/doc/${PF}/screenshots
+
+	local DOC_CONTENTS="To enable zenburn by default, initialise it
+		in your ~/.emacs:
+		\n\t(load-theme 'zenburn 'no-confirm)"
+	readme.gentoo_create_doc
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-emacs/zenburn-theme/files/, app-emacs/zenburn-theme/
@ 2024-08-19 11:42 Ulrich Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2024-08-19 11:42 UTC (permalink / raw
  To: gentoo-commits

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
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-19 11:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19  9:31 [gentoo-commits] repo/gentoo:master commit in: app-emacs/zenburn-theme/files/, app-emacs/zenburn-theme/ Ulrich Müller
  -- strict thread matches above, loose matches on Subject: below --
2024-08-19 11:42 Ulrich Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox