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

EAPI=8

inherit dune

DESCRIPTION="Binding to libuv: cross-platform asynchronous I/O"
HOMEPAGE="https://github.com/aantron/luv"
SRC_URI="https://github.com/aantron/${PN}/releases/download/${PV}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"

RDEPEND="
	<=dev-lang/ocaml-4.13:=[ocamlopt?]
	dev-libs/libuv:=
	dev-ml/ocaml-ctypes:=
	dev-ml/result:=
"
DEPEND="${RDEPEND}"
BDEPEND="sys-devel/gnuconfig
	test? ( dev-ml/alcotest )"

src_prepare() {
	default

	cp "${BROOT}"/usr/share/gnuconfig/config.{guess,sub} src/c/vendor/configure/ || die
}