dev-ml/ounit: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-05 13:32:27 +02:00
parent f12c802115
commit 9841ebdc9f
3 changed files with 55 additions and 0 deletions

1
dev-ml/ounit/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST ounit-2.2.6.tbz 58186 BLAKE2B 6d6305eebef450968dc0a87c01f0a591faa855cc829fd130783c1b3d1b0546e2a9e167be397314ed69bceb7afea222551940cbb60e502bb04635a7a4273ba8af SHA512 d7cb36a1fe245d02afab606cd1ee755a178ee4cb18fbbfec1df32baa88fa90ef6c9a50d9fd5bde46c7fd9c481f2debe4bafac75c4e3bdfbdb63fc18b0ccce3cc

12
dev-ml/ounit/metadata.xml Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<use>
<flag name="lwt">This library contains helper functions for building Lwt tests using OUnit</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,42 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit dune findlib multiprocessing
DESCRIPTION="Unit testing framework for OCaml"
HOMEPAGE="https://github.com/gildor478/ounit"
SRC_URI="https://github.com/gildor478/ounit/releases/download/v${PV}/${P}.tbz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="lwt ocamlopt"
RDEPEND="
dev-ml/base-bytes:=
dev-ml/base-unix:=
dev-ml/seq:=
dev-ml/stdlib-shims:=
lwt? ( dev-ml/lwt:= )
"
DEPEND="${RDEPEND}"
src_compile() {
local pkgs="ounit,ounit2"
use lwt && pkgs="${pkgs},ounit-lwt,ounit2-lwt"
dune build -p "${pkgs}" -j $(makeopts_jobs) || die
}
src_install() {
for p in ounit{,2} ; do
dune_src_install "${p}"
done
if use lwt; then
for p in ounit{,2}-lwt ; do
dune_src_install "${p}"
done
fi
}