mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
dev-ml/mirage-flow: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
46
dev-ml/mirage-flow/mirage-flow-3.0.0.ebuild
Normal file
46
dev-ml/mirage-flow/mirage-flow-3.0.0.ebuild
Normal file
@@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune multiprocessing
|
||||
|
||||
DESCRIPTION="Flow implementations for Mirage"
|
||||
HOMEPAGE="https://github.com/mirage/mirage-flow"
|
||||
SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="combinators ocamlopt test unix"
|
||||
|
||||
RDEPEND="
|
||||
combinators? ( dev-ml/mirage-clock )
|
||||
dev-ml/cstruct
|
||||
dev-ml/fmt
|
||||
dev-ml/logs
|
||||
dev-ml/lwt
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-ml/alcotest )
|
||||
"
|
||||
|
||||
REQUIRED_USE="test? ( combinators unix )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_compile() {
|
||||
local pkgs="mirage-flow"
|
||||
for u in combinators unix ; do
|
||||
if use ${u} ; then
|
||||
pkgs="${pkgs},mirage-flow-${u}"
|
||||
fi
|
||||
done
|
||||
dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune_src_install mirage-flow
|
||||
use combinators && dune_src_install mirage-flow-combinators
|
||||
use unix && dune_src_install mirage-flow-unix
|
||||
}
|
||||
Reference in New Issue
Block a user