blob: 72cb4775b541e2097620b34aeb0864f1a5224c15 (
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
35
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/netclient/netclient-0.90.4.ebuild,v 1.1 2005/03/27 15:18:54 mattam Exp $
inherit findlib
DESCRIPTION="HTTP 1.0/1.1 client OCaml component"
HOMEPAGE="http://www.ocaml-programming.de/programming/netclient.html"
LICENSE="as-is"
DEPEND=">=dev-lang/ocaml-3.08
dev-ml/equeue
dev-ml/ocamlnet
threads? ( dev-ml/xstr )"
SRC_URI="http://www.ocaml-programming.de/packages/${P}.tar.gz"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="doc threads"
src_compile() {
local targets="all opt"
use threads || targets="non_mt non_mt_opt "
make ${targets} || die "Compilation failed"
}
src_install () {
findlib_src_install
dodoc LICENSE README
if use doc ; then
for dir in examples/*
do
insinto /usr/share/doc/${PF}/$dir
doins $dir/*
done
fi
}
|