commit:     0b9dcc61d14a0aa108673128ceaaea616f2d8d61
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 30 06:34:26 2021 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep 30 06:34:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b9dcc61

dev-ml/labltk: fix build with ocaml-4.12

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/labltk/labltk-8.06.10.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-ml/labltk/labltk-8.06.10.ebuild 
b/dev-ml/labltk/labltk-8.06.10.ebuild
index 6acd06b500f..3390c7d7b98 100644
--- a/dev-ml/labltk/labltk-8.06.10.ebuild
+++ b/dev-ml/labltk/labltk-8.06.10.ebuild
@@ -22,9 +22,14 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}/findlib.patch"
-       "${FILESDIR}"/${P}-this-expression-has-type.patch
 )
 
+src_prepare() {
+       has_version "dev-lang/ocaml:0/4.11" && \
+               eapply "${FILESDIR}"/${P}-this-expression-has-type.patch
+       default
+}
+
 src_configure() {
        ./configure --use-findlib --verbose $(usex X "--tk-x11" "--tk-no-x11") 
|| die "configure failed!"
 }

Reply via email to