Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/findlib: ChangeLog findlib-1.5.5-r1.ebuild
Date: Fri, 28 Nov 2014 16:40:19
Message-Id: 20141128164015.80CC0B18F@oystercatcher.gentoo.org
1 aballier 14/11/28 16:40:15
2
3 Modified: ChangeLog
4 Added: findlib-1.5.5-r1.ebuild
5 Log:
6 add version for ocaml 4.02
7
8 Signed-off-by: aballier@g.o
9 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
10
11 Revision Changes Path
12 1.119 dev-ml/findlib/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.119&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.119&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?r1=1.118&r2=1.119
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v
21 retrieving revision 1.118
22 retrieving revision 1.119
23 diff -u -r1.118 -r1.119
24 --- ChangeLog 27 Oct 2014 08:40:50 -0000 1.118
25 +++ ChangeLog 28 Nov 2014 16:40:15 -0000 1.119
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-ml/findlib
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.118 2014/10/27 08:40:50 aballier Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.119 2014/11/28 16:40:15 aballier Exp $
31 +
32 +*findlib-1.5.5-r1 (28 Nov 2014)
33 +
34 + 28 Nov 2014; Alexis Ballier <aballier@g.o> +findlib-1.5.5-r1.ebuild,
35 + +files/externalmeta.patch:
36 + add version for ocaml 4.02
37
38 *findlib-1.5.5 (27 Oct 2014)
39
40
41
42
43 1.1 dev-ml/findlib/findlib-1.5.5-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.5.5-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.5.5-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: findlib-1.5.5-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.5.5-r1.ebuild,v 1.1 2014/11/28 16:40:15 aballier Exp $
53
54 EAPI=5
55
56 inherit multilib eutils
57
58 DESCRIPTION="OCaml tool to find/use non-standard packages"
59 HOMEPAGE="http://projects.camlcity.org/projects/findlib.html"
60 SRC_URI="http://download.camlcity.org/download/${P}.tar.gz"
61 IUSE="doc +ocamlopt tk"
62
63 LICENSE="MIT"
64
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
67
68 DEPEND=">=dev-lang/ocaml-4.02.1:=[ocamlopt?]
69 tk? ( dev-ml/labltk:= )"
70 RDEPEND="${DEPEND}"
71
72 ocamlfind_destdir="${EPREFIX}/usr/$(get_libdir)/ocaml"
73 stublibs="${ocamlfind_destdir}/stublibs"
74
75 src_prepare() {
76 epatch "${FILESDIR}/externalmeta.patch"
77 }
78
79 src_configure() {
80 local myconf
81 use tk && myconf="-with-toolbox"
82 ./configure -bindir "${EPREFIX}"/usr/bin -mandir "${EPREFIX}"/usr/share/man \
83 -sitelib ${ocamlfind_destdir} \
84 -config ${ocamlfind_destdir}/findlib/findlib.conf \
85 -no-custom \
86 ${myconf} || die "configure failed"
87 }
88
89 src_compile() {
90 emake -j1 all
91 if use ocamlopt; then
92 emake -j1 opt # optimized code
93 fi
94 }
95
96 src_install() {
97 emake prefix="${D}" install
98
99 dodir "${stublibs#${EPREFIX}}"
100
101 cd "${S}/doc"
102 dodoc QUICKSTART README DOCINFO
103 use doc && dohtml -r ref-html guide-html
104 }
105
106 check_stublibs() {
107 local ocaml_stdlib=`ocamlc -where`
108 local ldconf="${ocaml_stdlib}/ld.conf"
109
110 if [ ! -e ${ldconf} ]
111 then
112 echo "${ocaml_stdlib}" > ${ldconf}
113 echo "${ocaml_stdlib}/stublibs" >> ${ldconf}
114 fi
115
116 if [ -z `grep -e ${stublibs} ${ldconf}` ]
117 then
118 echo ${stublibs} >> ${ldconf}
119 fi
120 }
121
122 pkg_postinst() {
123 check_stublibs
124 }