summaryrefslogtreecommitdiff
blob: 05b15f64a4a3ab8ad8f0dc4b3a1b67c29b83e62e (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-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

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 x86"
IUSE="+ocamlopt"

DEPEND="
	dev-ml/seq:=
	dev-ml/result:=
	dev-ml/mmap:=
	dev-ml/ocplib-endian:=
	>=dev-ml/ppxlib-0.18.0:=
	dev-ml/react:=
	dev-ml/dune-configurator:=
	dev-libs/libev"
RDEPEND="${DEPEND}"
BDEPEND="
	>=dev-ml/cppo-1.6.6
	dev-ml/findlib"

# backported from https://github.com/ocsigen/lwt/pull/807
PATCHES=(
	"${FILESDIR}"/${PN}-5.3.0-ppxlib-0.18.0.patch
	"${FILESDIR}"/${P}-ocaml-4.12.patch
)