commit: 621e8c678667a09e33566e23ef25332bca6b17d2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Mon Jan 24 18:49:45 2022 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Mon Jan 24 18:49:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=621e8c67
dev-ml/ocaml-process: fix build without ocamlopt Closes: https://bugs.gentoo.org/829086 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/ocaml-process/ocaml-process-0.2.1.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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..de33c2c8fc59 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 }
