summaryrefslogtreecommitdiff
path: root/eclass/l10n.eclass
diff options
context:
space:
mode:
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..5cf3931b7bf5 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
@@ -6,6 +6,7 @@
# Ulrich Müller <ulm@gentoo.org>
# @AUTHOR:
# Ben de Groot <yngwin@gentoo.org>
+# @SUPPORTED_EAPIS: 5 6 7
# @BLURB: convenience functions to handle localizations
# @DESCRIPTION:
# The l10n (localization) eclass offers a number of functions to more
@@ -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