summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-07 22:39:15 +0100
committerSam James <sam@gentoo.org>2024-09-08 19:21:28 +0100
commit47d7fb1a65af001085f973704dfeed320111ab6b (patch)
treec28a0fa8f3ed3c4379eed9c86bddf76637830333 /eclass
parentxdg.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff)
downloadgentoo-47d7fb1a65af001085f973704dfeed320111ab6b.tar.gz
gentoo-47d7fb1a65af001085f973704dfeed320111ab6b.tar.bz2
gentoo-47d7fb1a65af001085f973704dfeed320111ab6b.zip
xdg-utils.eclass: add global-scope ewarn for deprecated < EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xdg-utils.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 34535a129e33..84f88eee18fc 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 2004-2023 Gentoo Authors
+# Copyright 2004-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: xdg-utils.eclass
@@ -18,7 +18,11 @@
# * XDG mime information database management
case ${EAPI} in
- 5|6|7|8) ;;
+ 5|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