commit: 2d5f094fe6ea0cf9d58fb0acdd9e8923db2016e8 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jun 20 21:14:49 2021 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sun Jun 20 21:14:49 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d5f094f
openib.eclass: [QA] add EAPI guard Signed-off-by: Sam James <sam <AT> gentoo.org> Signed-off-by: David Seifert <soap <AT> gentoo.org> eclass/openib.eclass | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eclass/openib.eclass b/eclass/openib.eclass index 7810062fae3..8fb0c782ea4 100644 --- a/eclass/openib.eclass +++ b/eclass/openib.eclass @@ -7,11 +7,18 @@ # @AUTHOR: # Author: Alexey Shvetsov <ale...@gentoo.org> # @BLURB: Simplify working with OFED packages +# @SUPPORTED_EAPIS: 5 6 -inherit eutils rpm versionator +case ${EAPI:-0} in + [56]) inherit eutils rpm versionator ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac EXPORT_FUNCTIONS src_unpack +if [[ -z ${_OPENIB_ECLASS} ]] ; then +_OPENIB_ECLASS=1 + HOMEPAGE="https://www.openfabrics.org/" LICENSE="|| ( GPL-2 BSD-2 )" @@ -146,3 +153,5 @@ openib_src_unpack() { esac fi } + +fi