openib.eclass: [QA] add EAPI guard

Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Sam James
2021-06-20 23:14:49 +02:00
committed by David Seifert
parent c61a8d7eb3
commit 2d5f094fe6
+10 -1
View File
@@ -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