diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-09-02 17:18:17 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-09-02 17:30:46 +0200 |
commit | cc418c019b48522b2516a3c3f003817cd19648ba (patch) | |
tree | fa896caf3c54bad5268c2d40b43aab560cc4d329 | |
parent | elisp-common.eclass: Sync from Gentoo repository (diff) | |
download | emacs-cc418c019b48522b2516a3c3f003817cd19648ba.tar.gz emacs-cc418c019b48522b2516a3c3f003817cd19648ba.tar.bz2 emacs-cc418c019b48522b2516a3c3f003817cd19648ba.zip |
elisp.eclass: Add pkg_info
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 2013949..1fa8aab 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} |