diff options
author | Sam James <sam@gentoo.org> | 2021-06-20 23:14:49 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-20 23:14:49 +0200 |
commit | 2d5f094fe6ea0cf9d58fb0acdd9e8923db2016e8 (patch) | |
tree | 9f02bbd525c0430672d4108ec45a9e33f4135b05 /eclass/openib.eclass | |
parent | multiprocessing.eclass: [QA] add EAPI guard (diff) | |
download | gentoo-2d5f094fe6ea0cf9d58fb0acdd9e8923db2016e8.tar.gz gentoo-2d5f094fe6ea0cf9d58fb0acdd9e8923db2016e8.tar.bz2 gentoo-2d5f094fe6ea0cf9d58fb0acdd9e8923db2016e8.zip |
openib.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/openib.eclass')
-rw-r--r-- | eclass/openib.eclass | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass index 7810062fae36..8fb0c782ea44 100644 --- a/eclass/openib.eclass +++ b/eclass/openib.eclass @@ -7,11 +7,18 @@ # @AUTHOR: # Author: Alexey Shvetsov <alexxy@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 |