diff options
author | Ulrich Müller <ulm@gentoo.org> | 2021-10-02 12:26:02 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-10-04 08:40:25 +0200 |
commit | 84dc6745e8bce9457224605080d3d80efae9733b (patch) | |
tree | 0e88009bd4c128c83a169f78cb4071ec5badcc27 /eclass/cvs.eclass | |
parent | app-mobilephone/dfu-util: Sync live ebuild (diff) | |
download | gentoo-84dc6745e8bce9457224605080d3d80efae9733b.tar.gz gentoo-84dc6745e8bce9457224605080d3d80efae9733b.tar.bz2 gentoo-84dc6745e8bce9457224605080d3d80efae9733b.zip |
cvs.eclass: Support EAPI 8, drop EAPI 6 and older
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/cvs.eclass')
-rw-r--r-- | eclass/cvs.eclass | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index a8e5ee4cc9a0..2868cb31f317 100644 --- a/eclass/cvs.eclass +++ b/eclass/cvs.eclass @@ -4,7 +4,7 @@ # @ECLASS: cvs.eclass # @MAINTAINER: # vapier@gentoo.org (and anyone who wants to help) -# @SUPPORTED_EAPIS: 4 5 6 7 +# @SUPPORTED_EAPIS: 7 8 # @BLURB: This eclass provides generic cvs fetching functions # @DESCRIPTION: # This eclass provides the generic cvs fetching functions. To use this from an @@ -16,6 +16,11 @@ if [[ -z ${_CVS_ECLASS} ]]; then _CVS_ECLASS=1 +case ${EAPI} in + 7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + # TODO: # Implement more auth types (gserver?, kserver?) @@ -179,7 +184,7 @@ PROPERTIES+=" live" # add cvs to deps # ssh is used for ext auth -DEPEND="dev-vcs/cvs" +BDEPEND="dev-vcs/cvs" if [[ ${ECVS_AUTH} == "ext" ]] ; then #default to ssh @@ -187,15 +192,9 @@ if [[ ${ECVS_AUTH} == "ext" ]] ; then if [[ ${CVS_RSH} != "ssh" ]] ; then die "Support for ext auth with clients other than ssh has not been implemented yet" fi - DEPEND+=" net-misc/openssh" + BDEPEND+=" net-misc/openssh" fi -case ${EAPI:-0} in - 4|5|6) ;; - 7) BDEPEND="${DEPEND}"; DEPEND="" ;; - *) die "${ECLASS}: EAPI ${EAPI:-0} is not supported" ;; -esac - # called from cvs_src_unpack cvs_fetch() { # Make these options local variables so that the global values are |