1 |
commit: 3cd6f85b184bd099bb1204814a51abf1f4577417 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 1 18:23:14 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 1 18:23:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cd6f85b |
7 |
|
8 |
vcs-snapshot.eclass: remove EAPI 0-5 |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
eclass/vcs-snapshot.eclass | 10 +++++----- |
13 |
1 file changed, 5 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass |
16 |
index 74e5f4bcd42f..0e86cb4ad51f 100644 |
17 |
--- a/eclass/vcs-snapshot.eclass |
18 |
+++ b/eclass/vcs-snapshot.eclass |
19 |
@@ -4,7 +4,7 @@ |
20 |
# @ECLASS: vcs-snapshot.eclass |
21 |
# @MAINTAINER: |
22 |
# mgorny@g.o |
23 |
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 8 |
24 |
+# @SUPPORTED_EAPIS: 6 7 8 |
25 |
# @BLURB: support eclass for unpacking VCS snapshot tarballs |
26 |
# @DESCRIPTION: |
27 |
# THIS ECLASS IS NOT NECESSARY FOR MODERN GITHUB AND GITLAB SNAPSHOTS. |
28 |
@@ -42,9 +42,9 @@ |
29 |
# and however the tarballs were originally packed, all files will appear |
30 |
# in ${WORKDIR}/${P} and ${WORKDIR}/${P}-otherstuff respectively. |
31 |
|
32 |
-case ${EAPI:-0} in |
33 |
- 0|1|2|3|4|5|6|7|8) ;; |
34 |
- *) die "vcs-snapshot.eclass API in EAPI ${EAPI} not yet established." |
35 |
+case ${EAPI} in |
36 |
+ 6|7|8) ;; |
37 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
38 |
esac |
39 |
|
40 |
EXPORT_FUNCTIONS src_unpack |
41 |
@@ -102,7 +102,7 @@ vcs-snapshot_src_unpack() { |
42 |
|
43 |
if [[ ! ${renamed_any} ]]; then |
44 |
local w=eerror |
45 |
- [[ ${EAPI} == [0123456] ]] && w=eqawarn |
46 |
+ [[ ${EAPI} == 6 ]] && w=eqawarn |
47 |
"${w}" "${FUNCNAME} did not find any archives that needed renaming." |
48 |
"${w}" "Please verify that its usage is really necessary, and remove" |
49 |
"${w}" "the inherit if it is not." |