diff options
author | Jonathan-Christofer Demay <jcdemay@gmail.com> | 2014-06-22 21:09:30 +0200 |
---|---|---|
committer | Jonathan-Christofer Demay <jcdemay@gmail.com> | 2014-06-22 21:09:30 +0200 |
commit | 2fc91a64c86849c2fdb775c6a9babb45b2d2b6d0 (patch) | |
tree | 302bd26e9c4e3e2bed202baebba4bf6f1fdc5a27 /dev-ml/zarith/zarith-1.2.1.ebuild | |
parent | zarith no longer asks ocamlc for libdir (diff) | |
download | sci-2fc91a64c86849c2fdb775c6a9babb45b2d2b6d0.tar.gz sci-2fc91a64c86849c2fdb775c6a9babb45b2d2b6d0.tar.bz2 sci-2fc91a64c86849c2fdb775c6a9babb45b2d2b6d0.zip |
fix pkg_setup regression
Diffstat (limited to 'dev-ml/zarith/zarith-1.2.1.ebuild')
-rw-r--r-- | dev-ml/zarith/zarith-1.2.1.ebuild | 15 |
1 files changed, 10 insertions, 5 deletions
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/ } |