diff options
author | 2014-06-22 16:29:25 +0200 | |
---|---|---|
committer | 2014-06-22 16:29:25 +0200 | |
commit | 03917aeca50f3a5bfb3382205e973e7777a67570 (patch) | |
tree | 9b012497b885586aaa60975bf8e486663f1adcc6 /dev-ml/zarith/zarith-1.2.1.ebuild | |
parent | added missing deps (bug #514084) (diff) | |
download | sci-03917aeca50f3a5bfb3382205e973e7777a67570.tar.gz sci-03917aeca50f3a5bfb3382205e973e7777a67570.tar.bz2 sci-03917aeca50f3a5bfb3382205e973e7777a67570.zip |
multiple version bumps
Diffstat (limited to 'dev-ml/zarith/zarith-1.2.1.ebuild')
-rw-r--r-- | dev-ml/zarith/zarith-1.2.1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-ml/zarith/zarith-1.2.1.ebuild b/dev-ml/zarith/zarith-1.2.1.ebuild new file mode 100644 index 000000000..2822592e2 --- /dev/null +++ b/dev-ml/zarith/zarith-1.2.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +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/1199/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+ocamlopt" + +OCAMLDIR=`ocamlc -where` + +DEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?] + dev-libs/gmp" +RDEPEND="${DEPEND}" + +src_prepare(){ + sed -i ${S}/project.mak -e "s:(OCAMLFIND) install:(OCAMLFIND) install -ldconf \$(INSTALLDIR)/ld.conf:g" +} + +src_configure(){ + ./configure -installdir "${D}${OCAMLDIR}" || die "configure failed" +} + +src_compile(){ + emake || die "emake failed" +} + +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 +} |