From 5245b8b69c225826f8760140090f7ecfed17c1a0 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Wed, 18 Feb 2015 12:52:19 +0100 Subject: dev-ml/zarith: fix SLOT operators; fix usage of die Package-Manager: portage-2.2.17 --- dev-ml/zarith/ChangeLog | 6 +++++- dev-ml/zarith/metadata.xml | 10 +++++----- dev-ml/zarith/zarith-1.2.1.ebuild | 27 +++++++++++++++------------ 3 files changed, 25 insertions(+), 18 deletions(-) (limited to 'dev-ml') diff --git a/dev-ml/zarith/ChangeLog b/dev-ml/zarith/ChangeLog index 74f1f9d0b..03336a56a 100644 --- a/dev-ml/zarith/ChangeLog +++ b/dev-ml/zarith/ChangeLog @@ -1,7 +1,11 @@ # ChangeLog for dev-ml/zarith -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 18 Feb 2015; Justin Lecher metadata.xml, + zarith-1.2.1.ebuild: + dev-ml/zarith: fix SLOT operators; fix usage of die + 16 Sep 2014; Christoph Junghans zarith-1.2.1.ebuild: clean up diff --git a/dev-ml/zarith/metadata.xml b/dev-ml/zarith/metadata.xml index 5cabf83c7..0677155e7 100644 --- a/dev-ml/zarith/metadata.xml +++ b/dev-ml/zarith/metadata.xml @@ -1,15 +1,15 @@ -sci-mathematics - + sci-mathematics + The Zarith library implements arithmetic and logical operations over arbitrary-precision integers. It uses GMP to efficiently implement arithmetic over big integers. Small integers are represented as Caml unboxed integers, for speed and space economy. - - Use sci-libs/mpir for arbitrary + + Use sci-libs/mpir for arbitrary precision integer arithmetic - + diff --git a/dev-ml/zarith/zarith-1.2.1.ebuild b/dev-ml/zarith/zarith-1.2.1.ebuild index 150070425..6c5379bdb 100644 --- a/dev-ml/zarith/zarith-1.2.1.ebuild +++ b/dev-ml/zarith/zarith-1.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -15,9 +15,10 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+ocamlopt doc mpir" -DEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?] - !mpir? ( dev-libs/gmp ) - mpir? ( sci-libs/mpir )" +DEPEND=" + >=dev-lang/ocaml-3.12.1[ocamlopt?] + !mpir? ( dev-libs/gmp:0 ) + mpir? ( sci-libs/mpir:0 )" RDEPEND="${DEPEND}" pkg_setup() { @@ -25,8 +26,9 @@ pkg_setup() { } src_prepare(){ - sed -e 's:(OCAMLFIND) install:(OCAMLFIND) install -ldconf $(INSTALLDIR)/ld.conf:g' \ - -i "${S}"/project.mak + sed \ + -e 's:(OCAMLFIND) install:(OCAMLFIND) install -ldconf $(INSTALLDIR)/ld.conf:g' \ + -i "${S}"/project.mak || die } src_configure(){ @@ -36,15 +38,16 @@ src_configure(){ } src_compile(){ - emake + default use doc && emake doc } src_install(){ findlib_src_preinst - cp "${OCAMLDIR}"/ld.conf "${D}/${OCAMLDIR}"/ld.conf - emake install - rm -f "${D}/${OCAMLDIR}"/ld.conf - dodoc Changes README - use doc && dodoc -r html/ + cp "${OCAMLDIR}"/ld.conf "${D}/${OCAMLDIR}"/ld.conf || die + default + rm -f "${D}/${OCAMLDIR}"/ld.conf || die + DOCS=( Changes README ) + use doc && HTML_DOCS=( html/. ) + einstalldocs } -- cgit v1.2.3-65-gdbad