summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-09-30 08:34:26 +0200
committerAlfredo Tupone <tupone@gentoo.org>2021-09-30 08:34:26 +0200
commit0b9dcc61d14a0aa108673128ceaaea616f2d8d61 (patch)
tree2a567bf6a97fb7eff15df83b2ea1282deeff3967 /dev-ml
parentdev-python/jsonschema: Bump to 4.0.0 (diff)
downloadgentoo-0b9dcc61d14a0aa108673128ceaaea616f2d8d61.tar.gz
gentoo-0b9dcc61d14a0aa108673128ceaaea616f2d8d61.tar.bz2
gentoo-0b9dcc61d14a0aa108673128ceaaea616f2d8d61.zip
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@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/labltk/labltk-8.06.10.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-ml/labltk/labltk-8.06.10.ebuild b/dev-ml/labltk/labltk-8.06.10.ebuild
index 6acd06b500f4..3390c7d7b988 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!"
}