1 |
commit: 0b9dcc61d14a0aa108673128ceaaea616f2d8d61 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 30 06:34:26 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 30 06:34:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b9dcc61 |
7 |
|
8 |
dev-ml/labltk: fix build with ocaml-4.12 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-ml/labltk/labltk-8.06.10.ebuild | 7 ++++++- |
14 |
1 file changed, 6 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-ml/labltk/labltk-8.06.10.ebuild b/dev-ml/labltk/labltk-8.06.10.ebuild |
17 |
index 6acd06b500f..3390c7d7b98 100644 |
18 |
--- a/dev-ml/labltk/labltk-8.06.10.ebuild |
19 |
+++ b/dev-ml/labltk/labltk-8.06.10.ebuild |
20 |
@@ -22,9 +22,14 @@ DEPEND="${RDEPEND} |
21 |
|
22 |
PATCHES=( |
23 |
"${FILESDIR}/findlib.patch" |
24 |
- "${FILESDIR}"/${P}-this-expression-has-type.patch |
25 |
) |
26 |
|
27 |
+src_prepare() { |
28 |
+ has_version "dev-lang/ocaml:0/4.11" && \ |
29 |
+ eapply "${FILESDIR}"/${P}-this-expression-has-type.patch |
30 |
+ default |
31 |
+} |
32 |
+ |
33 |
src_configure() { |
34 |
./configure --use-findlib --verbose $(usex X "--tk-x11" "--tk-no-x11") || die "configure failed!" |
35 |
} |