diff options
Diffstat (limited to 'dev-ml/zarith/zarith-1.2.1.ebuild')
-rw-r--r-- | dev-ml/zarith/zarith-1.2.1.ebuild | 18 |
1 files changed, 8 insertions, 10 deletions
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/ } |