diff options
author | Ulrich Müller <ulm@gentoo.org> | 2019-12-20 12:29:05 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2019-12-21 10:52:39 +0100 |
commit | 066395c1d07f74dad75ed529e4a61d97dac289c2 (patch) | |
tree | 0edc29052f7122b2e7a76c5a6b17a7a78c0a0777 /eclass/elisp.eclass | |
parent | elisp-common.eclass: Update documentation. (diff) | |
download | gentoo-066395c1d07f74dad75ed529e4a61d97dac289c2.tar.gz gentoo-066395c1d07f74dad75ed529e4a61d97dac289c2.tar.bz2 gentoo-066395c1d07f74dad75ed529e4a61d97dac289c2.zip |
elisp.eclass: Depend on app-editors/emacs directly.
This replaces the indirect dependency on virtual/emacs.
Update pkg_setup() to call elisp-check-emacs-version instead of the
now deprecated elisp-need-emacs.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/elisp.eclass')
-rw-r--r-- | eclass/elisp.eclass | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass index df160ea01e22..a411f602cf7c 100644 --- a/eclass/elisp.eclass +++ b/eclass/elisp.eclass @@ -30,8 +30,8 @@ # @DEFAULT_UNSET # @DESCRIPTION: # If you need anything different from Emacs 23, use the NEED_EMACS -# variable before inheriting elisp.eclass. Set it to the major version -# your package uses and the dependency will be adjusted. +# variable before inheriting elisp.eclass. Set it to the version your +# package uses and the dependency will be adjusted. # @ECLASS-VARIABLE: ELISP_PATCHES # @DEFAULT_UNSET @@ -70,24 +70,20 @@ esac EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \ pkg_{setup,postinst,postrm} -RDEPEND=">=virtual/emacs-${NEED_EMACS:-23}" +RDEPEND=">=app-editors/emacs-${NEED_EMACS}:*" case ${EAPI} in - 4|5|6) DEPEND="${RDEPEND}" ;; + 4) RDEPEND="${RDEPEND%:*}"; DEPEND="${RDEPEND}" ;; + 5|6) DEPEND="${RDEPEND}" ;; *) BDEPEND="${RDEPEND}" ;; esac # @FUNCTION: elisp_pkg_setup # @DESCRIPTION: -# Test if the eselected Emacs version is sufficient to fulfil the major +# Test if the eselected Emacs version is sufficient to fulfil the # version requirement of the NEED_EMACS variable. elisp_pkg_setup() { - elisp-need-emacs "${NEED_EMACS:-23}" - case $? in - 0) ;; - 1) die "Emacs version too low" ;; - *) die "Could not determine Emacs version" ;; - esac + elisp-check-emacs-version } # @FUNCTION: elisp_src_unpack |