diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-02-18 12:52:19 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-02-18 12:52:19 +0100 |
commit | 5245b8b69c225826f8760140090f7ecfed17c1a0 (patch) | |
tree | 61cbf5453586f9442c7b238aaae542690ad7827a /dev-ml/zarith/zarith-1.2.1.ebuild | |
parent | dev-ml/mlgmpidl: fix SLOT operators; fix usage of die; correct deps (diff) | |
download | sci-5245b8b69c225826f8760140090f7ecfed17c1a0.tar.gz sci-5245b8b69c225826f8760140090f7ecfed17c1a0.tar.bz2 sci-5245b8b69c225826f8760140090f7ecfed17c1a0.zip |
dev-ml/zarith: fix SLOT operators; fix usage of die
Package-Manager: portage-2.2.17
Diffstat (limited to 'dev-ml/zarith/zarith-1.2.1.ebuild')
-rw-r--r-- | dev-ml/zarith/zarith-1.2.1.ebuild | 27 |
1 files changed, 15 insertions, 12 deletions
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 } |