mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-20 18:12:01 +01:00
eclass/check-reqs: Sync with Gentoo
It's from Gentoo commit 966e7cdfb758001a014f0cc304c79855c61d53e0.
This commit is contained in:
parent
f7d7ab75fe
commit
f4adcc8c54
@ -1,4 +1,4 @@
|
|||||||
# Copyright 2004-2023 Gentoo Authors
|
# Copyright 2004-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: check-reqs.eclass
|
# @ECLASS: check-reqs.eclass
|
||||||
@ -38,14 +38,18 @@
|
|||||||
# These checks should probably mostly work on non-Linux, and they should
|
# These checks should probably mostly work on non-Linux, and they should
|
||||||
# probably degrade gracefully if they don't. Probably.
|
# probably degrade gracefully if they don't. Probably.
|
||||||
|
|
||||||
case ${EAPI} in
|
|
||||||
6|7|8) ;;
|
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [[ -z ${_CHECK_REQS_ECLASS} ]]; then
|
if [[ -z ${_CHECK_REQS_ECLASS} ]]; then
|
||||||
_CHECK_REQS_ECLASS=1
|
_CHECK_REQS_ECLASS=1
|
||||||
|
|
||||||
|
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) ;;
|
||||||
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# @ECLASS_VARIABLE: CHECKREQS_MEMORY
|
# @ECLASS_VARIABLE: CHECKREQS_MEMORY
|
||||||
# @DEFAULT_UNSET
|
# @DEFAULT_UNSET
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user