mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
eclass/xdg: Sync with Gentoo
It's from Gentoo commit 7c49ad54814c04d0c96195c6ff4ad467d4ea2d4f.
This commit is contained in:
parent
f2cfb011a9
commit
cb35673925
@ -6,7 +6,7 @@
|
|||||||
# freedesktop-bugs@gentoo.org
|
# freedesktop-bugs@gentoo.org
|
||||||
# @AUTHOR:
|
# @AUTHOR:
|
||||||
# Original author: Gilles Dartiguelongue <eva@gentoo.org>
|
# Original author: Gilles Dartiguelongue <eva@gentoo.org>
|
||||||
# @SUPPORTED_EAPIS: 6 7 8
|
# @SUPPORTED_EAPIS: 7 8
|
||||||
# @PROVIDES: xdg-utils
|
# @PROVIDES: xdg-utils
|
||||||
# @BLURB: Provides phases for XDG compliant packages.
|
# @BLURB: Provides phases for XDG compliant packages.
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
@ -17,10 +17,6 @@ if [[ -z ${_XDG_ECLASS} ]]; then
|
|||||||
_XDG_ECLASS=1
|
_XDG_ECLASS=1
|
||||||
|
|
||||||
case ${EAPI} in
|
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) ;;
|
7|8) ;;
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
@ -34,7 +30,7 @@ inherit xdg-utils
|
|||||||
"
|
"
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
6|7)
|
7)
|
||||||
# src_prepare is only exported in EAPI < 8.
|
# src_prepare is only exported in EAPI < 8.
|
||||||
# @FUNCTION: xdg_src_prepare
|
# @FUNCTION: xdg_src_prepare
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
|
Loading…
Reference in New Issue
Block a user