mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ml/jsonm: fix install with -ocamlopt
Closes: https://bugs.gentoo.org/951856 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user