From 61f10f985e19dfe20a4d9552902625edd5b6eabb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 21 Jun 2021 17:32:00 +0100 Subject: gentoo resync : 21.06.2021 --- eclass/mercurial.eclass | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'eclass/mercurial.eclass') 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 # Original author: Aron Griffis +# @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 -- cgit v1.2.3