summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-19 23:07:27 +0100
committerSam James <sam@gentoo.org>2021-06-19 23:10:41 +0100
commit94105a4ed58bb5977ccbbcbe1084f04e3218e08a (patch)
treefb47f52ae428ec680f118f3392ef1545f48fdb4e /eclass
parentsys-fs/mtools: Bump to version 4.0.31 (diff)
downloadgentoo-94105a4ed58bb5977ccbbcbe1084f04e3218e08a.tar.gz
gentoo-94105a4ed58bb5977ccbbcbe1084f04e3218e08a.tar.bz2
gentoo-94105a4ed58bb5977ccbbcbe1084f04e3218e08a.zip
findlib.eclass: define IUSE="ocamlopt"
Fixes failures such as: ``` dev-ml/camlbz2-0.7.0::gentoo (masked by: invalid: RDEPEND: USE flag 'ocamlopt' referenced in conditional 'ocamlopt?' in atom 'dev-lang/ocaml:=[ocamlopt?]' is not in IUSE) ``` in findlib.eclass consumers lacking IUSE="ocamlopt". Fixes: f498bcbd7c3fd328bd5f66f3286521b6db926f5e Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/findlib.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/findlib.eclass b/eclass/findlib.eclass
index 9c19ca96dda1..fd5442b99d59 100644
--- a/eclass/findlib.eclass
+++ b/eclass/findlib.eclass
@@ -1,5 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
+# Copyright 1999-2021 Gentoo Author# Distributed under the terms of the GNU General Public License v2
# @ECLASS: findlib.eclass
# @MAINTAINER:
@@ -13,6 +12,9 @@
# Do not complain about CFLAGS etc since ML projects do not use them.
QA_FLAGS_IGNORED='.*'
+# Required to use the ocamlopt? dep in RDEPEND below
+IUSE="ocamlopt"
+
# From this findlib version, there is proper stublibs support.
DEPEND=">=dev-ml/findlib-1.0.4-r1"
[[ ${FINDLIB_USE} ]] && DEPEND="${FINDLIB_USE}? ( ${DEPEND} )"