summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-29 20:02:44 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-29 20:02:53 +0200
commit1b4040d4842fbfb36a0d936330cbef6ffec3f571 (patch)
tree5f8034dc144f447f8437a98377a2f09d50c37318 /app-emacs/eldev
parentnet-libs/nodejs: drop 16.9.1, 16.10.0, 16.13.0, 16.13.1, 16.14.1 (diff)
downloadgentoo-1b4040d4842fbfb36a0d936330cbef6ffec3f571.tar.gz
gentoo-1b4040d4842fbfb36a0d936330cbef6ffec3f571.tar.bz2
gentoo-1b4040d4842fbfb36a0d936330cbef6ffec3f571.zip
app-emacs/eldev: new package; add version 1.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/eldev')
-rw-r--r--app-emacs/eldev/Manifest1
-rw-r--r--app-emacs/eldev/eldev-1.1.ebuild45
-rw-r--r--app-emacs/eldev/files/50eldev-gentoo.el1
-rw-r--r--app-emacs/eldev/metadata.xml22
4 files changed, 69 insertions, 0 deletions
diff --git a/app-emacs/eldev/Manifest b/app-emacs/eldev/Manifest
new file mode 100644
index 000000000000..4c22e112d68a
--- /dev/null
+++ b/app-emacs/eldev/Manifest
@@ -0,0 +1 @@
+DIST eldev-1.1.tar.gz 214028 BLAKE2B 2e4a7b15df3e897df5fd029c9c2e298d46dd75316810dc5b859c933b818b65b53dd33451d6e284ec4a24de7de251f24225c8641d44f545db62f4f1777c776ab7 SHA512 acdea3eba36c7d1f06111c31b6e6467ec3b33ca42e06af64c0f67dbb2cbba631223c41dabba51eddf668920ab1eb4f75eaef2fe03a9bdd44163a2bc903cfb1ed
diff --git a/app-emacs/eldev/eldev-1.1.ebuild b/app-emacs/eldev/eldev-1.1.ebuild
new file mode 100644
index 000000000000..3f35959f7270
--- /dev/null
+++ b/app-emacs/eldev/eldev-1.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=24.4
+
+inherit elisp
+
+DESCRIPTION="Emacs Lisp Development Tool"
+HOMEPAGE="https://github.com/doublep/eldev/"
+SRC_URI="https://github.com/doublep/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+KEYWORDS="~amd64 ~x86"
+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)."
+}
diff --git a/app-emacs/eldev/files/50eldev-gentoo.el b/app-emacs/eldev/files/50eldev-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/app-emacs/eldev/files/50eldev-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")
diff --git a/app-emacs/eldev/metadata.xml b/app-emacs/eldev/metadata.xml
new file mode 100644
index 000000000000..cb313e2aec78
--- /dev/null
+++ b/app-emacs/eldev/metadata.xml
@@ -0,0 +1,22 @@
+<?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://github.com/doublep/eldev/releases/</changelog>
+ <bugs-to>https://github.com/doublep/eldev/issues/</bugs-to>
+ <remote-id type="github">doublep/eldev</remote-id>
+ </upstream>
+ <longdescription>
+ Eldev (Elisp Development Tool) is an Emacs-based build tool, targeted
+ solely at Elisp projects. It is an alternative to Cask. Unlike Cask, Eldev
+ itself is fully written in Elisp and its configuration files are also Elisp
+ programs. If you are familiar with Java world, Cask can be seen as a
+ parallel to Maven — it uses project description, while Eldev is sort of a
+ parallel to Gradle — its configuration is a program on its own.
+ </longdescription>
+</pkgmetadata>