Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 04 Oct 2021 07:07:45
Message-Id: 1633329625.84dc6745e8bce9457224605080d3d80efae9733b.ulm@gentoo
1 commit: 84dc6745e8bce9457224605080d3d80efae9733b
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 2 10:26:02 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 06:40:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84dc6745
7
8 cvs.eclass: Support EAPI 8, drop EAPI 6 and older
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 eclass/cvs.eclass | 17 ++++++++---------
13 1 file changed, 8 insertions(+), 9 deletions(-)
14
15 diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
16 index a8e5ee4cc9a..2868cb31f31 100644
17 --- a/eclass/cvs.eclass
18 +++ b/eclass/cvs.eclass
19 @@ -4,7 +4,7 @@
20 # @ECLASS: cvs.eclass
21 # @MAINTAINER:
22 # vapier@g.o (and anyone who wants to help)
23 -# @SUPPORTED_EAPIS: 4 5 6 7
24 +# @SUPPORTED_EAPIS: 7 8
25 # @BLURB: This eclass provides generic cvs fetching functions
26 # @DESCRIPTION:
27 # This eclass provides the generic cvs fetching functions. To use this from an
28 @@ -16,6 +16,11 @@
29 if [[ -z ${_CVS_ECLASS} ]]; then
30 _CVS_ECLASS=1
31
32 +case ${EAPI} in
33 + 7|8) ;;
34 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
35 +esac
36 +
37 # TODO:
38
39 # Implement more auth types (gserver?, kserver?)
40 @@ -179,7 +184,7 @@ PROPERTIES+=" live"
41
42 # add cvs to deps
43 # ssh is used for ext auth
44 -DEPEND="dev-vcs/cvs"
45 +BDEPEND="dev-vcs/cvs"
46
47 if [[ ${ECVS_AUTH} == "ext" ]] ; then
48 #default to ssh
49 @@ -187,15 +192,9 @@ if [[ ${ECVS_AUTH} == "ext" ]] ; then
50 if [[ ${CVS_RSH} != "ssh" ]] ; then
51 die "Support for ext auth with clients other than ssh has not been implemented yet"
52 fi
53 - DEPEND+=" net-misc/openssh"
54 + BDEPEND+=" net-misc/openssh"
55 fi
56
57 -case ${EAPI:-0} in
58 - 4|5|6) ;;
59 - 7) BDEPEND="${DEPEND}"; DEPEND="" ;;
60 - *) die "${ECLASS}: EAPI ${EAPI:-0} is not supported" ;;
61 -esac
62 -
63 # called from cvs_src_unpack
64 cvs_fetch() {
65 # Make these options local variables so that the global values are