commit:     6a5fb90877486e650e7265ccbc5d72035b6e6690
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 18 09:58:35 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jul 21 09:13:46 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a5fb908
cvs.eclass: Add proper EAPI conditional, drop EAPIs 0 to 3.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/cvs.eclass | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index 33a64244547..e667b563fb3 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -4,6 +4,7 @@
 # @ECLASS: cvs.eclass
 # @MAINTAINER:
 # vap...@gentoo.org (and anyone who wants to help)
+# @SUPPORTED_EAPIS: 4 5 6 7
 # @BLURB: This eclass provides generic cvs fetching functions
 # @DESCRIPTION:
 # This eclass provides the generic cvs fetching functions. To use this from an
@@ -185,10 +186,14 @@ if [[ ${ECVS_AUTH} == "ext" ]] ; then
        DEPEND+=" 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() {
-       has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
-
        # Make these options local variables so that the global values are
        # not affected by modifications in this function.
 

Reply via email to