Skip to content

Commit

Permalink
dev-ml/num: fix installation
Browse files Browse the repository at this point in the history
Thanks-to: Jesús P Rey (Chuso) <[email protected]>
Closes: https://bugs.gentoo.org/775119
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Mar 9, 2021
1 parent a2df5bc commit a885177
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dev-ml/num/num-1.4.ebuild → dev-ml/num/num-1.4-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}"
}

0 comments on commit a885177

Please sign in to comment.