commit:     e3c2c5b1fa8d5b9c7af548fe672af9be83d178db
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  7 20:50:08 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Apr  7 20:52:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3c2c5b1

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

2022.04.06 snapshot

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/dashboard/Manifest                       |  1 +
 .../dashboard/dashboard-1.8.0_pre20220406.ebuild   | 38 ++++++++++++++++++++++
 app-emacs/dashboard/files/50dashboard-gentoo.el    |  3 ++
 .../dashboard-dashboard-widgets.el-banners.patch   | 12 +++++++
 app-emacs/dashboard/metadata.xml                   | 14 ++++++++
 5 files changed, 68 insertions(+)

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>[email protected]</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>

Reply via email to