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

Diff of /eclass/findlib.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.7
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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 $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/findlib.eclass,v 1.7 2008/02/02 21:10:16 betelgeuse Exp $
4# 4#
5# Author : Matthieu Sozeau <mattam@gentoo.org> 5# Original author : Matthieu Sozeau <mattam@gentoo.org> (retired)
6# 6#
7# Changes: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/findlib.eclass?view=log
8#
7# ocamlfind (a.k.a. findlib) eclass 9# ocamlfind (a.k.a. findlib) eclass
8# 10#
9 11
10ECLASS="findlib"
11INHERITED="$INHERITED $ECLASS"
12 12
13# From this findlib version there is proper stublibs support. 13# From this findlib version there is proper stublibs support.
14DEPEND=">=dev-ml/findlib-1.0.4-r1" 14DEPEND=">=dev-ml/findlib-1.0.4-r1"
15[[ ${FINDLIB_USE} ]] && DEPEND="${FINDLIB_USE}? ( ${DEPEND} )"
15 16
16check_ocamlfind() { 17check_ocamlfind() {
17 if [ ! -x /usr/bin/ocamlfind ] 18 if [ ! -x /usr/bin/ocamlfind ]
18 then 19 then
19 ewarn "In findlib.eclass: could not find the ocamlfind executable" 20 eerror "In findlib.eclass: could not find the ocamlfind executable"
20 ewarn "Please report this bug on gentoo's bugzilla, assigning to ml@gentoo.org" 21 eerror "Please report this bug on gentoo's bugzilla, assigning to ml@gentoo.org"
21 exit 1 22 die "ocamlfind executabled not found"
22 fi 23 fi
23} 24}
24 25
25# Prepare the image for a findlib installation. 26# Prepare the image for a findlib installation.
26# We use the stublibs style, so no ld.conf needs to be 27# We use the stublibs style, so no ld.conf needs to be
29 check_ocamlfind 30 check_ocamlfind
30 31
31 # destdir is the ocaml sitelib 32 # destdir is the ocaml sitelib
32 local destdir=`ocamlfind printconf destdir` 33 local destdir=`ocamlfind printconf destdir`
33 34
34 dodir ${destdir} || die "dodir failed" 35 dodir ${destdir} || die "dodir failed"
35 export OCAMLFIND_DESTDIR=${D}${destdir} 36 export OCAMLFIND_DESTDIR=${D}${destdir}
36 37
37 # stublibs style 38 # stublibs style
38 dodir ${destdir}/stublibs || die "dodir failed" 39 dodir ${destdir}/stublibs || die "dodir failed"
39 export OCAMLFIND_LDCONF=ignore 40 export OCAMLFIND_LDCONF=ignore

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20