summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-06-01 18:51:24 +0200
committerUlrich Müller <ulm@gentoo.org>2018-06-01 20:07:12 +0200
commit9e025d71f8304db07e4e086fd8289f0d5e1789b5 (patch)
tree19efc630ae49694eb0c515dd2dd045b8b6483fda /eclass
parentelisp.eclass: Sync from gentoo repo. (diff)
downloademacs-9e025d71f8304db07e4e086fd8289f0d5e1789b5.tar.gz
emacs-9e025d71f8304db07e4e086fd8289f0d5e1789b5.tar.bz2
emacs-9e025d71f8304db07e4e086fd8289f0d5e1789b5.zip
elisp.eclass: Depend on virtual/emacs on the build system.
For byte-compilation, Emacs is required to run on the native build system. Therefore BDEPEND on virtual/emacs in EAPI 7. Reorganise EAPI conditionals to be more compact.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/elisp.eclass24
1 files changed, 12 insertions, 12 deletions
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass
index 9a66ec5..0f07a3e 100644
--- a/eclass/elisp.eclass
+++ b/eclass/elisp.eclass
@@ -65,24 +65,24 @@
# files by dodoc in src_install().
inherit elisp-common
+case ${EAPI:-0} in
+ 0|1|2|3|4|5) inherit epatch ;;
+ 6|7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
+esac
case ${EAPI:-0} in
- 0|1)
- inherit epatch
- EXPORT_FUNCTIONS src_{unpack,compile,install} \
- pkg_{setup,postinst,postrm} ;;
- 2|3|4|5)
- inherit epatch
- EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \
+ 0|1) EXPORT_FUNCTIONS src_{unpack,compile,install} \
pkg_{setup,postinst,postrm} ;;
- 6|7)
- EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \
+ *) EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \
pkg_{setup,postinst,postrm} ;;
- *) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
esac
-DEPEND=">=virtual/emacs-${NEED_EMACS:-23}"
-RDEPEND="${DEPEND}"
+RDEPEND=">=virtual/emacs-${NEED_EMACS:-23}"
+case ${EAPI:-0} in
+ 0|1|2|3|4|5|6) DEPEND="${RDEPEND}" ;;
+ *) BDEPEND="${RDEPEND}" ;;
+esac
# @FUNCTION: elisp_pkg_setup
# @DESCRIPTION: