gentoo-ebuilds/dev-ml/luv/luv-0.5.11-r2.ebuild
Alfredo Tupone f5a2745f48
dev-ml/luv: readd luv-0.5.11-r2.ebuild
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-04-12 21:27:15 +02:00

37 lines
845 B
Bash

# Copyright 1999-2025 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 ~riscv x86"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-lang/ocaml:=[ocamlopt?]
dev-libs/libuv:=
dev-ml/ocaml-ctypes:=[ocamlopt?]
dev-ml/result:=[ocamlopt?]
dev-ml/integers:=
"
DEPEND="${RDEPEND}"
BDEPEND="sys-devel/gnuconfig
test? ( dev-ml/alcotest[ocamlopt?] )"
src_prepare() {
default
cp "${BROOT}"/usr/share/gnuconfig/config.{guess,sub} src/c/vendor/configure/ || die
}
src_compile() {
LUV_USE_SYSTEM_LIBUV=yes dune_src_compile
}