aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan-Christofer Demay <jcdemay@gmail.com>2013-01-14 15:05:04 +0100
committerJonathan-Christofer Demay <jcdemay@gmail.com>2013-01-14 15:05:04 +0100
commit5654739daa2e92b974e3a1f5680dee5ddfc18c52 (patch)
tree5a52ef8b2e39fbeca14b069801620d5f5e7b9577 /dev-ml/zarith/zarith-1.1.ebuild
parentdev-ml/ocamlgraph: version bump (diff)
downloadsci-5654739daa2e92b974e3a1f5680dee5ddfc18c52.tar.gz
sci-5654739daa2e92b974e3a1f5680dee5ddfc18c52.tar.bz2
sci-5654739daa2e92b974e3a1f5680dee5ddfc18c52.zip
dev-ml/zarith: initial commit
Diffstat (limited to 'dev-ml/zarith/zarith-1.1.ebuild')
-rw-r--r--dev-ml/zarith/zarith-1.1.ebuild54
1 files changed, 22 insertions, 32 deletions
diff --git a/dev-ml/zarith/zarith-1.1.ebuild b/dev-ml/zarith/zarith-1.1.ebuild
index 7afe5723b..795378fb7 100644
--- a/dev-ml/zarith/zarith-1.1.ebuild
+++ b/dev-ml/zarith/zarith-1.1.ebuild
@@ -1,50 +1,40 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="4"
+EAPI=4
-inherit findlib multilib
-
-DESCRIPTION="Arithmetic and logic operations over arbitrary-precision integers"
-HOMEPAGE="https://forge.ocamlcore.org/projects/zarith/"
+DESCRIPTION="The Zarith library implements arithmetic and logical operations over arbitrary-precision integers"
+HOMEPAGE="http://forge.ocamlcore.org/projects/zarith"
SRC_URI="http://forge.ocamlcore.org/frs/download.php/835/${P}.tgz"
-LICENSE="LGPL-2.1-with-linking-exception"
+LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc mpir +ocamlopt"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="+ocamlopt"
-RDEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?]
-!mpir? ( dev-libs/gmp )
-mpir? ( sci-libs/mpir )"
+OCAMLDIR=`ocamlc -where`
-DEPEND="${RDEPEND}
-dev-lang/perl"
+DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]
+ dev-libs/gmp"
+RDEPEND="${DEPEND}"
-src_configure() {
- MY_OPTS="-ocamllibdir /usr/$(get_libdir) -installdir \
- ${D}/usr/$(get_libdir)/ocaml"
- use mpir && MY_OPTS="${MY_OPTS} -mpir"
- ./configure ${MY_OPTS}|| die
+src_prepare(){
+ sed -i ${S}/project.mak -e "s:(OCAMLFIND) install:(OCAMLFIND) install -ldconf \$(INSTALLDIR)/ld.conf:g"
}
-src_compile() {
- emake all
- use doc && emake doc
+src_configure(){
+ ./configure -installdir "${D}${OCAMLDIR}" || die "configure failed"
}
-src_test() {
- if use ocamlopt; then
- emake test;LD_LIBRARY_PATH="." ./test || die
- else
- emake test.b;LD_LIBRARY_PATH="." ./test.b || die
- fi
+src_compile(){
+ emake || die "emake failed"
}
-src_install() {
- findlib_src_preinst
- emake install
+src_install(){
+ mkdir -p "${D}${OCAMLDIR}"
+ cp "${OCAMLDIR}/ld.conf" "${D}${OCAMLDIR}/ld.conf"
+ emake install || die "emake install failed"
+ rm "${D}${OCAMLDIR}/ld.conf"
dodoc Changes README
- use doc && dodoc -r html/
}