python-any-r1.eclass: Constrain to EAPI >= 5
authorDavid Seifert <soap@gentoo.org>
Mon, 30 Dec 2019 00:48:32 +0000 (01:48 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 30 Dec 2019 12:58:48 +0000 (13:58 +0100)
Signed-off-by: David Seifert <soap@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/python-any-r1.eclass

index 3863ef6fa8495eb8fab47031e457723fbb1f0bec..878e337ff3c27a1d680314be311abf36071491cf 100644 (file)
@@ -7,7 +7,7 @@
 # @AUTHOR:
 # Author: Michał Górny <mgorny@gentoo.org>
 # Based on work of: Krzysztof Pawlik <nelchael@gentoo.org>
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
+# @SUPPORTED_EAPIS: 5 6 7
 # @BLURB: An eclass for packages having build-time dependency on Python.
 # @DESCRIPTION:
 # A minimal eclass for packages which need any Python interpreter
 # https://wiki.gentoo.org/wiki/Project:Python/python-any-r1
 
 case "${EAPI:-0}" in
-       0|1|2|3|4|5|6|7)
-               ;;
-       *)
-               die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
-               ;;
+       [0-4]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
+       [5-7]) ;;
+       *)     die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
 esac
 
 if [[ ! ${_PYTHON_ANY_R1} ]]; then