1 |
commit: 2d5f094fe6ea0cf9d58fb0acdd9e8923db2016e8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 21:14:49 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 21:14:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d5f094f |
7 |
|
8 |
openib.eclass: [QA] add EAPI guard |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
eclass/openib.eclass | 11 ++++++++++- |
14 |
1 file changed, 10 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/eclass/openib.eclass b/eclass/openib.eclass |
17 |
index 7810062fae3..8fb0c782ea4 100644 |
18 |
--- a/eclass/openib.eclass |
19 |
+++ b/eclass/openib.eclass |
20 |
@@ -7,11 +7,18 @@ |
21 |
# @AUTHOR: |
22 |
# Author: Alexey Shvetsov <alexxy@g.o> |
23 |
# @BLURB: Simplify working with OFED packages |
24 |
+# @SUPPORTED_EAPIS: 5 6 |
25 |
|
26 |
-inherit eutils rpm versionator |
27 |
+case ${EAPI:-0} in |
28 |
+ [56]) inherit eutils rpm versionator ;; |
29 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
30 |
+esac |
31 |
|
32 |
EXPORT_FUNCTIONS src_unpack |
33 |
|
34 |
+if [[ -z ${_OPENIB_ECLASS} ]] ; then |
35 |
+_OPENIB_ECLASS=1 |
36 |
+ |
37 |
HOMEPAGE="https://www.openfabrics.org/" |
38 |
LICENSE="|| ( GPL-2 BSD-2 )" |
39 |
|
40 |
@@ -146,3 +153,5 @@ openib_src_unpack() { |
41 |
esac |
42 |
fi |
43 |
} |
44 |
+ |
45 |
+fi |