commit:     60f30e1ae6f8aa1d3dc75424acb4a030679b22fb
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  1 08:31:14 2022 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Oct 20 06:26:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60f30e1a

desktop.eclass: Add EAPI guard

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 eclass/desktop.eclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eclass/desktop.eclass b/eclass/desktop.eclass
index 01de8b61ae1c..aa1b9ac68d85 100644
--- a/eclass/desktop.eclass
+++ b/eclass/desktop.eclass
@@ -4,8 +4,14 @@
 # @ECLASS: desktop.eclass
 # @MAINTAINER:
 # [email protected]
+# @SUPPORTED_EAPIS: 6 7 8
 # @BLURB: support for desktop files, menus, and icons
 
+case ${EAPI} in
+       6|7|8) ;;
+       *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
 if [[ -z ${_DESKTOP_ECLASS} ]]; then
 _DESKTOP_ECLASS=1
 

Reply via email to