mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 00:46:58 +02:00
eclass/strip-linguas: Sync with Gentoo
It's from Gentoo commit d5184aa89c525edc88ebf0df095c179dbab352fa.
This commit is contained in:
parent
a4a1719cc1
commit
7e40ff3bb8
@ -6,17 +6,13 @@
|
|||||||
# Ulrich Müller <ulm@gentoo.org>
|
# Ulrich Müller <ulm@gentoo.org>
|
||||||
# @AUTHOR:
|
# @AUTHOR:
|
||||||
# Mike Frysinger <vapier@gentoo.org>
|
# Mike Frysinger <vapier@gentoo.org>
|
||||||
# @SUPPORTED_EAPIS: 5 6 7 8
|
# @SUPPORTED_EAPIS: 7 8
|
||||||
# @BLURB: convenience function for LINGUAS support
|
# @BLURB: convenience function for LINGUAS support
|
||||||
|
|
||||||
if [[ -z ${_STRIP_LINGUAS_ECLASS} ]]; then
|
if [[ -z ${_STRIP_LINGUAS_ECLASS} ]]; then
|
||||||
_STRIP_LINGUAS_ECLASS=1
|
_STRIP_LINGUAS_ECLASS=1
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
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) ;;
|
7|8) ;;
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user