From 6a5fb90877486e650e7265ccbc5d72035b6e6690 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 18 Jul 2019 11:58:35 +0200 Subject: cvs.eclass: Add proper EAPI conditional, drop EAPIs 0 to 3. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- eclass/cvs.eclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass index 33a642445471..e667b563fb3d 100644 --- a/eclass/cvs.eclass +++ b/eclass/cvs.eclass @@ -4,6 +4,7 @@ # @ECLASS: cvs.eclass # @MAINTAINER: # vapier@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. -- cgit v1.2.3-65-gdbad