[PATCH] mercurial.eclass: Support EAPI 9

Ulrich Müller <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <[email protected]>
Signed-off-by: Ulrich Müller <[email protected]>
---
 eclass/mercurial.eclass | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/mercurial.eclass b/eclass/mercurial.eclass
index 0d700c79930ef..b783984ae03b4 100644
--- a/eclass/mercurial.eclass
+++ b/eclass/mercurial.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: mercurial.eclass
@@ -7,7 +7,7 @@
 # @AUTHOR:
 # Next gen author: Krzysztof Pawlik <[email protected]>
 # Original author: Aron Griffis <[email protected]>
-# @SUPPORTED_EAPIS: 7 8
+# @SUPPORTED_EAPIS: 7 8 9
 # @BLURB: This eclass provides generic mercurial fetching functions
 # @DESCRIPTION:
 # This eclass provides generic mercurial fetching functions. To fetch sources
@@ -15,14 +15,14 @@
 # you need to share single repository between several ebuilds set EHG_PROJECT to
 # project name in all of them.
 
+if [[ -z ${_MERCURIAL_ECLASS} ]] ; then
+_MERCURIAL_ECLASS=1
+
 case ${EAPI:-0} in
-	[78]) ;;
+	7|8|9) ;;
 	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
-if [[ -z ${_MERCURIAL_ECLASS} ]] ; then
-_MERCURIAL_ECLASS=1
-
 PROPERTIES+=" live"
 
 BDEPEND="dev-vcs/mercurial"
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.