summaryrefslogtreecommitdiff
blob: bfb7e1625cf2d79df937025eaded158b6ecece52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/findlib/findlib-0.8.ebuild,v 1.9 2004/07/14 01:38:58 lv Exp $

IUSE=""

DESCRIPTION="OCaml tool to find/use non-standard packages."
HOMEPAGE="http://www.ocaml-programming.de/programming/download-caml.html"
SRC_URI="http://www.ocaml-programming.de/packages/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~sparc ~amd64"

DEPEND="dev-lang/ocaml"

src_compile() {
	./configure -bindir /usr/bin -mandir /usr/share/man \
		-sitelib /usr/lib/ocaml/site-packages/ \
		-config /usr/lib/ocaml/site-packages/findlib/findlib.conf || die "configure failed"

	make all || die
	make opt || die # optimized code
}

src_install() {
	make PREFIX=${D} install || die

	cd ${S}/doc
	dodoc QUICKSTART README
	dohtml html/*
}