summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:14:31 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:14:31 +0200
commit56d3f48a70f60b73102773476b4a4dc48fcf127c (patch)
treeef8a079c688a5a3fe38f6d8447f4a423d30010bf /eclass/mercurial.eclass
parentlinux-mod.eclass: [QA] add EAPI guard (diff)
downloadgentoo-56d3f48a70f60b73102773476b4a4dc48fcf127c.tar.gz
gentoo-56d3f48a70f60b73102773476b4a4dc48fcf127c.tar.bz2
gentoo-56d3f48a70f60b73102773476b4a4dc48fcf127c.zip
mercurial.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/mercurial.eclass')
-rw-r--r--eclass/mercurial.eclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index dc0d19f59ae..ded976e059a 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -8,16 +8,25 @@
# Next gen author: Krzysztof Pawlik <nelchael@gentoo.org>
# Original author: Aron Griffis <agriffis@gentoo.org>
# @BLURB: This eclass provides generic mercurial fetching functions
+# @SUPPORTED_EAPIS: 7
# @DESCRIPTION:
# This eclass provides generic mercurial fetching functions. To fetch sources
# from mercurial repository just set EHG_REPO_URI to correct repository URI. If
# you need to share single repository between several ebuilds set EHG_PROJECT to
# project name in all of them.
+case ${EAPI:-0} in
+ 7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
inherit eutils
EXPORT_FUNCTIONS src_unpack
+if [[ -z ${_MERCURIAL_ECLASS} ]] ; then
+_MERCURIAL_ECLASS=1
+
PROPERTIES+=" live"
DEPEND="dev-vcs/mercurial"
@@ -202,3 +211,5 @@ function mercurial_src_unpack {
mercurial_fetch
mercurial_bootstrap
}
+
+fi