summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2023-03-17 23:04:14 +0100
committerDavid Seifert <soap@gentoo.org>2023-03-17 23:04:14 +0100
commit17a03dc319817453d58ea7f2e909e8b522c6659d (patch)
treeadc790da3d91137a11f7e932b45446ddf1650475 /eclass/findlib.eclass
parenteapi8-dosym.eclass: remove EAPI 5, 6 (diff)
downloadgentoo-17a03dc319817453d58ea7f2e909e8b522c6659d.tar.gz
gentoo-17a03dc319817453d58ea7f2e909e8b522c6659d.tar.bz2
gentoo-17a03dc319817453d58ea7f2e909e8b522c6659d.zip
findlib.eclass: remove EAPI 6
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/findlib.eclass')
-rw-r--r--eclass/findlib.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/findlib.eclass b/eclass/findlib.eclass
index 52e3655b3e84..fdcaa0c1b77c 100644
--- a/eclass/findlib.eclass
+++ b/eclass/findlib.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: findlib.eclass
@@ -6,13 +6,13 @@
# ML <ml@gentoo.org>
# @AUTHOR:
# Original author: Matthieu Sozeau <mattam@gentoo.org> (retired)
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 7 8
# @BLURB: ocamlfind (a.k.a. findlib) eclass
# @DESCRIPTION:
# ocamlfind (a.k.a. findlib) eclass
-case ${EAPI:-0} in
- [678]) ;;
+case ${EAPI} in
+ 7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
@@ -35,7 +35,7 @@ RDEPEND="dev-lang/ocaml:=[ocamlopt?]"
# @DESCRIPTION:
# Die if ocamlfind is not found
check_ocamlfind() {
- if [ ! -x "${EPREFIX}"/usr/bin/ocamlfind ] ; then
+ if [[ ! -x ${EPREFIX}/usr/bin/ocamlfind ]] ; then
eerror "In ${ECLASS}: could not find the ocamlfind executable"
eerror "Please report this bug on Gentoo's Bugzilla, assigning to ml@gentoo.org"
die "ocamlfind executable not found"
@@ -51,16 +51,16 @@ findlib_src_preinst() {
check_ocamlfind
# destdir is the ocaml sitelib
- local destdir=`ocamlfind printconf destdir`
+ local destdir=$(ocamlfind printconf destdir)
# strip off prefix
destdir=${destdir#${EPREFIX}}
- dodir ${destdir} || die "dodir failed"
+ dodir "${destdir}"
export OCAMLFIND_DESTDIR=${ED}${destdir}
# stublibs style
- dodir ${destdir}/stublibs || die "dodir failed"
+ dodir "${destdir}"/stublibs
export OCAMLFIND_LDCONF=ignore
}