From 5aa506a7c234219769779255679833df522a78c6 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 24 Feb 2024 01:49:24 +0100 Subject: [PATCH] ocaml-zarith: skip tests when bytecode only. --- srcpkgs/ocaml-zarith/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/ocaml-zarith/template b/srcpkgs/ocaml-zarith/template index dfef566ae30..613079976ff 100644 --- a/srcpkgs/ocaml-zarith/template +++ b/srcpkgs/ocaml-zarith/template @@ -3,7 +3,6 @@ pkgname=ocaml-zarith version=1.13 revision=1 build_style=configure -make_check_target="tests" hostmakedepends="perl" makedepends="gmp-devel ocaml" depends="gmp-devel" @@ -25,3 +24,7 @@ pre_install() { post_install() { vcopy META usr/lib/ocaml/zarith } +do_check() { + command -v ocamlc.opt >/dev/null || return 0 + make tests +}