1 |
commit: c7b17bd92e92f92ea58e1ae780de6f6d4c130ba4 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 13 07:38:34 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 19 20:08:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b17bd9 |
7 |
|
8 |
elisp.eclass: Drop support for EAPI 4 and 5 |
9 |
|
10 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
11 |
|
12 |
eclass/elisp.eclass | 26 ++++++++------------------ |
13 |
1 file changed, 8 insertions(+), 18 deletions(-) |
14 |
|
15 |
diff --git a/eclass/elisp.eclass b/eclass/elisp.eclass |
16 |
index a092041009b..d763a4944d2 100644 |
17 |
--- a/eclass/elisp.eclass |
18 |
+++ b/eclass/elisp.eclass |
19 |
@@ -9,7 +9,7 @@ |
20 |
# Jeremy Maitin-Shepard <jbms@×××××.com> |
21 |
# Christian Faulhammer <fauli@g.o> |
22 |
# Ulrich Müller <ulm@g.o> |
23 |
-# @SUPPORTED_EAPIS: 4 5 6 7 |
24 |
+# @SUPPORTED_EAPIS: 6 7 |
25 |
# @BLURB: Eclass for Emacs Lisp packages |
26 |
# @DESCRIPTION: |
27 |
# |
28 |
@@ -40,7 +40,7 @@ |
29 |
# Space separated list of patches to apply after unpacking the sources. |
30 |
# Patch files are searched for in the current working dir, WORKDIR, and |
31 |
# FILESDIR. This variable is semi-deprecated, preferably use the |
32 |
-# PATCHES array instead if the EAPI supports it. |
33 |
+# PATCHES array instead. |
34 |
|
35 |
# @ECLASS-VARIABLE: ELISP_REMOVE |
36 |
# @DEFAULT_UNSET |
37 |
@@ -62,8 +62,8 @@ |
38 |
# will be generated in src_compile() and installed in src_install(). |
39 |
|
40 |
inherit elisp-common |
41 |
+ |
42 |
case ${EAPI:-0} in |
43 |
- 4|5) inherit epatch ;; |
44 |
6|7) ;; |
45 |
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
46 |
esac |
47 |
@@ -73,8 +73,7 @@ EXPORT_FUNCTIONS src_{unpack,prepare,configure,compile,install} \ |
48 |
|
49 |
RDEPEND=">=app-editors/emacs-${NEED_EMACS}:*" |
50 |
case ${EAPI} in |
51 |
- 4) RDEPEND="${RDEPEND%:*}"; DEPEND="${RDEPEND}" ;; |
52 |
- 5|6) DEPEND="${RDEPEND}" ;; |
53 |
+ 6) DEPEND="${RDEPEND}" ;; |
54 |
*) BDEPEND="${RDEPEND}" ;; |
55 |
esac |
56 |
|
57 |
@@ -118,17 +117,11 @@ elisp_src_prepare() { |
58 |
else |
59 |
die "Cannot find ${patch}" |
60 |
fi |
61 |
- case ${EAPI} in |
62 |
- 4|5) epatch "${file}" ;; |
63 |
- *) eapply "${file}" ;; |
64 |
- esac |
65 |
+ eapply "${file}" |
66 |
done |
67 |
|
68 |
- # apply PATCHES (if supported in EAPI), and any user patches |
69 |
- case ${EAPI} in |
70 |
- 4|5) epatch_user ;; |
71 |
- *) default ;; |
72 |
- esac |
73 |
+ # apply PATCHES and any user patches |
74 |
+ default |
75 |
|
76 |
if [[ -n ${ELISP_REMOVE} ]]; then |
77 |
rm ${ELISP_REMOVE} || die |
78 |
@@ -172,10 +165,7 @@ elisp_src_install() { |
79 |
doinfo ${@/%.*/.info*} |
80 |
fi |
81 |
# install documentation only when explicitly requested |
82 |
- case ${EAPI} in |
83 |
- 4|5) [[ -n ${DOCS} ]] && dodoc ${DOCS} ;; |
84 |
- *) [[ $(declare -p DOCS 2>/dev/null) == *=* ]] && einstalldocs ;; |
85 |
- esac |
86 |
+ [[ $(declare -p DOCS 2>/dev/null) == *=* ]] && einstalldocs |
87 |
if declare -f readme.gentoo_create_doc >/dev/null; then |
88 |
readme.gentoo_create_doc |
89 |
fi |