summaryrefslogtreecommitdiff
path: root/dev-ml/jsonm/jsonm-1.0.2.ebuild
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2025-03-23 09:44:50 +0100
committerAlfredo Tupone <tupone@gentoo.org>2025-03-23 09:45:26 +0100
commita44c4f4908a794f93a1f6aa4c6a5a83f8c8cf291 (patch)
tree190efe290c097b3bd7018651db2b59a5f6e82ce5 /dev-ml/jsonm/jsonm-1.0.2.ebuild
parent93d92a254724630b37c88b374a808a987adefd35 (diff)
downloadgentoo-a44c4f4908a794f93a1f6aa4c6a5a83f8c8cf291.tar.gz
gentoo-a44c4f4908a794f93a1f6aa4c6a5a83f8c8cf291.tar.bz2
gentoo-a44c4f4908a794f93a1f6aa4c6a5a83f8c8cf291.zip
dev-ml/jsonm: fix install with -ocamlopt
Closes: https://bugs.gentoo.org/951856 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/jsonm/jsonm-1.0.2.ebuild')
-rw-r--r--dev-ml/jsonm/jsonm-1.0.2.ebuild7
1 files 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
}