From 8d19f1813a7989be1df9f48c67540a49ed5f6069 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 21 Dec 2022 22:21:38 +0100 Subject: [PATCH] ocaml-stdcompat: rebuild for ocaml-5.1.1. --- srcpkgs/ocaml-stdcompat/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/ocaml-stdcompat/template b/srcpkgs/ocaml-stdcompat/template index 7bfcf2576ce..4bdd6cbbfb7 100644 --- a/srcpkgs/ocaml-stdcompat/template +++ b/srcpkgs/ocaml-stdcompat/template @@ -1,7 +1,7 @@ # Template file for 'ocaml-stdcompat' pkgname=ocaml-stdcompat version=19 -revision=1 +revision=2 build_style=gnu-configure configure_args="--libdir=/usr/lib/ocaml" hostmakedepends="automake" @@ -15,6 +15,14 @@ checksum=0ca4067789e720de923e5b3a85c03fd89bdcee2bd836978c53aad8b157350a55 nocross=yes disable_parallel_build=yes +disable_parallel_build=yes + +pre_configure() { + if ! command -v ocamlc.opt >/dev/null; then + sed -i 's/AC_SUBST(\[OCAMLOPT\], \[\["$OCAMLFIND ocamlopt"\]\])//' configure.ac + fi +} + post_install() { vlicense COPYING LICENSE }