Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ml/findlib: findlib-1.3.3-r1.ebuild ChangeLog
Date: Thu, 01 Nov 2012 00:14:46
Message-Id: 20121101001413.4A69221600@flycatcher.gentoo.org
1 ottxor 12/11/01 00:14:13
2
3 Modified: ChangeLog
4 Added: findlib-1.3.3-r1.ebuild
5 Log:
6 added prefix support (bug #440352)
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key C2000586)
9
10 Revision Changes Path
11 1.95 dev-ml/findlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.95&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?rev=1.95&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/ChangeLog?r1=1.94&r2=1.95
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v
20 retrieving revision 1.94
21 retrieving revision 1.95
22 diff -u -r1.94 -r1.95
23 --- ChangeLog 8 Oct 2012 12:18:54 -0000 1.94
24 +++ ChangeLog 1 Nov 2012 00:14:13 -0000 1.95
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ml/findlib
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.94 2012/10/08 12:18:54 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/ChangeLog,v 1.95 2012/11/01 00:14:13 ottxor Exp $
30 +
31 +*findlib-1.3.3-r1 (01 Nov 2012)
32 +
33 + 01 Nov 2012; Christoph Junghans <ottxor@g.o> +findlib-1.3.3-r1.ebuild:
34 + added prefix support (bug #440352)
35
36 08 Oct 2012; Alexis Ballier <aballier@g.o> -findlib-1.2.7.ebuild,
37 -findlib-1.3.1.ebuild:
38
39
40
41 1.1 dev-ml/findlib/findlib-1.3.3-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.3.3-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/findlib/findlib-1.3.3-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: findlib-1.3.3-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.3.3-r1.ebuild,v 1.1 2012/11/01 00:14:13 ottxor Exp $
51
52 EAPI=4
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 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
67
68 DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?,tk?]"
69 RDEPEND="${DEPEND}"
70
71 ocamlfind_destdir="${EPREFIX}/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 "${EPREFIX}"/usr/bin -mandir "${EPREFIX}"/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
85 if use ocamlopt; then
86 emake opt # 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 emake prefix="${D}" install
96
97 dodir "${stublibs#${EPREFIX}}"
98
99 cd "${S}/doc"
100 dodoc QUICKSTART README DOCINFO
101 use doc && dohtml -r ref-html guide-html
102 }
103
104 check_stublibs() {
105 local ocaml_stdlib=`ocamlc -where`
106 local ldconf="${ocaml_stdlib}/ld.conf"
107
108 if [ ! -e ${ldconf} ]
109 then
110 echo "${ocaml_stdlib}" > ${ldconf}
111 echo "${ocaml_stdlib}/stublibs" >> ${ldconf}
112 fi
113
114 if [ -z `grep -e ${stublibs} ${ldconf}` ]
115 then
116 echo ${stublibs} >> ${ldconf}
117 fi
118 }
119
120 pkg_postinst() {
121 check_stublibs
122 }