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.6.ebuild |
Date: | Sun, 07 Nov 2010 16:33:22 |
Message-Id: | 20101107163318.E5A9920051@flycatcher.gentoo.org |
1 | aballier 10/11/07 16:33:18 |
2 | |
3 | Modified: ChangeLog |
4 | Added: findlib-1.2.6.ebuild |
5 | Log: |
6 | version bump |
7 | |
8 | (Portage version: 2.2.0_alpha4/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.64 dev-ml/findlib/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.64&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.64&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?r1=1.63&r2=1.64 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v |
20 | retrieving revision 1.63 |
21 | retrieving revision 1.64 |
22 | diff -u -r1.63 -r1.64 |
23 | --- ChangeLog 5 Nov 2010 18:23:30 -0000 1.63 |
24 | +++ ChangeLog 7 Nov 2010 16:33:18 -0000 1.64 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-ml/findlib |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.63 2010/11/05 18:23:30 hwoarang Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.64 2010/11/07 16:33:18 aballier Exp $ |
30 | + |
31 | +*findlib-1.2.6 (07 Nov 2010) |
32 | + |
33 | + 07 Nov 2010; Alexis Ballier <aballier@g.o> +findlib-1.2.6.ebuild: |
34 | + version bump |
35 | |
36 | 05 Nov 2010; Markos Chandras <hwoarang@g.o> findlib-1.2.5.ebuild: |
37 | Stable on amd64 wrt bug #343751 |
38 | |
39 | |
40 | |
41 | 1.1 dev-ml/findlib/findlib-1.2.6.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.2.6.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.2.6.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: findlib-1.2.6.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2010 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.2.6.ebuild,v 1.1 2010/11/07 16:33:18 aballier Exp $ |
51 | |
52 | EAPI=2 |
53 | |
54 | inherit multilib |
55 | |
56 | RESTRICT="installsources" |
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 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
67 | |
68 | DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?,tk?]" |
69 | RDEPEND="${DEPEND}" |
70 | |
71 | ocamlfind_destdir="/usr/$(get_libdir)/ocaml" |
72 | stublibs="${ocamlfind_destdir}/stublibs" |
73 | |
74 | src_configure() { |
75 | local myconf |
76 | use tk && myconf="-with-toolbox" |
77 | ./configure -bindir /usr/bin -mandir /usr/share/man \ |
78 | -sitelib ${ocamlfind_destdir} \ |
79 | -config ${ocamlfind_destdir}/findlib/findlib.conf \ |
80 | ${myconf} || die "configure failed" |
81 | } |
82 | |
83 | src_compile() { |
84 | emake all || die |
85 | if use ocamlopt; then |
86 | emake opt || die # optimized code |
87 | else |
88 | # If using bytecode we dont want to strip the binary as it would remove the |
89 | # bytecode and only leave ocamlrun... |
90 | export STRIP_MASK="*/bin/*" |
91 | fi |
92 | } |
93 | |
94 | src_install() { |
95 | dodir `ocamlc -where` |
96 | |
97 | emake prefix="${D}" install || die |
98 | |
99 | dodir "${stublibs}" |
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 | } |