From 318f79e37083acc6e796c884bfd85bc544d49ca8 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 20 Jun 2021 23:14:26 +0200 Subject: l10n.eclass: [QA] add EAPI guard Signed-off-by: Sam James Signed-off-by: David Seifert --- eclass/l10n.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'eclass/l10n.eclass') diff --git a/eclass/l10n.eclass b/eclass/l10n.eclass index 7bd8f382fbe3..878879e5e57a 100644 --- a/eclass/l10n.eclass +++ b/eclass/l10n.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: l10n.eclass @@ -7,6 +7,7 @@ # @AUTHOR: # Ben de Groot # @BLURB: convenience functions to handle localizations +# @SUPPORTED_EAPIS: 5 6 7 # @DESCRIPTION: # The l10n (localization) eclass offers a number of functions to more # conveniently handle localizations (translations) offered by packages. @@ -14,6 +15,11 @@ # determining the cross-section between the user's set LINGUAS and what # is offered by the package. +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + if [[ -z ${_L10N_ECLASS} ]]; then _L10N_ECLASS=1 -- cgit v1.2.3-65-gdbad