Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/eldev/files/, app-emacs/eldev/
Date: Fri, 29 Apr 2022 18:03:11
Message-Id: 1651255373.1b4040d4842fbfb36a0d936330cbef6ffec3f571.xgqt@gentoo
1 commit: 1b4040d4842fbfb36a0d936330cbef6ffec3f571
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 18:02:44 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 18:02:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b4040d4
7
8 app-emacs/eldev: new package; add version 1.1
9
10 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
11
12 app-emacs/eldev/Manifest | 1 +
13 app-emacs/eldev/eldev-1.1.ebuild | 45 +++++++++++++++++++++++++++++++++
14 app-emacs/eldev/files/50eldev-gentoo.el | 1 +
15 app-emacs/eldev/metadata.xml | 22 ++++++++++++++++
16 4 files changed, 69 insertions(+)
17
18 diff --git a/app-emacs/eldev/Manifest b/app-emacs/eldev/Manifest
19 new file mode 100644
20 index 000000000000..4c22e112d68a
21 --- /dev/null
22 +++ b/app-emacs/eldev/Manifest
23 @@ -0,0 +1 @@
24 +DIST eldev-1.1.tar.gz 214028 BLAKE2B 2e4a7b15df3e897df5fd029c9c2e298d46dd75316810dc5b859c933b818b65b53dd33451d6e284ec4a24de7de251f24225c8641d44f545db62f4f1777c776ab7 SHA512 acdea3eba36c7d1f06111c31b6e6467ec3b33ca42e06af64c0f67dbb2cbba631223c41dabba51eddf668920ab1eb4f75eaef2fe03a9bdd44163a2bc903cfb1ed
25
26 diff --git a/app-emacs/eldev/eldev-1.1.ebuild b/app-emacs/eldev/eldev-1.1.ebuild
27 new file mode 100644
28 index 000000000000..3f35959f7270
29 --- /dev/null
30 +++ b/app-emacs/eldev/eldev-1.1.ebuild
31 @@ -0,0 +1,45 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +NEED_EMACS=24.4
38 +
39 +inherit elisp
40 +
41 +DESCRIPTION="Emacs Lisp Development Tool"
42 +HOMEPAGE="https://github.com/doublep/eldev/"
43 +SRC_URI="https://github.com/doublep/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-3+"
46 +KEYWORDS="~amd64 ~x86"
47 +SLOT="0"
48 +
49 +DOCS=( README.adoc )
50 +SITEFILE="50${PN}-gentoo.el"
51 +
52 +src_test() {
53 + ELDEV_LOCAL="${S}" ./bin/${PN} test
54 +}
55 +
56 +src_install() {
57 + elisp_src_install
58 + dobin bin/${PN}
59 +
60 + # NOTICE: If ELDEV_LOCAL is defined Eldev will use it
61 + # to load up it's components,
62 + # if it is not it will bootstrap itself from network
63 + # always check if it uses installed Emacs Lisp files.
64 + # Also, do not forget to run `env-update` & reopen your shell.
65 + # https://github.com/doublep/eldev#influential-environment-variables
66 + echo "ELDEV_LOCAL=${SITELISP}/${PN}" >> "${T}"/99${PN} || die
67 + doenvd "${T}"/99${PN}
68 +}
69 +
70 +pkg_postinst() {
71 + elisp_pkg_postinst
72 +
73 + ewarn "Remember to run \`env-update && source /etc/profile\` if you plan"
74 + ewarn "to use Eldev in a shell before logging out (or restarting"
75 + ewarn "your login manager)."
76 +}
77
78 diff --git a/app-emacs/eldev/files/50eldev-gentoo.el b/app-emacs/eldev/files/50eldev-gentoo.el
79 new file mode 100644
80 index 000000000000..431f7e90ae73
81 --- /dev/null
82 +++ b/app-emacs/eldev/files/50eldev-gentoo.el
83 @@ -0,0 +1 @@
84 +(add-to-list 'load-path "@SITELISP@")
85
86 diff --git a/app-emacs/eldev/metadata.xml b/app-emacs/eldev/metadata.xml
87 new file mode 100644
88 index 000000000000..cb313e2aec78
89 --- /dev/null
90 +++ b/app-emacs/eldev/metadata.xml
91 @@ -0,0 +1,22 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
94 +
95 +<pkgmetadata>
96 + <maintainer type="project">
97 + <email>gnu-emacs@g.o</email>
98 + <name>Gentoo GNU Emacs project</name>
99 + </maintainer>
100 + <upstream>
101 + <changelog>https://github.com/doublep/eldev/releases/</changelog>
102 + <bugs-to>https://github.com/doublep/eldev/issues/</bugs-to>
103 + <remote-id type="github">doublep/eldev</remote-id>
104 + </upstream>
105 + <longdescription>
106 + Eldev (Elisp Development Tool) is an Emacs-based build tool, targeted
107 + solely at Elisp projects. It is an alternative to Cask. Unlike Cask, Eldev
108 + itself is fully written in Elisp and its configuration files are also Elisp
109 + programs. If you are familiar with Java world, Cask can be seen as a
110 + parallel to Maven — it uses project description, while Eldev is sort of a
111 + parallel to Gradle — its configuration is a program on its own.
112 + </longdescription>
113 +</pkgmetadata>