summaryrefslogtreecommitdiff
path: root/eclass/git-2.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
commit43793fab84041cfc5c60c0151d1591b8a69fb24a (patch)
tree6208a7f4fc744684fce0f55acbb47511acace498 /eclass/git-2.eclass
parent28e3d252dc8ac8a5635206dfefe1cfe05058d1db (diff)
gentoo resync : 25.08.2018
Diffstat (limited to 'eclass/git-2.eclass')
-rw-r--r--eclass/git-2.eclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index 63568c155775..5371a612dccf 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.eclass
@@ -1,9 +1,10 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: git-2.eclass
# @MAINTAINER:
# maintainer-needed@gentoo.org
+# @SUPPORTED_EAPIS: 0 1 2 3 4 5
# @BLURB: Eclass for fetching and unpacking git repositories.
# @DESCRIPTION:
# Eclass for easing maintenance of live ebuilds using git as remote repository.
@@ -11,9 +12,10 @@
#
# This eclass is DEPRECATED. Please use git-r3 instead.
-if [[ ${EAPI} == 6 ]]; then
- die "${ECLASS}.eclass is banned in EAPI ${EAPI}"
-fi
+case ${EAPI:-0} in
+ 0|1|2|3|4|5) ;;
+ *) die "${ECLASS}.eclass is banned in EAPI ${EAPI}";;
+esac
# This eclass support all EAPIs.
EXPORT_FUNCTIONS src_unpack