eclass/plocale: Sync with Gentoo

It's from Gentoo commit 569a75354e41d577183a600c48895a3ebb7d2416.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-02 07:27:13 +00:00 committed by Krzesimir Nowak
parent c4d6da6a02
commit 652880fec3

View File

@ -1,4 +1,4 @@
# Copyright 2012-2022 Gentoo Authors
# Copyright 2012-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: plocale.eclass
@ -6,7 +6,7 @@
# Ulrich Müller <ulm@gentoo.org>
# @AUTHOR:
# Ben de Groot <yngwin@gentoo.org>
# @SUPPORTED_EAPIS: 7 8
# @SUPPORTED_EAPIS: 7 8 9
# @BLURB: convenience functions to handle localizations
# @DESCRIPTION:
# The plocale (localization) eclass offers a number of functions to more
@ -51,14 +51,14 @@
# maintenance. It can be used to scan a directory for available
# translations and check if the ebuild's PLOCALES are still up to date.
case ${EAPI} in
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_PLOCALE_ECLASS} ]]; then
_PLOCALE_ECLASS=1
case ${EAPI} in
7|8|9) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
# @ECLASS_VARIABLE: PLOCALES
# @DEFAULT_UNSET
# @DESCRIPTION: