summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/openib.eclass')
-rw-r--r--eclass/openib.eclass11
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