Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 21 Jun 2021 05:41:23
Message-Id: 1624254057.8b610ae73860af6e842622ab64ed4ebef5fd0ef9.sam@gentoo
1 commit: 8b610ae73860af6e842622ab64ed4ebef5fd0ef9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 21 05:40:57 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 21 05:40:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b610ae7
7
8 findlib.eclass: add EAPI guard
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 eclass/findlib.eclass | 11 +++++++++++
13 1 file changed, 11 insertions(+)
14
15 diff --git a/eclass/findlib.eclass b/eclass/findlib.eclass
16 index d117c0b2bfd..e8b6e73c97a 100644
17 --- a/eclass/findlib.eclass
18 +++ b/eclass/findlib.eclass
19 @@ -6,10 +6,19 @@
20 # ML <ml@g.o>
21 # @AUTHOR:
22 # Original author: Matthieu Sozeau <mattam@g.o> (retired)
23 +# @SUPPORTED_EAPIS: 6 7
24 # @BLURB: ocamlfind (a.k.a. findlib) eclass
25 # @DESCRIPTION:
26 # ocamlfind (a.k.a. findlib) eclass
27
28 +case ${EAPI:-0} in
29 + [67]) ;;
30 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
31 +esac
32 +
33 +if [[ -z ${_FINDLIB_ECLASS} ]] ; then
34 +_FINDLIB_ECLASS=1
35 +
36 # Do not complain about CFLAGS etc since ML projects do not use them.
37 QA_FLAGS_IGNORED='.*'
38
39 @@ -60,3 +69,5 @@ findlib_src_install() {
40 findlib_src_preinst
41 make DESTDIR="${D}" "$@" install || die "make failed"
42 }
43 +
44 +fi