summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-02-15 09:40:27 +0100
committerUlrich Müller <ulm@gentoo.org>2021-02-15 09:41:34 +0100
commit25949b8e668f06975c2b42501ad608b59fd7c928 (patch)
tree84b6d3a5d8deffdc91aa1239048367e29652b6c6 /eclass/elisp-common.eclass
parentmedia-libs/lastfmlib: cleanup old (diff)
downloadgentoo-25949b8e668f06975c2b42501ad608b59fd7c928.tar.gz
gentoo-25949b8e668f06975c2b42501ad608b59fd7c928.tar.bz2
gentoo-25949b8e668f06975c2b42501ad608b59fd7c928.zip
elisp-common.eclass: More verbose error for failed version detection
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 66a3a325e673..be8d0fa3b304 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: elisp-common.eclass
@@ -234,6 +234,8 @@ elisp-emacs-version() {
rm -f "${T}"/emacs-version.el
if [[ ${ret} -ne 0 ]]; then
eerror "elisp-emacs-version: Failed to run ${EMACS}"
+ [[ $(realpath ${EMACS} 2>/dev/null) == */emacs* ]] \
+ || eerror "This package needs GNU Emacs"
return ${ret}
fi
if [[ -z ${version} ]]; then