summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:14:46 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:14:46 +0200
commitc61a8d7eb3e345ec685eb9b2f08cca6a83bd819b (patch)
tree7cd9913887d163753b6fc25fde294d0f72554af5 /eclass/multiprocessing.eclass
parentmultilib.eclass: [QA] add EAPI guard (diff)
downloadgentoo-c61a8d7eb3e345ec685eb9b2f08cca6a83bd819b.tar.gz
gentoo-c61a8d7eb3e345ec685eb9b2f08cca6a83bd819b.tar.bz2
gentoo-c61a8d7eb3e345ec685eb9b2f08cca6a83bd819b.zip
multiprocessing.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/multiprocessing.eclass')
-rw-r--r--eclass/multiprocessing.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/multiprocessing.eclass b/eclass/multiprocessing.eclass
index 3e8b2f9d2540..8363fa33bd12 100644
--- a/eclass/multiprocessing.eclass
+++ b/eclass/multiprocessing.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: multiprocessing.eclass
@@ -8,6 +8,7 @@
# Brian Harring <ferringb@gentoo.org>
# Mike Frysinger <vapier@gentoo.org>
# @BLURB: multiprocessing helper functions
+# @SUPPORTED_EAPIS: 5 6 7 8
# @DESCRIPTION:
# The multiprocessing eclass contains a suite of utility functions
# that could be helpful to controlling parallel multiple job execution.
@@ -23,6 +24,11 @@
# }
# @CODE
+case ${EAPI:-0} in
+ [5678]) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
if [[ -z ${_MULTIPROCESSING_ECLASS} ]]; then
_MULTIPROCESSING_ECLASS=1