diff --git a/dev-ml/jsonm/jsonm-1.0.2.ebuild b/dev-ml/jsonm/jsonm-1.0.2.ebuild index 64e58477661ee..1977a59d3e884 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 }