mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
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:
+10
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user