summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-09 20:42:51 +0000
committerSam James <sam@gentoo.org>2021-03-09 20:43:27 +0000
commita885177a3e3c7bd8379a8b128ed77819a1cd1fa4 (patch)
tree9c61e0a256ca25ea4c8114a256f2fae1820199c9 /dev-ml/num
parentsci-libs/gdal: respect libdir (diff)
downloadgentoo-a885177a3e3c7bd8379a8b128ed77819a1cd1fa4.tar.gz
gentoo-a885177a3e3c7bd8379a8b128ed77819a1cd1fa4.tar.bz2
gentoo-a885177a3e3c7bd8379a8b128ed77819a1cd1fa4.zip
dev-ml/num: fix installation
Thanks-to: Jesús P Rey (Chuso) <gentoo@chuso.net> Closes: https://bugs.gentoo.org/775119 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ml/num')
-rw-r--r--dev-ml/num/num-1.4-r1.ebuild (renamed from dev-ml/num/num-1.4.ebuild)11
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-ml/num/num-1.4.ebuild b/dev-ml/num/num-1.4-r1.ebuild
index babd9330a771..1221bd84c22f 100644
--- a/dev-ml/num/num-1.4.ebuild
+++ b/dev-ml/num/num-1.4-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit dune
+inherit dune findlib
DESCRIPTION="Library for arbitrary-precision integer and rational arithmetic"
HOMEPAGE="https://github.com/ocaml/num"
@@ -13,3 +13,12 @@ LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
IUSE="+ocamlopt"
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ findlib_src_preinst
+ OCAMLPATH="${OCAMLFIND_DESTDIR}" emake install DESTDIR="${D}"
+}