summaryrefslogtreecommitdiff
path: root/eclass/mercurial.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-21 17:32:00 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-21 17:32:00 +0100
commit61f10f985e19dfe20a4d9552902625edd5b6eabb (patch)
tree50db31971b38c4e0358253ef5005058a46fc773e /eclass/mercurial.eclass
parent34dea8e38f88007799629d0a56b12dec480b1d21 (diff)
gentoo resync : 21.06.2021
Diffstat (limited to 'eclass/mercurial.eclass')
-rw-r--r--eclass/mercurial.eclass21
1 files changed, 19 insertions, 2 deletions
diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index dc0d19f59ae2..b62ecdf102a5 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -7,6 +7,7 @@
# @AUTHOR:
# Next gen author: Krzysztof Pawlik <nelchael@gentoo.org>
# Original author: Aron Griffis <agriffis@gentoo.org>
+# @SUPPORTED_EAPIS: 7
# @BLURB: This eclass provides generic mercurial fetching functions
# @DESCRIPTION:
# This eclass provides generic mercurial fetching functions. To fetch sources
@@ -14,13 +15,27 @@
# you need to share single repository between several ebuilds set EHG_PROJECT to
# project name in all of them.
-inherit eutils
+case ${EAPI:-0} in
+ 7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
EXPORT_FUNCTIONS src_unpack
+if [[ -z ${_MERCURIAL_ECLASS} ]] ; then
+_MERCURIAL_ECLASS=1
+
PROPERTIES+=" live"
-DEPEND="dev-vcs/mercurial"
+case ${EAPI:-0} in
+ 7)
+ # For compatibiilty only (indirect inherits).
+ # Eclass itself doesn't need it.
+ inherit eutils
+ ;;
+esac
+
+BDEPEND="dev-vcs/mercurial"
# @ECLASS-VARIABLE: EHG_REPO_URI
# @DESCRIPTION:
@@ -202,3 +217,5 @@ function mercurial_src_unpack {
mercurial_fetch
mercurial_bootstrap
}
+
+fi