# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: EAPI="4" inherit findlib eutils multilib DESCRIPTION="Arithmetic and logic operations over arbitrary-precision integers" HOMEPAGE="https://forge.ocamlcore.org/projects/zarith/" SRC_URI="http://forge.ocamlcore.org/frs/download.php/683/${P}.tgz" LICENSE="LGPL-2.1-linking-exception" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug doc mpir" RDEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt] !mpir? ( dev-libs/gmp ) mpir? ( sci-libs/mpir )" DEPEND="${DEPEND} dev-lang/perl" src_configure() { MY_OPTS="-ocamllibdir /usr/$(get_libdir) -installdir ${D}" use mpir && MY_OPTS="${MY_OPTS} -mpir" ./configure ${MY_OPTS}|| die } src_compile() { emake use doc && emake doc } src_test() { ./test || die } src_install() { findlib_src_install dodoc README use doc && dodoc -r html/ }