app-emacs/zenburn-theme - 2.10.0 (gentoo)

Search

Install

Install this version:

emerge -a =app-emacs/zenburn-theme-2.10.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-emacs/zenburn-theme-2.10.0

Or alternatively:

emerge --autounmask-write -a =app-emacs/zenburn-theme-2.10.0

Package Information

Description:
Zenburn color theme for Emacs
Homepage:
https://github.com/bbatsov/zenburn-emacs
License:
GPL-3+

Ebuild Details

Version EAPI Keywords Slot
2.10.0 9 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

MY_PN="${PN%-*}-emacs"

inherit elisp readme.gentoo-r1

DESCRIPTION="Zenburn color theme for Emacs"
HOMEPAGE="https://github.com/bbatsov/zenburn-emacs"

if [[ "${PV}" == *9999* ]] ; then
	inherit git-r3

	EGIT_REPO_URI="https://github.com/bbatsov/${MY_PN}"
else
	SRC_URI="https://github.com/bbatsov/${MY_PN}/archive/refs/tags/v${PV}.tar.gz
		-> ${MY_PN}-${PV}.gh.tar.gz"
	S="${WORKDIR}/${MY_PN}-${PV}"

	KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-3+"
SLOT="0"

SITEFILE="50${PN}-gentoo.el"

src_install() {
	insinto "${SITEETC}/${PN}"
	doins zenburn-theme.el

	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
	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)"
	readme.gentoo_create_doc
}

Inherited Eclasses

Manifest for 2.10.0

Type File Size Source URLs
DIST zenburn-emacs-2.10.0.gh.tar.gz 132174 bytes https://github.com/bbatsov/zenburn-emacs/archive/refs/tags/v2.10.0.tar.gz