From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Ulrich Müller" <ulm@gentoo.org>
Subject: [gentoo-dev] [PATCH 2/2] desktop.eclass: Add EAPI guard
Date: Sat, 1 Oct 2022 10:39:18 +0200 [thread overview]
Message-ID: <20221001083918.30129-3-ulm@gentoo.org> (raw)
In-Reply-To: <20221001083918.30129-1-ulm@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@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:
# base-system@gentoo.org
+# @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
--
2.37.3
prev parent reply other threads:[~2022-10-01 8:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-01 8:39 [gentoo-dev] [PATCH 0/2] desktop.eclass: Install files as foo.desktop rather than foo-foo.desktop Ulrich Müller
2022-10-01 8:39 ` [gentoo-dev] [PATCH 1/2] " Ulrich Müller
2022-10-01 8:39 ` Ulrich Müller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221001083918.30129-3-ulm@gentoo.org \
--to=ulm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox