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.2.8.ebuild |
Date: | Sat, 25 Feb 2012 23:18:37 |
Message-Id: | 20120225231827.538462004B@flycatcher.gentoo.org |
1 | aballier 12/02/25 23:18:27 |
2 | |
3 | Modified: ChangeLog |
4 | Added: findlib-1.2.8.ebuild |
5 | Log: |
6 | version bump |
7 | |
8 | (Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.81 dev-ml/findlib/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.81&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.81&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?r1=1.80&r2=1.81 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v |
20 | retrieving revision 1.80 |
21 | retrieving revision 1.81 |
22 | diff -u -r1.80 -r1.81 |
23 | --- ChangeLog 11 Oct 2011 19:36:03 -0000 1.80 |
24 | +++ ChangeLog 25 Feb 2012 23:18:27 -0000 1.81 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-ml/findlib |
27 | -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.80 2011/10/11 19:36:03 aballier Exp $ |
29 | +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.81 2012/02/25 23:18:27 aballier Exp $ |
31 | + |
32 | +*findlib-1.2.8 (25 Feb 2012) |
33 | + |
34 | + 25 Feb 2012; Alexis Ballier <aballier@g.o> +findlib-1.2.8.ebuild: |
35 | + version bump |
36 | |
37 | 11 Oct 2011; Alexis Ballier <aballier@g.o> -findlib-1.2.6.ebuild: |
38 | remove old |
39 | |
40 | |
41 | |
42 | 1.1 dev-ml/findlib/findlib-1.2.8.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.2.8.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.2.8.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: findlib-1.2.8.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2012 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.2.8.ebuild,v 1.1 2012/02/25 23:18:27 aballier Exp $ |
52 | |
53 | EAPI=2 |
54 | |
55 | inherit multilib |
56 | |
57 | RESTRICT="installsources" |
58 | |
59 | DESCRIPTION="OCaml tool to find/use non-standard packages." |
60 | HOMEPAGE="http://projects.camlcity.org/projects/findlib.html" |
61 | SRC_URI="http://download.camlcity.org/download/${P}.tar.gz" |
62 | IUSE="doc +ocamlopt tk" |
63 | |
64 | LICENSE="MIT" |
65 | |
66 | SLOT="0" |
67 | KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
68 | |
69 | DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?,tk?]" |
70 | RDEPEND="${DEPEND}" |
71 | |
72 | ocamlfind_destdir="/usr/$(get_libdir)/ocaml" |
73 | stublibs="${ocamlfind_destdir}/stublibs" |
74 | |
75 | src_configure() { |
76 | local myconf |
77 | use tk && myconf="-with-toolbox" |
78 | ./configure -bindir /usr/bin -mandir /usr/share/man \ |
79 | -sitelib ${ocamlfind_destdir} \ |
80 | -config ${ocamlfind_destdir}/findlib/findlib.conf \ |
81 | ${myconf} || die "configure failed" |
82 | } |
83 | |
84 | src_compile() { |
85 | emake all || die |
86 | if use ocamlopt; then |
87 | emake opt || die # optimized code |
88 | else |
89 | # If using bytecode we dont want to strip the binary as it would remove the |
90 | # bytecode and only leave ocamlrun... |
91 | export STRIP_MASK="*/bin/*" |
92 | fi |
93 | } |
94 | |
95 | src_install() { |
96 | dodir `ocamlc -where` |
97 | |
98 | emake prefix="${D}" install || die |
99 | |
100 | dodir "${stublibs}" |
101 | |
102 | cd "${S}/doc" |
103 | dodoc QUICKSTART README DOCINFO |
104 | use doc && dohtml -r ref-html guide-html |
105 | } |
106 | |
107 | check_stublibs() { |
108 | local ocaml_stdlib=`ocamlc -where` |
109 | local ldconf="${ocaml_stdlib}/ld.conf" |
110 | |
111 | if [ ! -e ${ldconf} ] |
112 | then |
113 | echo "${ocaml_stdlib}" > ${ldconf} |
114 | echo "${ocaml_stdlib}/stublibs" >> ${ldconf} |
115 | fi |
116 | |
117 | if [ -z `grep -e ${stublibs} ${ldconf}` ] |
118 | then |
119 | echo ${stublibs} >> ${ldconf} |
120 | fi |
121 | } |
122 | |
123 | pkg_postinst() { |
124 | check_stublibs |
125 | } |