Files
guru/dev-ml/io-page/io-page-2.2.0.ebuild
Alessandro Barbieri c99898eeed dev-ml/io-page: use ounit2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-04-16 20:27:38 +02:00

43 lines
856 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune multiprocessing
MY_P="${PN}-v${PV}"
DESCRIPTION="IO memory page library for Mirage backends"
HOMEPAGE="https://github.com/mirage/io-page"
SRC_URI="https://github.com/mirage/io-page/releases/download/v${PV}/${MY_P}.tbz"
S="${WORKDIR}/${MY_P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="ocamlopt test unix"
RDEPEND="
dev-ml/bigarray-compat
dev-ml/cstruct
"
DEPEND="
${RDEPEND}
test? ( dev-ml/ounit2 )
unix? ( dev-ml/configurator )
"
RESTRICT="!test? ( test )"
REQUIRED_USE="test? ( unix )"
src_compile() {
local pkgs="io-page"
use unix && pkgs="${pkgs},io-page-unix"
dune build -p "${pkgs}" -j $(makeopts_jobs) || die
}
src_install() {
dune_src_install io-page
use unix && dune_src_install io-page-unix
}