/[gentoo-x86]/eclass/findlib.eclass
Gentoo

Contents of /eclass/findlib.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jul 6 20:20:03 2005 UTC (9 years, 1 month ago) by agriffis
Branch: MAIN
Changes since 1.2: +1 -2 lines
Remove ECLASS= and INHERITED= which haven't been necessary for a long time now

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/findlib.eclass,v 1.2 2004/08/24 14:32:56 mattam Exp $
4 #
5 # Author : Matthieu Sozeau <mattam@gentoo.org>
6 #
7 # ocamlfind (a.k.a. findlib) eclass
8 #
9
10 INHERITED="$INHERITED $ECLASS"
11
12 # From this findlib version there is proper stublibs support.
13 DEPEND=">=dev-ml/findlib-1.0.4-r1"
14
15 check_ocamlfind() {
16 if [ ! -x /usr/bin/ocamlfind ]
17 then
18 ewarn "In findlib.eclass: could not find the ocamlfind executable"
19 ewarn "Please report this bug on gentoo's bugzilla, assigning to ml@gentoo.org"
20 exit 1
21 fi
22 }
23
24 # Prepare the image for a findlib installation.
25 # We use the stublibs style, so no ld.conf needs to be
26 # updated when a package installs C shared libraries.
27 findlib_src_preinst() {
28 check_ocamlfind
29
30 # destdir is the ocaml sitelib
31 local destdir=`ocamlfind printconf destdir`
32
33 dodir ${destdir} || die "dodir failed"
34 export OCAMLFIND_DESTDIR=${D}${destdir}
35
36 # stublibs style
37 dodir ${destdir}/stublibs || die "dodir failed"
38 export OCAMLFIND_LDCONF=ignore
39 }
40
41 # Install with a properly setup findlib
42 findlib_src_install() {
43 findlib_src_preinst
44 make DESTDIR=${D} "$@" install || die "make failed"
45 }

  ViewVC Help
Powered by ViewVC 1.1.20