diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-09-09 12:30:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-09-09 12:30:03 +0100 |
commit | d8a7472fc6314625f7d16e0427004eb448412908 (patch) | |
tree | 0dba2e223a5a5e200a4b84a4a5e3ff690e5059e7 /eclass/strip-linguas.eclass | |
parent | 8e49340ce0aaf205556648d8fa27dd30e8cf4435 (diff) |
gentoo auto-resync : 09:09:2024 - 12:30:03
Diffstat (limited to 'eclass/strip-linguas.eclass')
-rw-r--r-- | eclass/strip-linguas.eclass | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/strip-linguas.eclass b/eclass/strip-linguas.eclass index 718341b4a626..b31f414c87c3 100644 --- a/eclass/strip-linguas.eclass +++ b/eclass/strip-linguas.eclass @@ -1,4 +1,4 @@ -# Copyright 2004-2021 Gentoo Authors +# Copyright 2004-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: strip-linguas.eclass @@ -9,15 +9,19 @@ # @SUPPORTED_EAPIS: 5 6 7 8 # @BLURB: convenience function for LINGUAS support +if [[ -z ${_STRIP_LINGUAS_ECLASS} ]]; then +_STRIP_LINGUAS_ECLASS=1 + case ${EAPI} in - 5|6|7|8) ;; + 5|6) + ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!" + ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI." + ;; + 7|8) ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -if [[ -z ${_STRIP_LINGUAS_ECLASS} ]]; then -_STRIP_LINGUAS_ECLASS=1 - -# @FUNCTION: strip-linguas +# FUNCTION: strip-linguas # @USAGE: [<allow LINGUAS>|<-i|-u> <directories of .po files>] # @DESCRIPTION: # Make sure that LINGUAS only contains languages that a package can |