summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:14:26 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:14:26 +0200
commit318f79e37083acc6e796c884bfd85bc544d49ca8 (patch)
tree9482dc67089793f69d16cd7996605bc187603b60 /eclass/l10n.eclass
parentjava-virtuals-2.eclass: [QA] add EAPI guard (diff)
downloadgentoo-318f79e37083acc6e796c884bfd85bc544d49ca8.tar.gz
gentoo-318f79e37083acc6e796c884bfd85bc544d49ca8.tar.bz2
gentoo-318f79e37083acc6e796c884bfd85bc544d49ca8.zip
l10n.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/l10n.eclass')
-rw-r--r--eclass/l10n.eclass8
1 files changed, 7 insertions, 1 deletions
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 <yngwin@gentoo.org>
# @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