diff --git a/sdk_container/src/third_party/portage-stable/eclass/optfeature.eclass b/sdk_container/src/third_party/portage-stable/eclass/optfeature.eclass index 250a995901..b44fc1b852 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/optfeature.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/optfeature.eclass @@ -1,23 +1,21 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -# Flatcar: Support EAPI 0, 4 and 5. - # @ECLASS: optfeature.eclass # @MAINTAINER: # base-system@gentoo.org -# @SUPPORTED_EAPIS: 0 4 5 6 7 8 +# @SUPPORTED_EAPIS: 7 8 # @BLURB: Advertise optional functionality that might be useful to users -case ${EAPI:-0} in - 0|4|5|6|7|8) ;; +case ${EAPI} in + 7|8) ;; *) die "${ECLASS}: EAPI=${EAPI:-0} is not supported" ;; esac if [[ -z ${_OPTFEATURE_ECLASS} ]]; then _OPTFEATURE_ECLASS=1 -# @ECLASS-VARIABLE: _OPTFEATURE_DEFAULT_HEADER +# @ECLASS_VARIABLE: _OPTFEATURE_DEFAULT_HEADER # @INTERNAL # @DESCRIPTION: # Default header printed ahead of optfeature output. Can be overridden @@ -27,7 +25,7 @@ _OPTFEATURE_DEFAULT_HEADER="Install additional packages for optional runtime fea readonly _OPTFEATURE_DEFAULT_HEADER -# @ECLASS-VARIABLE: _OPTFEATURE_HEADER +# @ECLASS_VARIABLE: _OPTFEATURE_HEADER # @INTERNAL # @DESCRIPTION: # Default empty. Custom header printed ahead of optfeature output. @@ -36,7 +34,7 @@ readonly _OPTFEATURE_DEFAULT_HEADER # dependencies are present. _OPTFEATURE_HEADER= -# @ECLASS-VARIABLE: _OPTFEATURE_DOHEADER +# @ECLASS_VARIABLE: _OPTFEATURE_DOHEADER # @INTERNAL # @DESCRIPTION: # If true, print header ahead of the first optfeature output.