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.2.ebuild |
Date: | Tue, 05 Aug 2008 09:25:19 |
Message-Id: | E1KQIn6-0003yK-2Q@stork.gentoo.org |
1 | aballier 08/08/05 09:25:16 |
2 | |
3 | Modified: ChangeLog |
4 | Added: findlib-1.2.2.ebuild |
5 | Log: |
6 | version bump |
7 | (Portage version: 2.2_rc6/cvs/Linux 2.6.25.7 x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.39 dev-ml/findlib/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.39&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.39&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/ChangeLog?r1=1.38&r2=1.39 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v |
19 | retrieving revision 1.38 |
20 | retrieving revision 1.39 |
21 | diff -u -r1.38 -r1.39 |
22 | --- ChangeLog 7 Jun 2008 16:31:47 -0000 1.38 |
23 | +++ ChangeLog 5 Aug 2008 09:25:15 -0000 1.39 |
24 | @@ -1,6 +1,11 @@ |
25 | # ChangeLog for dev-ml/findlib |
26 | # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.38 2008/06/07 16:31:47 aballier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.39 2008/08/05 09:25:15 aballier Exp $ |
29 | + |
30 | +*findlib-1.2.2 (05 Aug 2008) |
31 | + |
32 | + 05 Aug 2008; Alexis Ballier <aballier@g.o> +findlib-1.2.2.ebuild: |
33 | + version bump |
34 | |
35 | 07 Jun 2008; Alexis Ballier <aballier@g.o> findlib-1.2.1.ebuild: |
36 | Update homepage and SRC_URI |
37 | |
38 | |
39 | |
40 | 1.1 dev-ml/findlib/findlib-1.2.2.ebuild |
41 | |
42 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/findlib-1.2.2.ebuild?rev=1.1&view=markup |
43 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ml/findlib/findlib-1.2.2.ebuild?rev=1.1&content-type=text/plain |
44 | |
45 | Index: findlib-1.2.2.ebuild |
46 | =================================================================== |
47 | # Copyright 1999-2008 Gentoo Foundation |
48 | # Distributed under the terms of the GNU General Public License v2 |
49 | # $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-1.2.2.ebuild,v 1.1 2008/08/05 09:25:15 aballier Exp $ |
50 | |
51 | inherit multilib eutils |
52 | |
53 | EAPI="1" |
54 | |
55 | IUSE="doc +ocamlopt tk" |
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 | |
63 | LICENSE="MIT X11" |
64 | |
65 | SLOT="0" |
66 | KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
67 | |
68 | DEPEND=">=dev-lang/ocaml-3.07" |
69 | |
70 | ocamlfind_destdir="/usr/$(get_libdir)/ocaml/site-packages" |
71 | stublibs="${ocamlfind_destdir}/stublibs" |
72 | |
73 | pkg_setup() |
74 | { |
75 | if ( use tk && ! built_with_use dev-lang/ocaml tk ); then |
76 | eerror "It seems you don't have ocaml compiled with tk support" |
77 | eerror "" |
78 | eerror "The findlib toolbox requires ocaml be built with tk support." |
79 | eerror "" |
80 | die "Please make sure that ocaml is installed with tk support or remove the USE flag" |
81 | fi |
82 | if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then |
83 | eerror "In order to build ${PN} with native code support from ocaml" |
84 | eerror "You first need to have a native code ocaml compiler." |
85 | eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." |
86 | die "Please install ocaml with ocamlopt useflag" |
87 | fi |
88 | } |
89 | |
90 | src_compile() { |
91 | local myconf |
92 | use tk && myconf="-with-toolbox" |
93 | ./configure -bindir /usr/bin -mandir /usr/share/man \ |
94 | -sitelib ${ocamlfind_destdir} \ |
95 | -config ${ocamlfind_destdir}/findlib/findlib.conf \ |
96 | ${myconf} || die "configure failed" |
97 | |
98 | emake all || die |
99 | if use ocamlopt; then |
100 | emake opt || die # optimized code |
101 | else |
102 | # If using bytecode we dont want to strip the binary as it would remove the |
103 | # bytecode and only leave ocamlrun... |
104 | export STRIP_MASK="*/bin/*" |
105 | fi |
106 | } |
107 | |
108 | src_install() { |
109 | dodir `ocamlc -where` |
110 | |
111 | emake prefix="${D}" install || die |
112 | |
113 | dodir "${stublibs}" |
114 | |
115 | cd "${S}/doc" |
116 | dodoc QUICKSTART README DOCINFO |
117 | use doc && dohtml -r ref-html guide-html |
118 | } |
119 | |
120 | check_stublibs() { |
121 | local ocaml_stdlib=`ocamlc -where` |
122 | local ldconf="${ocaml_stdlib}/ld.conf" |
123 | |
124 | if [ ! -e ${ldconf} ] |
125 | then |
126 | echo "${ocaml_stdlib}" > ${ldconf} |
127 | echo "${ocaml_stdlib}/stublibs" >> ${ldconf} |
128 | fi |
129 | |
130 | if [ -z `grep -e ${stublibs} ${ldconf}` ] |
131 | then |
132 | echo ${stublibs} >> ${ldconf} |
133 | fi |
134 | } |
135 | |
136 | pkg_postinst() { |
137 | check_stublibs |
138 | } |