diff options
author | 2024-09-02 17:18:17 +0200 | |
---|---|---|
committer | 2024-09-23 14:05:36 +0200 | |
commit | 452c39b1b97dd8e472c381c90814ca7151bbd80d (patch) | |
tree | 81cb40b1b91d29b60379779270b60e3c36fa8e18 | |
parent | net-misc/netifrc: add 0.7.11 (diff) | |
download | gentoo-452c39b1b97dd8e472c381c90814ca7151bbd80d.tar.gz gentoo-452c39b1b97dd8e472c381c90814ca7151bbd80d.tar.bz2 gentoo-452c39b1b97dd8e472c381c90814ca7151bbd80d.zip |
elisp.eclass: Add pkg_info
Sync from Emacs overlay.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | eclass/elisp.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index 20139491c976..1fa8aab29753 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -1,4 +1,4 @@ -# Copyright 2002-2023 Gentoo Authors +# Copyright 2002-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: elisp.eclass @@ -205,5 +205,11 @@ elisp_pkg_postrm() { elisp-site-regen } +elisp_pkg_info() { + if [[ -n ${_ELISP_EMACS_VERSION} ]]; then + echo "Built with Emacs version: ${_ELISP_EMACS_VERSION}" + fi +} + EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,test,install} \ - pkg_{setup,postinst,postrm} + pkg_{setup,postinst,postrm,info} |