From 2fc91a64c86849c2fdb775c6a9babb45b2d2b6d0 Mon Sep 17 00:00:00 2001 From: Jonathan-Christofer Demay Date: Sun, 22 Jun 2014 21:09:30 +0200 Subject: fix pkg_setup regression --- dev-ml/zarith/ChangeLog | 8 ++++++++ dev-ml/zarith/zarith-1.2.1.ebuild | 15 ++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'dev-ml/zarith') diff --git a/dev-ml/zarith/ChangeLog b/dev-ml/zarith/ChangeLog index a521a070e..2868b8432 100644 --- a/dev-ml/zarith/ChangeLog +++ b/dev-ml/zarith/ChangeLog @@ -2,10 +2,18 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 22 Jun 2014; Jonathan-Christofer Demay + zarith-1.2.1.ebuild: + fix regression of pkg_setup + 10 Jun 2014; Jonathan-Christofer Demay -zarith-1.1.ebuild, +zarith-1.2.1.ebuild: version bump + 03 Mar 2013; Justin Lecher + zarith-1.1.ebuild, metadata.xml: + Clean wrong space and blank lines; move EAPI=5 + 14 Jan 2013; Jonathan-Christofer Demay +zarith-1.1.ebuild: initial commit diff --git a/dev-ml/zarith/zarith-1.2.1.ebuild b/dev-ml/zarith/zarith-1.2.1.ebuild index 90b518341..1603ad3ba 100644 --- a/dev-ml/zarith/zarith-1.2.1.ebuild +++ b/dev-ml/zarith/zarith-1.2.1.ebuild @@ -20,14 +20,19 @@ DEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?] mpir? ( sci-libs/mpir )" RDEPEND="${DEPEND}" +pkg_setup() { + OCAMLDIR=$(ocamlc -where) +} + src_prepare(){ - sed -i ${S}/project.mak -e "s:(OCAMLFIND) install:(OCAMLFIND) install -ldconf \$(INSTALLDIR)/ld.conf:g" + sed -e "s:(OCAMLFIND) install:(OCAMLFIND) install -ldconf \$(INSTALLDIR)/ld.conf:g" \ + -i ${S}/project.mak } src_configure(){ - MY_OPTS="-ocamllibdir /usr/$(get_libdir) -installdir ${D}/usr/$(get_libdir)/ocaml" + MY_OPTS="-ocamllibdir /usr/$(get_libdir) -installdir ${D}/${OCAMLDIR}" use mpir && MY_OPTS="${MY_OPTS} -mpir" - ./configure ${MY_OPTS}|| die || die "configure failed" + ./configure ${MY_OPTS} || die "configure failed" } src_compile(){ @@ -37,9 +42,9 @@ src_compile(){ src_install(){ findlib_src_preinst - cp /usr/$(get_libdir)/ocaml/ld.conf ${D}/usr/$(get_libdir)/ocaml/ld.conf + cp ${OCAMLDIR}/ld.conf ${D}/${OCAMLDIR}/ld.conf emake install || die "emake install failed" - rm -f ${D}/usr/$(get_libdir)/ocaml/ld.conf + rm -f ${D}/${OCAMLDIR}/ld.conf dodoc Changes README use doc && dodoc -r html/ } -- cgit v1.2.3-18-g5258