public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Justin Lecher <jlec@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: wxwidgets@gentoo.org, Justin Lecher <jlec@gentoo.org>
Subject: [gentoo-dev] [PATCH 5/5] wxwidgets.eclass: Add EAPI support
Date: Mon,  1 Feb 2016 12:08:33 +0100	[thread overview]
Message-ID: <1454324913-27584-6-git-send-email-jlec@gentoo.org> (raw)
In-Reply-To: <1454324913-27584-1-git-send-email-jlec@gentoo.org>

Signed-off-by: Justin Lecher <jlec@gentoo.org>
---
 eclass/wxwidgets.eclass | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass
index aaac074..dc6db5a 100644
--- a/eclass/wxwidgets.eclass
+++ b/eclass/wxwidgets.eclass
@@ -60,7 +60,14 @@
 
 if [[ -z ${_WXWIDGETS_ECLASS} ]]; then
 
-inherit eutils flag-o-matic multilib
+case ${EAPI} in
+	0|1|2|3|4|5)
+		inherit eutils flag-o-matic multilib
+		;;
+	*)
+		die "EAPI=${EAPI:-0} is not supported"
+		;;
+esac
 
 # We do this in global scope so ebuilds can get sane defaults just by
 # inheriting.
-- 
2.7.0



  parent reply	other threads:[~2016-02-01 11:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01 11:08 [gentoo-dev] [PATCH 0/5] RFC: Patches for wxwidgets.eclass Justin Lecher
2016-02-01 11:08 ` [gentoo-dev] [PATCH 1/5] wxwidgets.eclass: Update Copyright year Justin Lecher
2016-02-01 11:08 ` [gentoo-dev] [PATCH 2/5] wxwidgets.eclass: Fix whitespaces Justin Lecher
2016-02-01 11:08 ` [gentoo-dev] [PATCH 3/5] wxwidgets.eclass: unset unneeded variables in global scope after usage Justin Lecher
2016-02-01 11:08 ` [gentoo-dev] [PATCH 4/5] wxwidgets.eclass: Only inherit eclass ones Justin Lecher
2016-02-01 23:18   ` [gentoo-dev] " Duncan
2016-02-02 14:13     ` Justin Lecher (jlec)
2016-02-01 11:08 ` Justin Lecher [this message]
2016-02-02 22:36 ` [gentoo-dev] Re: [PATCH 0/5] RFC: Patches for wxwidgets.eclass Ryan Hill
2016-02-03  9:21   ` Justin Lecher (jlec)
2016-02-03 23:15     ` Ryan Hill
2016-02-04  1:07   ` Daniel Campbell
2016-02-04  3:30     ` Ryan Hill

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=1454324913-27584-6-git-send-email-jlec@gentoo.org \
    --to=jlec@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=wxwidgets@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