summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-11-01 19:40:48 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-11-01 20:17:12 +0100
commit2502f81055cd6717da91c388c348dc4d9d9cfe75 (patch)
treec9767c59869fd346bdf53f182477c5e2aa49c87a
parentapp-emacs/ef-themes: bump to 1.4.0 (diff)
downloadgentoo-2502f81055cd6717da91c388c348dc4d9d9cfe75.tar.gz
gentoo-2502f81055cd6717da91c388c348dc4d9d9cfe75.tar.bz2
gentoo-2502f81055cd6717da91c388c348dc4d9d9cfe75.zip
app-emacs/eldev: bump to 1.7
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--app-emacs/eldev/Manifest1
-rw-r--r--app-emacs/eldev/eldev-1.7.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/app-emacs/eldev/Manifest b/app-emacs/eldev/Manifest
index 41763d3b8061..ddce2bb46f3a 100644
--- a/app-emacs/eldev/Manifest
+++ b/app-emacs/eldev/Manifest
@@ -1 +1,2 @@
DIST eldev-1.6.tar.gz 283833 BLAKE2B c9111b97ef0ca8a70d60909f5ecacf6628e571e547a83a78aee478964bd8194b93a3c5c2fc83278a5e5e5c9909492699abe9edc1b8e113d2dafeb4af64b000b7 SHA512 855c63e173fa3ed8294eeabb08effb621e1b13d672ce035559f9eaa2dc5fa095302cc52b76fd3716312f0e5922b2774d3ccad741b764d67155f8d73c032acbe7
+DIST eldev-1.7.tar.gz 291763 BLAKE2B 3fabe4d6d596fe66ead62603c377817a0c2c991bd18e677dc37e2d55e48b37ce7fdae295587fdaad21e06be0f68c78f78f673a94b539f0aefad5bb3c7840c7c1 SHA512 5582d6af4d11cba7b685e3a1bbe2e4b2ca0af65d82fac42de0badd099f5bfe7458d4ca174834b1d0e450e10cdf5f7c409fff18027e5ce74c48c488e25a8a854a
diff --git a/app-emacs/eldev/eldev-1.7.ebuild b/app-emacs/eldev/eldev-1.7.ebuild
new file mode 100644
index 000000000000..413e8c727a11
--- /dev/null
+++ b/app-emacs/eldev/eldev-1.7.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp
+
+DESCRIPTION="Emacs Lisp Development Tool"
+HOMEPAGE="https://github.com/doublep/eldev/"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/doublep/${PN}.git"
+else
+ SRC_URI="https://github.com/doublep/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~ppc64 ~riscv ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+DOCS=( README.adoc )
+SITEFILE="50${PN}-gentoo.el"
+
+src_test() {
+ ELDEV_LOCAL="${S}" ./bin/${PN} test
+}
+
+src_install() {
+ elisp_src_install
+ dobin bin/${PN}
+
+ # NOTICE: If ELDEV_LOCAL is defined Eldev will use it
+ # to load up it's components,
+ # if it is not it will bootstrap itself from network
+ # always check if it uses installed Emacs Lisp files.
+ # Also, do not forget to run `env-update` & reopen your shell.
+ # https://github.com/doublep/eldev#influential-environment-variables
+ echo "ELDEV_LOCAL=${SITELISP}/${PN}" >> "${T}"/99${PN} || die
+ doenvd "${T}"/99${PN}
+}
+
+pkg_postinst() {
+ elisp_pkg_postinst
+
+ ewarn "Remember to run \`env-update && source /etc/profile\` if you plan"
+ ewarn "to use Eldev in a shell before logging out (or restarting"
+ ewarn "your login manager)."
+}