dev-ml/io-page: use ounit2

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-16 18:48:55 +02:00
parent bba709c37b
commit c99898eeed
3 changed files with 43 additions and 5 deletions

View File

@@ -0,0 +1,34 @@
From d6432606b9d76ce399f47263992d39c306eb2fcf Mon Sep 17 00:00:00 2001
From: Alessandro-Barbieri <lssndrbarbieri@gmail.com>
Date: Sat, 16 Apr 2022 18:45:58 +0200
Subject: [PATCH] switch to ounit2
Signed-off-by: Alessandro-Barbieri <lssndrbarbieri@gmail.com>
---
io-page.opam | 2 +-
lib_test/dune | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/io-page.opam b/io-page.opam
index eca0112..b72af2e 100644
--- a/io-page.opam
+++ b/io-page.opam
@@ -11,7 +11,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.6"}
"cstruct" {>= "2.0.0"}
- "ounit" {with-test}
+ "ounit2" {with-test}
]
build: [
["dune" "subst"] {dev}
diff --git a/lib_test/dune b/lib_test/dune
index 9eb6161..f23440b 100644
--- a/lib_test/dune
+++ b/lib_test/dune
@@ -1,4 +1,4 @@
(test
(name portable)
(package io-page)
- (libraries io-page oUnit))
+ (libraries io-page ounit2))

View File

@@ -23,7 +23,7 @@ RDEPEND="
"
DEPEND="
${RDEPEND}
test? ( dev-ml/ounit )
test? ( dev-ml/ounit2 )
unix? ( dev-ml/configurator )
"

View File

@@ -8,7 +8,10 @@ inherit dune
MY_P="${PN}-v${PV}"
DESCRIPTION="IO memory page library for Mirage backends"
HOMEPAGE="https://github.com/mirage/io-page"
HOMEPAGE="
https://github.com/mirage/io-page
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}"
@@ -18,13 +21,14 @@ KEYWORDS="~amd64"
IUSE="ocamlopt test"
RDEPEND="
dev-ml/bigarray-compat
dev-ml/cstruct
dev-ml/bigarray-compat:=
dev-ml/cstruct:=
"
DEPEND="
${RDEPEND}
test? ( dev-ml/ounit )
test? ( dev-ml/ounit2 )
"
BDEPEND="virtual/pkgconfig"
RESTRICT="!test? ( test )"
PATCHES="${FILESDIR}/${P}-ounit2.patch"