Gentoo Archives: gentoo-commits

From: Jonathan-Christofer Demay <jcdemay@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-ml/zarith/
Date: Sun, 22 Jun 2014 19:12:33
Message-Id: 1403464170.2fc91a64c86849c2fdb775c6a9babb45b2d2b6d0.jcdemay@gentoo
1 commit: 2fc91a64c86849c2fdb775c6a9babb45b2d2b6d0
2 Author: Jonathan-Christofer Demay <jcdemay <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 22 19:09:30 2014 +0000
4 Commit: Jonathan-Christofer Demay <jcdemay <AT> gmail <DOT> com>
5 CommitDate: Sun Jun 22 19:09:30 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2fc91a64
7
8 fix pkg_setup regression
9
10 ---
11 dev-ml/zarith/ChangeLog | 8 ++++++++
12 dev-ml/zarith/zarith-1.2.1.ebuild | 15 ++++++++++-----
13 2 files changed, 18 insertions(+), 5 deletions(-)
14
15 diff --git a/dev-ml/zarith/ChangeLog b/dev-ml/zarith/ChangeLog
16 index a521a07..2868b84 100644
17 --- a/dev-ml/zarith/ChangeLog
18 +++ b/dev-ml/zarith/ChangeLog
19 @@ -2,10 +2,18 @@
20 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
21 # $Header: $
22
23 + 22 Jun 2014; Jonathan-Christofer Demay <jcdemay@×××××.com>
24 + zarith-1.2.1.ebuild:
25 + fix regression of pkg_setup
26 +
27 10 Jun 2014; Jonathan-Christofer Demay <jcdemay@×××××.com>
28 -zarith-1.1.ebuild, +zarith-1.2.1.ebuild:
29 version bump
30
31 + 03 Mar 2013; Justin Lecher <jlec@g.o>
32 + zarith-1.1.ebuild, metadata.xml:
33 + Clean wrong space and blank lines; move EAPI=5
34 +
35 14 Jan 2013; Jonathan-Christofer Demay <jcdemay@×××××.com>
36 +zarith-1.1.ebuild:
37 initial commit
38
39 diff --git a/dev-ml/zarith/zarith-1.2.1.ebuild b/dev-ml/zarith/zarith-1.2.1.ebuild
40 index 90b5183..1603ad3 100644
41 --- a/dev-ml/zarith/zarith-1.2.1.ebuild
42 +++ b/dev-ml/zarith/zarith-1.2.1.ebuild
43 @@ -20,14 +20,19 @@ DEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?]
44 mpir? ( sci-libs/mpir )"
45 RDEPEND="${DEPEND}"
46
47 +pkg_setup() {
48 + OCAMLDIR=$(ocamlc -where)
49 +}
50 +
51 src_prepare(){
52 - sed -i ${S}/project.mak -e "s:(OCAMLFIND) install:(OCAMLFIND) install -ldconf \$(INSTALLDIR)/ld.conf:g"
53 + sed -e "s:(OCAMLFIND) install:(OCAMLFIND) install -ldconf \$(INSTALLDIR)/ld.conf:g" \
54 + -i ${S}/project.mak
55 }
56
57 src_configure(){
58 - MY_OPTS="-ocamllibdir /usr/$(get_libdir) -installdir ${D}/usr/$(get_libdir)/ocaml"
59 + MY_OPTS="-ocamllibdir /usr/$(get_libdir) -installdir ${D}/${OCAMLDIR}"
60 use mpir && MY_OPTS="${MY_OPTS} -mpir"
61 - ./configure ${MY_OPTS}|| die || die "configure failed"
62 + ./configure ${MY_OPTS} || die "configure failed"
63 }
64
65 src_compile(){
66 @@ -37,9 +42,9 @@ src_compile(){
67
68 src_install(){
69 findlib_src_preinst
70 - cp /usr/$(get_libdir)/ocaml/ld.conf ${D}/usr/$(get_libdir)/ocaml/ld.conf
71 + cp ${OCAMLDIR}/ld.conf ${D}/${OCAMLDIR}/ld.conf
72 emake install || die "emake install failed"
73 - rm -f ${D}/usr/$(get_libdir)/ocaml/ld.conf
74 + rm -f ${D}/${OCAMLDIR}/ld.conf
75 dodoc Changes README
76 use doc && dodoc -r html/
77 }