blob: 63160322fcc18c8fcc2fb60ddb87a3a0b2b0b72a (
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
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune
DESCRIPTION="Cooperative light-weight thread library for OCaml"
SRC_URI="https://github.com/ocsigen/lwt/archive/${PV}.tar.gz -> ${P}.tar.gz"
HOMEPAGE="http://ocsigen.org/lwt"
SLOT="0/${PV}"
LICENSE="LGPL-2.1-with-linking-exception"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
IUSE="+ocamlopt"
DEPEND="
dev-libs/libev
dev-ml/luv:=
dev-ml/mmap:=
dev-ml/ocplib-endian:=
dev-ml/ppx_let:=
dev-ml/ppxlib:=
dev-ml/react:=
dev-ml/result:=
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-ml/cppo
dev-ml/findlib
"
# "domainslib" is unpackaged.
OCAML_SUBPACKAGES=(
lwt
lwt_luv
lwt_ppx
lwt_ppx_let
lwt_react
)
src_prepare() {
sed -i "s| seq||" "${S}"/src/core/dune || die
default
}
src_compile() {
dune-compile ${OCAML_SUBPACKAGES[@]}
}
src_test() {
dune-test ${OCAML_SUBPACKAGES[@]}
}
src_install() {
dune-install ${OCAML_SUBPACKAGES[@]}
einstalldocs
}
|