Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 30 Dec 2019 12:59:12
Message-Id: 1577710728.fb4a246a3b49fe829f9106f899de0fd5f33a191d.mgorny@gentoo
1 commit: fb4a246a3b49fe829f9106f899de0fd5f33a191d
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 00:48:32 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 12:58:48 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb4a246a
7
8 python-any-r1.eclass: Constrain to EAPI >= 5
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 eclass/python-any-r1.eclass | 10 ++++------
14 1 file changed, 4 insertions(+), 6 deletions(-)
15
16 diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
17 index 3863ef6fa84..878e337ff3c 100644
18 --- a/eclass/python-any-r1.eclass
19 +++ b/eclass/python-any-r1.eclass
20 @@ -7,7 +7,7 @@
21 # @AUTHOR:
22 # Author: Michał Górny <mgorny@g.o>
23 # Based on work of: Krzysztof Pawlik <nelchael@g.o>
24 -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
25 +# @SUPPORTED_EAPIS: 5 6 7
26 # @BLURB: An eclass for packages having build-time dependency on Python.
27 # @DESCRIPTION:
28 # A minimal eclass for packages which need any Python interpreter
29 @@ -37,11 +37,9 @@
30 # https://wiki.gentoo.org/wiki/Project:Python/python-any-r1
31
32 case "${EAPI:-0}" in
33 - 0|1|2|3|4|5|6|7)
34 - ;;
35 - *)
36 - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
37 - ;;
38 + [0-4]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
39 + [5-7]) ;;
40 + *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
41 esac
42
43 if [[ ! ${_PYTHON_ANY_R1} ]]; then