summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-07-18 11:58:35 +0200
committerUlrich Müller <ulm@gentoo.org>2019-07-21 11:13:46 +0200
commit6a5fb90877486e650e7265ccbc5d72035b6e6690 (patch)
tree7394b8cf9598adc8f75751c80f3dff8316976d6c /eclass
parentcvs.eclass: Remove support for PATCHES. (diff)
downloadgentoo-6a5fb90877486e650e7265ccbc5d72035b6e6690.tar.gz
gentoo-6a5fb90877486e650e7265ccbc5d72035b6e6690.tar.bz2
gentoo-6a5fb90877486e650e7265ccbc5d72035b6e6690.zip
cvs.eclass: Add proper EAPI conditional, drop EAPIs 0 to 3.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cvs.eclass9
1 files changed, 7 insertions, 2 deletions
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.