From c31c657089827988f8c0e373d4f324912796b59c Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Tue, 16 Sep 2014 10:13:39 -0600 Subject: clean up Package-Manager: portage-2.2.8-r1 --- dev-ml/zarith/zarith-1.2.1.ebuild | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'dev-ml/zarith/zarith-1.2.1.ebuild') diff --git a/dev-ml/zarith/zarith-1.2.1.ebuild b/dev-ml/zarith/zarith-1.2.1.ebuild index 5657ff8c4..150070425 100644 --- a/dev-ml/zarith/zarith-1.2.1.ebuild +++ b/dev-ml/zarith/zarith-1.2.1.ebuild @@ -21,12 +21,12 @@ DEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?] RDEPEND="${DEPEND}" pkg_setup() { - OCAMLDIR=$(ocamlc -where) + OCAMLDIR=$(ocamlc -where) } 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 } src_configure(){ @@ -36,17 +36,15 @@ src_configure(){ } src_compile(){ - emake || die "emake failed" - if use doc; then - emake doc || die "emake doc failed" - fi + emake + use doc && emake doc } src_install(){ findlib_src_preinst - cp ${OCAMLDIR}/ld.conf ${D}/${OCAMLDIR}/ld.conf - emake install || die "emake install failed" - rm -f ${D}/${OCAMLDIR}/ld.conf + cp "${OCAMLDIR}"/ld.conf "${D}/${OCAMLDIR}"/ld.conf + emake install + rm -f "${D}/${OCAMLDIR}"/ld.conf dodoc Changes README use doc && dodoc -r html/ } -- cgit v1.2.3