eclass/crossdev: Sync with Gentoo

It's from Gentoo commit e32e40f19f2417601c8c881780429aeade00c59f.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-02 07:25:40 +00:00 committed by Krzesimir Nowak
parent 600d9d985c
commit 1b96f6d89f

View File

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: crossdev.eclass
@ -6,19 +6,19 @@
# cat@catcream.org
# @AUTHOR:
# Alfred Persson Forsberg <cat@catcream.org> (21 Jul 2023)
# @SUPPORTED_EAPIS: 7 8
# @SUPPORTED_EAPIS: 7 8 9
# @BLURB: Convenience wrappers for packages used by the Crossdev tool.
inherit toolchain-funcs
case ${EAPI} in
7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_CROSSDEV_ECLASS} ]]; then
_CROSSDEV_ECLASS=1
case ${EAPI} in
7|8|9) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
# @ECLASS_VARIABLE: _CROSS_CATEGORY_PREFIX
# @INTERNAL
# @DESCRIPTION: