summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:14:34 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:14:34 +0200
commitb8551abc933b70a8bf4657932afda501c82601d5 (patch)
treed98ef304a93739b9a6f4e9d58a9d83b8f6c80e68 /eclass
parentmercurial.eclass: [QA] add EAPI guard (diff)
downloadgentoo-b8551abc933b70a8bf4657932afda501c82601d5.tar.gz
gentoo-b8551abc933b70a8bf4657932afda501c82601d5.tar.bz2
gentoo-b8551abc933b70a8bf4657932afda501c82601d5.zip
mercurial.eclass: [QA] use BDEPEND for mercurial in EAPI 7
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mercurial.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index ded976e059a..1f4ae2c3b48 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -20,8 +20,6 @@ case ${EAPI:-0} in
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-inherit eutils
-
EXPORT_FUNCTIONS src_unpack
if [[ -z ${_MERCURIAL_ECLASS} ]] ; then
@@ -29,7 +27,15 @@ _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: