summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2021-08-09 20:23:13 +0200
committerFlorian Schmaus <flow@gentoo.org>2021-08-18 12:39:59 +0200
commitb7271ac38cdd057201c52cc48810f60d72779933 (patch)
tree01b8d0927fc5d6288afb18d548ec03b3200cc10f /eclass
parentxdg.eclass: add EAPI 8 support (diff)
downloadgentoo-b7271ac38cdd057201c52cc48810f60d72779933.tar.gz
gentoo-b7271ac38cdd057201c52cc48810f60d72779933.tar.bz2
gentoo-b7271ac38cdd057201c52cc48810f60d72779933.zip
xdg.eclass: drop support for EAPI 4
Thanks to Andreas Sturmlechner for providing feedback. Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xdg.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/xdg.eclass b/eclass/xdg.eclass
index d973a09c29d9..08dc8432a5e0 100644
--- a/eclass/xdg.eclass
+++ b/eclass/xdg.eclass
@@ -6,7 +6,7 @@
# freedesktop-bugs@gentoo.org
# @AUTHOR:
# Original author: Gilles Dartiguelongue <eva@gentoo.org>
-# @SUPPORTED_EAPIS: 4 5 6 7 8
+# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: Provides phases for XDG compliant packages.
# @DESCRIPTION:
# Utility eclass to update the desktop, icon and shared mime info as laid
@@ -16,7 +16,7 @@ inherit xdg-utils
_DEFINE_XDG_SRC_PREPARE=false
case "${EAPI}" in
- 4|5|6|7)
+ 5|6|7)
# src_prepare is only exported in EAPI < 8.
EXPORT_FUNCTIONS src_prepare
_DEFINE_XDG_SRC_PREPARE=true
@@ -35,7 +35,7 @@ _XDG_DEPEND="
"
case "${EAPI}" in
- 4|5|6|7)
+ 5|6|7)
DEPEND="${_XDG_DEPEND}"
;;
*)
@@ -52,7 +52,7 @@ if ${_DEFINE_XDG_SRC_PREPARE}; then
xdg_src_prepare() {
xdg_environment_reset
- [[ ${EAPI:-0} != [45] ]] && default
+ [[ ${EAPI} != 5 ]] && default
}
fi