app-emacs/dashboard: new package; add version 1.8.0_pre20220406

2022.04.06 snapshot

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2022-04-07 22:52:32 +02:00
parent 02fce466a5
commit e3c2c5b1fa
5 changed files with 68 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST dashboard-1.8.0_pre20220406.tar.gz 191442 BLAKE2B 8b105d8ed9b31e7439cc55b85c9e0bb46739fcb26f9e1e605492a552cbcfe9799794be6239b6c622bfbfc2f850d20f2944f759010eb502bcb75edb570ae7e5b8 SHA512 b3b714bbee034fecbf1172dccd5eebc38373c11a510c532a7b9ba31cac79daafe7e9ccf7c5e622abbdb44817c966f100ec4f7a447e8b0370f9d7e66ff55e45ca
@@ -0,0 +1,38 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
H=69f98f5a89451c0881d0abb34ad57dd71616006a
NEED_EMACS=26.1
inherit elisp
DESCRIPTION="Extensible Emacs dashboard, with sections for bookmarks, projects, agenda and more"
HOMEPAGE="https://github.com/emacs-dashboard/emacs-dashboard/"
SRC_URI="https://github.com/emacs-dashboard/emacs-${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/emacs-${PN}-${H}
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="test" # tests not in the repository, require "Eask"
DOCS=( CHANGELOG.md README.org etc )
PATCHES=( "${FILESDIR}"/${PN}-dashboard-widgets.el-banners.patch )
ELISP_REMOVE=( .dir-locals.el )
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
elisp_src_prepare
sed "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" -i dashboard-widgets.el || die
}
src_install() {
elisp_src_install
insinto "${SITEETC}"/${PN}
doins -r banners
}
@@ -0,0 +1,3 @@
(add-to-list 'load-path "@SITELISP@")
(autoload 'dashboard-setup-startup-hook "dashboard"
"Setup post initialization hooks." t)
@@ -0,0 +1,12 @@
index 494ea0d..1ae6ebb 100644
--- a/dashboard-widgets.el
+++ b/dashboard-widgets.el
@@ -136,7 +136,7 @@ preserved."
:group 'dashboard)
(defconst dashboard-banners-directory
- (concat (file-name-directory (locate-library "dashboard")) "banners/")
+ "@SITEETC@/banners/"
"Default banner directory.")
(defconst dashboard-banner-official-png
+14
View File
@@ -0,0 +1,14 @@
<?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>
<upstream>
<changelog>https://raw.githubusercontent.com/emacs-dashboard/emacs-dashboard/master/CHANGELOG.md</changelog>
<bugs-to>https://github.com/emacs-dashboard/emacs-dashboard/issues/</bugs-to>
<remote-id type="github">emacs-dashboard/emacs-dashboard</remote-id>
</upstream>
</pkgmetadata>