Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>, Mart Raudsepp <leio@g.o>, David Seifert <soap@g.o>
Subject: [gentoo-dev] [PATCH] wxwidgets.eclass: Support EAPI 8
Date: Sun, 01 Aug 2021 12:36:56
Message-Id: 20210801123623.32738-1-ulm@gentoo.org
1 Reviewed-by: Mart Raudsepp <leio@g.o>
2 Reviewed-by: David Seifert <soap@g.o>
3 Signed-off-by: Ulrich Müller <ulm@g.o>
4 ---
5 eclass/wxwidgets.eclass | 13 +++++++------
6 1 file changed, 7 insertions(+), 6 deletions(-)
7
8 diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass
9 index 4357e7367cc7..28735aaac6fd 100644
10 --- a/eclass/wxwidgets.eclass
11 +++ b/eclass/wxwidgets.eclass
12 @@ -4,7 +4,7 @@
13 # @ECLASS: wxwidgets.eclass
14 # @MAINTAINER:
15 # wxwidgets@g.o
16 -# @SUPPORTED_EAPIS: 7
17 +# @SUPPORTED_EAPIS: 7 8
18 # @BLURB: Manages build configuration for wxGTK-using packages.
19 # @DESCRIPTION:
20 # This eclass sets up the proper environment for ebuilds using the wxGTK
21 @@ -21,10 +21,9 @@
22 # The configuration chosen is based on the version required and the flags
23 # wxGTK was built with.
24
25 -case ${EAPI:-0} in
26 - [0-6]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
27 - 7) ;;
28 - *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
29 +case ${EAPI} in
30 + 7|8) ;;
31 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
32 esac
33
34 if [[ -z ${_WXWIDGETS_ECLASS} ]]; then
35 @@ -37,7 +36,9 @@ _WXWIDGETS_ECLASS=1
36 # The SLOT of the x11-libs/wxGTK you're targeting. Needs to be defined before
37 # inheriting the eclass. Can be either "3.0" or "3.0-gtk3".
38 case ${WX_GTK_VER} in
39 - 3.0|3.0-gtk3) ;;
40 + 3.0-gtk3) ;;
41 + 3.0) [[ ${EAPI} == 7 ]] \
42 + || die "GTK 2 no longer supported in EAPI ${EAPI}" ;;
43 "") die "WX_GTK_VER not declared" ;;
44 *) die "Invalid WX_GTK_VER: must be set to a valid wxGTK SLOT ('3.0' or '3.0-gtk3')" ;;
45 esac
46 --
47 2.32.0

Replies