diff options
Diffstat (limited to 'eclass/mercurial.eclass')
-rw-r--r-- | eclass/mercurial.eclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass index dc0d19f59ae2..ded976e059a6 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 |