diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2022-07-01 08:47:16 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2022-07-01 08:47:16 +0200 |
commit | b1be4a4487d92cdabd348712f5bb9d102b512c92 (patch) | |
tree | 4adef6feb56e5dc2d3eab4a55c79132320e2b071 /eclass/findlib.eclass | |
parent | dev-lang/spidermonkey: Stabilize 91.11.0 ppc64, #855137 (diff) | |
download | gentoo-b1be4a4487d92cdabd348712f5bb9d102b512c92.tar.gz gentoo-b1be4a4487d92cdabd348712f5bb9d102b512c92.tar.bz2 gentoo-b1be4a4487d92cdabd348712f5bb9d102b512c92.zip |
findlib.eclass: add ocamlopt? use dep to findlib
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'eclass/findlib.eclass')
-rw-r--r-- | eclass/findlib.eclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/findlib.eclass b/eclass/findlib.eclass index 0e14514e298f..dae19d91c37d 100644 --- a/eclass/findlib.eclass +++ b/eclass/findlib.eclass @@ -6,13 +6,13 @@ # ML <ml@gentoo.org> # @AUTHOR: # Original author: Matthieu Sozeau <mattam@gentoo.org> (retired) -# @SUPPORTED_EAPIS: 6 7 +# @SUPPORTED_EAPIS: 6 7 8 # @BLURB: ocamlfind (a.k.a. findlib) eclass # @DESCRIPTION: # ocamlfind (a.k.a. findlib) eclass case ${EAPI:-0} in - [67]) ;; + [678]) ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac @@ -26,11 +26,14 @@ QA_FLAGS_IGNORED='.*' IUSE="+ocamlopt" # From this findlib version, there is proper stublibs support. -DEPEND=">=dev-ml/findlib-1.0.4-r1" +DEPEND=">=dev-ml/findlib-1.0.4-r1[ocamlopt?]" [[ ${FINDLIB_USE} ]] && DEPEND="${FINDLIB_USE}? ( ${DEPEND} )" RDEPEND="dev-lang/ocaml:=[ocamlopt?]" [[ ${FINDLIB_USE} ]] && RDEPEND="${FINDLIB_USE}? ( ${RDEPEND} )" +# @FUNCTION: check_ocamlfind +# @DESCRIPTION: +# Die if ocamlfind is not found check_ocamlfind() { if [ ! -x "${EPREFIX}"/usr/bin/ocamlfind ] ; then eerror "In ${ECLASS}: could not find the ocamlfind executable" |