eclass/portability: Sync with Gentoo

It's from Gentoo commit 4d90c2033b85e64c3b6be717a930be84f629f35c.
This commit is contained in:
Flatcar Buildbot 2024-09-16 07:14:05 +00:00 committed by Krzesimir Nowak
parent 15c37bd2ea
commit c8abb5c8df

View File

@ -9,14 +9,18 @@
# @SUPPORTED_EAPIS: 6 7 8 # @SUPPORTED_EAPIS: 6 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
case ${EAPI} in
6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_PORTABILITY_ECLASS} ]]; then if [[ -z ${_PORTABILITY_ECLASS} ]]; then
_PORTABILITY_ECLASS=1 _PORTABILITY_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
# @FUNCTION: treecopy # @FUNCTION: treecopy
# @USAGE: <orig1> [orig2 orig3 ....] <dest> # @USAGE: <orig1> [orig2 orig3 ....] <dest>
# @DESCRIPTION: # @DESCRIPTION: