summaryrefslogtreecommitdiff
blob: 28e42d65866dbede88d230af21a5833b641c9fa0 (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
33
34
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlnet/ocamlnet-0.95.ebuild,v 1.6 2004/06/25 00:02:30 agriffis Exp $

DESCRIPTION="Modules for O'Caml application-level Internet protocols"
HOMEPAGE="http://ocamlnet.sourceforge.net"
SRC_URI="mirror://sourceforge/ocamlnet/${P}.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ~ppc"

DEPEND=">=dev-ml/pcre-ocaml-4.31.0
	>=dev-ml/findlib-0.8"

IUSE=""
S="${WORKDIR}/${P}/src"

src_compile() {
	./configure || die
	make all opt || die
}

src_install() {
	# must create destdir beforehand
	destdir=`ocamlfind printconf destdir`
	mkdir -p ${D}${destdir} || die
	# install
	make OCAMLFIND_DESTDIR=${D}${destdir} install || die

	cd ${WORKDIR}/${P}
	dodoc README
	dohtml doc/intro/html/*
}