mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
eclass/portability: Sync with Gentoo
It's from Gentoo commit 4d90c2033b85e64c3b6be717a930be84f629f35c.
This commit is contained in:
parent
15c37bd2ea
commit
c8abb5c8df
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user