Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/emacs:master commit in: eclass/
Date: Fri, 01 Jun 2018 18:07:43
Message-Id: 1527876432.9e025d71f8304db07e4e086fd8289f0d5e1789b5.ulm@gentoo
1 commit: 9e025d71f8304db07e4e086fd8289f0d5e1789b5
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 1 16:51:24 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 1 18:07:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=9e025d71
7
8 elisp.eclass: Depend on virtual/emacs on the build system.
9
10 For byte-compilation, Emacs is required to run on the native
11 build system. Therefore BDEPEND on virtual/emacs in EAPI 7.
12
13 Reorganise EAPI conditionals to be more compact.
14
15 eclass/elisp.eclass | 24 ++++++++++++------------
16 1 file changed, 12 insertions(+), 12 deletions(-)
17
18 diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass
19 index 9a66ec5..0f07a3e 100644
20 --- a/eclass/elisp.eclass
21 +++ b/eclass/elisp.eclass
22 @@ -65,24 +65,24 @@
23 # files by dodoc in src_install().
24
25 inherit elisp-common
26 +case ${EAPI:-0} in
27 + 0|1|2|3|4|5) inherit epatch ;;
28 + 6|7) ;;
29 + *) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
30 +esac
31
32 case ${EAPI:-0} in
33 - 0|1)
34 - inherit epatch
35 - EXPORT_FUNCTIONS src_{unpack,compile,install} \
36 - pkg_{setup,postinst,postrm} ;;
37 - 2|3|4|5)
38 - inherit epatch
39 - EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \
40 + 0|1) EXPORT_FUNCTIONS src_{unpack,compile,install} \
41 pkg_{setup,postinst,postrm} ;;
42 - 6|7)
43 - EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \
44 + *) EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \
45 pkg_{setup,postinst,postrm} ;;
46 - *) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
47 esac
48
49 -DEPEND=">=virtual/emacs-${NEED_EMACS:-23}"
50 -RDEPEND="${DEPEND}"
51 +RDEPEND=">=virtual/emacs-${NEED_EMACS:-23}"
52 +case ${EAPI:-0} in
53 + 0|1|2|3|4|5|6) DEPEND="${RDEPEND}" ;;
54 + *) BDEPEND="${RDEPEND}" ;;
55 +esac
56
57 # @FUNCTION: elisp_pkg_setup
58 # @DESCRIPTION: