From b8551abc933b70a8bf4657932afda501c82601d5 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 20 Jun 2021 23:14:34 +0200 Subject: mercurial.eclass: [QA] use BDEPEND for mercurial in EAPI 7 Signed-off-by: Sam James Signed-off-by: David Seifert --- eclass/mercurial.eclass | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'eclass/mercurial.eclass') 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: -- cgit v1.2.3-18-g5258