summaryrefslogtreecommitdiff
blob: cd8c6a3b6cccef04c0da55d689b85664f90f1ace (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit findlib eutils

DESCRIPTION="Dereference URIs into communication channels for Async or Lwt"
HOMEPAGE="https://github.com/mirage/ocaml-conduit"
SRC_URI="https://github.com/mirage/ocaml-conduit/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE=""

DEPEND="
	dev-lang/ocaml:=
	dev-ml/sexplib:=
	dev-ml/stringext:=
	dev-ml/ocaml-uri:=
	dev-ml/logs:=
	dev-ml/ocaml-cstruct:=
	dev-ml/ocaml-ipaddr:=

	>=dev-ml/lwt-3:=
	dev-ml/async:=
	dev-ml/ocaml-dns:=
	dev-ml/ocaml-ssl:=
"
RDEPEND="${DEPEND}"
DEPEND="${DEPEND}
	dev-ml/findlib
	dev-ml/ocamlbuild
	dev-ml/ppx_driver
	dev-ml/ppx_optcomp
	dev-ml/ppx_sexp_conv
"

DOCS=( TODO.md README.md CHANGES )

src_prepare() {
	epatch "${FILESDIR}/lwt3.patch"
}

src_install() {
	findlib_src_preinst
	default
}