eclass/multiprocessing: Sync with gentoo

It's from gentoo commit dbc4faf304995e2f20c4d98f714bb8cfde76a329.
This commit is contained in:
Krzesimir Nowak 2021-12-21 09:32:55 +01:00
parent 6229813ce8
commit ab2a0d9f2a

View File

@ -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 # Distributed under the terms of the GNU General Public License v2
# @ECLASS: multiprocessing.eclass # @ECLASS: multiprocessing.eclass
@ -7,6 +7,7 @@
# @AUTHOR: # @AUTHOR:
# Brian Harring <ferringb@gentoo.org> # Brian Harring <ferringb@gentoo.org>
# Mike Frysinger <vapier@gentoo.org> # Mike Frysinger <vapier@gentoo.org>
# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: multiprocessing helper functions # @BLURB: multiprocessing helper functions
# @DESCRIPTION: # @DESCRIPTION:
# The multiprocessing eclass contains a suite of utility functions # The multiprocessing eclass contains a suite of utility functions
@ -23,6 +24,11 @@
# } # }
# @CODE # @CODE
case ${EAPI:-0} in
[5678]) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_MULTIPROCESSING_ECLASS} ]]; then if [[ -z ${_MULTIPROCESSING_ECLASS} ]]; then
_MULTIPROCESSING_ECLASS=1 _MULTIPROCESSING_ECLASS=1