elisp-common.eclass: New function elisp-check-emacs-version.
authorUlrich Müller <ulm@gentoo.org>
Fri, 20 Dec 2019 11:23:55 +0000 (12:23 +0100)
committerUlrich Müller <ulm@gentoo.org>
Sat, 21 Dec 2019 09:52:38 +0000 (10:52 +0100)
commitd70654fdc9ea013e2f299b9d2032dae11d29d960
tree64c466bcb3e046cf2d0fe9413b28d92e5f4ac597
parent681c5bd882fd87be516b8b5f7f14029b58f299f1
elisp-common.eclass: New function elisp-check-emacs-version.

Tests if the Emacs version is at least the (full) version specified
by NEED_EMACS, otherwise dies. Intended as a replacement for function
elisp-need-emacs, which did only a simple numeric comparison of the
major version.

Call the new function before doing any actual work in elisp-compile()
and elisp-make-autoload-file(), so ebuilds inheriting only
elisp-common.eclass (but not elisp.eclass) won't have to add a
pkg_setup phase function.

Drop support for EAPIs 0 to 3.

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
eclass/elisp-common.eclass