summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-07 22:50:08 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-07 22:52:32 +0200
commite3c2c5b1fa8d5b9c7af548fe672af9be83d178db (patch)
treeb78826eab45069bc2051fc61dcdd7d20cab26703 /app-emacs/dashboard
parentsys-fs/mac-fdisk: keyword 0.1_p18 for -riscv (diff)
downloadgentoo-e3c2c5b1fa8d5b9c7af548fe672af9be83d178db.tar.gz
gentoo-e3c2c5b1fa8d5b9c7af548fe672af9be83d178db.tar.bz2
gentoo-e3c2c5b1fa8d5b9c7af548fe672af9be83d178db.zip
app-emacs/dashboard: new package; add version 1.8.0_pre20220406
2022.04.06 snapshot Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/dashboard')
-rw-r--r--app-emacs/dashboard/Manifest1
-rw-r--r--app-emacs/dashboard/dashboard-1.8.0_pre20220406.ebuild38
-rw-r--r--app-emacs/dashboard/files/50dashboard-gentoo.el3
-rw-r--r--app-emacs/dashboard/files/dashboard-dashboard-widgets.el-banners.patch12
-rw-r--r--app-emacs/dashboard/metadata.xml14
5 files changed, 68 insertions, 0 deletions
diff --git a/app-emacs/dashboard/Manifest b/app-emacs/dashboard/Manifest
new file mode 100644
index 000000000000..20e1b7ef9544
--- /dev/null
+++ b/app-emacs/dashboard/Manifest
@@ -0,0 +1 @@
+DIST dashboard-1.8.0_pre20220406.tar.gz 191442 BLAKE2B 8b105d8ed9b31e7439cc55b85c9e0bb46739fcb26f9e1e605492a552cbcfe9799794be6239b6c622bfbfc2f850d20f2944f759010eb502bcb75edb570ae7e5b8 SHA512 b3b714bbee034fecbf1172dccd5eebc38373c11a510c532a7b9ba31cac79daafe7e9ccf7c5e622abbdb44817c966f100ec4f7a447e8b0370f9d7e66ff55e45ca
diff --git a/app-emacs/dashboard/dashboard-1.8.0_pre20220406.ebuild b/app-emacs/dashboard/dashboard-1.8.0_pre20220406.ebuild
new file mode 100644
index 000000000000..88cc08a233ff
--- /dev/null
+++ b/app-emacs/dashboard/dashboard-1.8.0_pre20220406.ebuild
@@ -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
+}
diff --git a/app-emacs/dashboard/files/50dashboard-gentoo.el b/app-emacs/dashboard/files/50dashboard-gentoo.el
new file mode 100644
index 000000000000..99dbca09ee09
--- /dev/null
+++ b/app-emacs/dashboard/files/50dashboard-gentoo.el
@@ -0,0 +1,3 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'dashboard-setup-startup-hook "dashboard"
+ "Setup post initialization hooks." t)
diff --git a/app-emacs/dashboard/files/dashboard-dashboard-widgets.el-banners.patch b/app-emacs/dashboard/files/dashboard-dashboard-widgets.el-banners.patch
new file mode 100644
index 000000000000..9ce24c2d9bd6
--- /dev/null
+++ b/app-emacs/dashboard/files/dashboard-dashboard-widgets.el-banners.patch
@@ -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
diff --git a/app-emacs/dashboard/metadata.xml b/app-emacs/dashboard/metadata.xml
new file mode 100644
index 000000000000..dbd2fb8bfbca
--- /dev/null
+++ b/app-emacs/dashboard/metadata.xml
@@ -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>