From fcc5224904648a8e6eb528d7603154160a20022f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 2 Feb 2022 01:39:05 +0000 Subject: gentoo resync : 02.02.2022 --- dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild') diff --git a/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild b/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild index 66969b86741b..2979a23b9a6f 100644 --- a/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild +++ b/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -20,10 +20,19 @@ BDEPEND=" test? ( dev-ml/alcotest ) " +src_compile() { + exts=.cma + use ocamlopt && exts+=' .cmx .cmxa' + export pkgs + emake TARGETS="${exts}" +} + src_install() { - findlib_src_install + local archive='' + use ocamlopt && archive='_build/lib/process.a' + findlib_src_install TARGETS="${exts}" ARCHIVES=${archives} } src_test() { - emake -j1 test + emake -j1 TARGETS=${exts} test } -- cgit v1.2.3