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

Diff of /eclass/findlib.eclass

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

Revision 1.1 Revision 1.2
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.1 2004/08/21 18:09:03 mattam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/findlib.eclass,v 1.2 2004/08/24 14:32:56 mattam Exp $
4# 4#
5# Author : Matthieu Sozeau <mattam@gentoo.org> 5# Author : Matthieu Sozeau <mattam@gentoo.org>
6# 6#
7# ocamlfind (a.k.a. findlib) eclass 7# ocamlfind (a.k.a. findlib) eclass
8# 8#
29 check_ocamlfind 29 check_ocamlfind
30 30
31 # destdir is the ocaml sitelib 31 # destdir is the ocaml sitelib
32 local destdir=`ocamlfind printconf destdir` 32 local destdir=`ocamlfind printconf destdir`
33 33
34 dodir ${destdir} 34 dodir ${destdir} || die "dodir failed"
35 export OCAMLFIND_DESTDIR=${D}${destdir} 35 export OCAMLFIND_DESTDIR=${D}${destdir}
36 36
37 # stublibs style 37 # stublibs style
38 dodir ${destdir}/stublibs 38 dodir ${destdir}/stublibs || die "dodir failed"
39 export OCAMLFIND_LDCONF=ignore 39 export OCAMLFIND_LDCONF=ignore
40} 40}
41 41
42# Install with a properly setup findlib 42# Install with a properly setup findlib
43findlib_src_install() { 43findlib_src_install() {
44 findlib_src_preinst 44 findlib_src_preinst
45 make DESTDIR=${D} "$@" install 45 make DESTDIR=${D} "$@" install || die "make failed"
46} 46}

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

  ViewVC Help
Powered by ViewVC 1.1.20