mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
eclass/portability: Sync with Gentoo
It's from Gentoo commit 4dfda0e55ff2b2b96b2b08f6fd3520014bfe67ed.
This commit is contained in:
parent
5114d15af8
commit
d32c8d300b
@ -6,17 +6,13 @@
|
|||||||
# base-system@gentoo.org
|
# base-system@gentoo.org
|
||||||
# @AUTHOR:
|
# @AUTHOR:
|
||||||
# Diego Pettenò <flameeyes@gentoo.org>
|
# Diego Pettenò <flameeyes@gentoo.org>
|
||||||
# @SUPPORTED_EAPIS: 6 7 8
|
# @SUPPORTED_EAPIS: 7 8
|
||||||
# @BLURB: This eclass is created to avoid using non-portable GNUisms inside ebuilds
|
# @BLURB: This eclass is created to avoid using non-portable GNUisms inside ebuilds
|
||||||
|
|
||||||
if [[ -z ${_PORTABILITY_ECLASS} ]]; then
|
if [[ -z ${_PORTABILITY_ECLASS} ]]; then
|
||||||
_PORTABILITY_ECLASS=1
|
_PORTABILITY_ECLASS=1
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
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