Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ocaml-process/
Date: Mon, 24 Jan 2022 18:50:07
Message-Id: 1643050185.621e8c678667a09e33566e23ef25332bca6b17d2.tupone@gentoo
1 commit: 621e8c678667a09e33566e23ef25332bca6b17d2
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 24 18:49:45 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 24 18:49:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=621e8c67
7
8 dev-ml/ocaml-process: fix build without ocamlopt
9
10 Closes: https://bugs.gentoo.org/829086
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
13
14 dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild | 15 ++++++++++++---
15 1 file changed, 12 insertions(+), 3 deletions(-)
16
17 diff --git a/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild b/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild
18 index 66969b86741b..de33c2c8fc59 100644
19 --- a/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild
20 +++ b/dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 +# Copyright 1999-2022 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27 @@ -20,10 +20,19 @@ BDEPEND="
28 test? ( dev-ml/alcotest )
29 "
30
31 +src_compile() {
32 + exts=.cma
33 + use ocamlopt && exts+=' .cmx .cmxa'
34 + export pkgs
35 + emake TARGETS=${exts}
36 +}
37 +
38 src_install() {
39 - findlib_src_install
40 + local archive=''
41 + use ocamlopt && archive='_build/lib/process.a'
42 + findlib_src_install TARGETS=${exts} ARCHIVES=${archives}
43 }
44
45 src_test() {
46 - emake -j1 test
47 + emake -j1 TARGETS=${exts} test
48 }