From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 00AFA158083 for ; Thu, 5 Sep 2024 08:06:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50C9EE2A9E; Thu, 5 Sep 2024 08:06:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 12C5DE2A85 for ; Thu, 5 Sep 2024 08:06:11 +0000 (UTC) From: =?UTF-8?q?Ulrich=20M=C3=BCller?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Ulrich=20M=C3=BCller?= Subject: [gentoo-dev] [PATCH] elisp.eclass: New function elisp_pkg_info Date: Thu, 5 Sep 2024 10:05:43 +0200 Message-ID: <20240905080553.31198-1-ulm@gentoo.org> X-Mailer: git-send-email 2.46.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: bd2e3360-b664-496c-818b-2e8ec289338e X-Archives-Hash: b8e28a6d405b4414ae678cd200179f34 Signed-off-by: Ulrich Müller --- eclass/elisp.eclass | 10 ++++++++-- 1 file 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} -- 2.46.0