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

Diff of /eclass/findlib.eclass

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

Revision 1.7 Revision 1.8
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2008 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.7 2008/02/02 21:10:16 betelgeuse Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/findlib.eclass,v 1.8 2008/02/24 15:46:09 aballier Exp $
4
5# @ECLASS: findlib.eclass
6# @MAINTAINER:
7# ml@gentoo.org
4# 8#
5# Original author : Matthieu Sozeau <mattam@gentoo.org> (retired) 9# Original author : Matthieu Sozeau <mattam@gentoo.org> (retired)
6# 10#
7# Changes: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/findlib.eclass?view=log 11# Changes: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/findlib.eclass?view=log
8# 12# @BLURB: ocamlfind (a.k.a. findlib) eclass
13# @DESCRIPTION:
9# ocamlfind (a.k.a. findlib) eclass 14# ocamlfind (a.k.a. findlib) eclass
10# 15
11 16
12 17
13# From this findlib version there is proper stublibs support. 18# From this findlib version there is proper stublibs support.
14DEPEND=">=dev-ml/findlib-1.0.4-r1" 19DEPEND=">=dev-ml/findlib-1.0.4-r1"
15[[ ${FINDLIB_USE} ]] && DEPEND="${FINDLIB_USE}? ( ${DEPEND} )" 20[[ ${FINDLIB_USE} ]] && DEPEND="${FINDLIB_USE}? ( ${DEPEND} )"
21 eerror "Please report this bug on gentoo's bugzilla, assigning to ml@gentoo.org" 26 eerror "Please report this bug on gentoo's bugzilla, assigning to ml@gentoo.org"
22 die "ocamlfind executabled not found" 27 die "ocamlfind executabled not found"
23 fi 28 fi
24} 29}
25 30
31# @FUNCTION: findlib_src_preinst
32# @DESCRIPTION:
26# Prepare the image for a findlib installation. 33# Prepare the image for a findlib installation.
27# We use the stublibs style, so no ld.conf needs to be 34# We use the stublibs style, so no ld.conf needs to be
28# updated when a package installs C shared libraries. 35# updated when a package installs C shared libraries.
29findlib_src_preinst() { 36findlib_src_preinst() {
30 check_ocamlfind 37 check_ocamlfind
38 # stublibs style 45 # stublibs style
39 dodir ${destdir}/stublibs || die "dodir failed" 46 dodir ${destdir}/stublibs || die "dodir failed"
40 export OCAMLFIND_LDCONF=ignore 47 export OCAMLFIND_LDCONF=ignore
41} 48}
42 49
50# @FUNCTION: findlib_src_install
51# @DESCRIPTION:
43# Install with a properly setup findlib 52# Install with a properly setup findlib
44findlib_src_install() { 53findlib_src_install() {
45 findlib_src_preinst 54 findlib_src_preinst
46 make DESTDIR=${D} "$@" install || die "make failed" 55 make DESTDIR=${D} "$@" install || die "make failed"
47} 56}

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

  ViewVC Help
Powered by ViewVC 1.1.20