Gentoo Archives: gentoo-dev

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

Replies