Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: David Seifert <soap@g.o>
Subject: [gentoo-dev] [PATCH 06/22] findlib.eclass: remove EAPI 6
Date: Tue, 14 Mar 2023 20:00:25
Message-Id: 20230314195826.35239-6-soap@gentoo.org
In Reply to: [gentoo-dev] [PATCH 01/22] apache-module.eclass: remove EAPI 5 by David Seifert
1 Signed-off-by: David Seifert <soap@g.o>
2 ---
3 eclass/findlib.eclass | 16 ++++++++--------
4 1 file changed, 8 insertions(+), 8 deletions(-)
5
6 diff --git a/eclass/findlib.eclass b/eclass/findlib.eclass
7 index 52e3655b3e84..fdcaa0c1b77c 100644
8 --- a/eclass/findlib.eclass
9 +++ b/eclass/findlib.eclass
10 @@ -1,4 +1,4 @@
11 -# Copyright 1999-2022 Gentoo Authors
12 +# Copyright 1999-2023 Gentoo Authors
13 # Distributed under the terms of the GNU General Public License v2
14
15 # @ECLASS: findlib.eclass
16 @@ -6,13 +6,13 @@
17 # ML <ml@g.o>
18 # @AUTHOR:
19 # Original author: Matthieu Sozeau <mattam@g.o> (retired)
20 -# @SUPPORTED_EAPIS: 6 7 8
21 +# @SUPPORTED_EAPIS: 7 8
22 # @BLURB: ocamlfind (a.k.a. findlib) eclass
23 # @DESCRIPTION:
24 # ocamlfind (a.k.a. findlib) eclass
25
26 -case ${EAPI:-0} in
27 - [678]) ;;
28 +case ${EAPI} in
29 + 7|8) ;;
30 *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
31 esac
32
33 @@ -35,7 +35,7 @@ RDEPEND="dev-lang/ocaml:=[ocamlopt?]"
34 # @DESCRIPTION:
35 # Die if ocamlfind is not found
36 check_ocamlfind() {
37 - if [ ! -x "${EPREFIX}"/usr/bin/ocamlfind ] ; then
38 + if [[ ! -x ${EPREFIX}/usr/bin/ocamlfind ]] ; then
39 eerror "In ${ECLASS}: could not find the ocamlfind executable"
40 eerror "Please report this bug on Gentoo's Bugzilla, assigning to ml@g.o"
41 die "ocamlfind executable not found"
42 @@ -51,16 +51,16 @@ findlib_src_preinst() {
43 check_ocamlfind
44
45 # destdir is the ocaml sitelib
46 - local destdir=`ocamlfind printconf destdir`
47 + local destdir=$(ocamlfind printconf destdir)
48
49 # strip off prefix
50 destdir=${destdir#${EPREFIX}}
51
52 - dodir ${destdir} || die "dodir failed"
53 + dodir "${destdir}"
54 export OCAMLFIND_DESTDIR=${ED}${destdir}
55
56 # stublibs style
57 - dodir ${destdir}/stublibs || die "dodir failed"
58 + dodir "${destdir}"/stublibs
59 export OCAMLFIND_LDCONF=ignore
60 }
61
62 --
63 2.40.0