commit: a44c4f4908a794f93a1f6aa4c6a5a83f8c8cf291 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Sun Mar 23 08:44:50 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Sun Mar 23 08:45:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a44c4f49
dev-ml/jsonm: fix install with -ocamlopt Closes: https://bugs.gentoo.org/951856 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/jsonm/jsonm-1.0.2.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev-ml/jsonm/jsonm-1.0.2.ebuild b/dev-ml/jsonm/jsonm-1.0.2.ebuild index 64e58477661e..1977a59d3e88 100644 --- a/dev-ml/jsonm/jsonm-1.0.2.ebuild +++ b/dev-ml/jsonm/jsonm-1.0.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -29,9 +29,10 @@ src_install() { # Can't use opam-installer here as it is an opam dep... findlib_src_preinst - local nativelibs="$(echo _build/src/${PN}.cm{x,xa,xs,ti} _build/src/${PN}.a)" + local nativelibs="" + use ocamlopt && nativelibs="$(echo _build/src/${PN}.cm{x,xa,xs,ti} _build/src/${PN}.a)" ocamlfind install ${PN} _build/pkg/META _build/src/${PN}.mli _build/src/${PN}.cm{a,i} ${nativelibs} || die - newbin _build/test/jsontrip.native jsontrip + use ocamlopt && newbin _build/test/jsontrip.native jsontrip dodoc CHANGES.md TODO.md README.md }
