commit:     5586288de89616ebaf454e28a9c4b6643b7ea548
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Apr 16 18:02:39 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Apr 16 18:27:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5586288d

dev-ml/vchan: update HOMEPAGE

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-ml/vchan/files/vchan-6.0.1-ounit2.patch | 78 +++++++++++++++++++++++++++++
 dev-ml/vchan/vchan-6.0.1.ebuild             | 32 ++++++------
 2 files changed, 96 insertions(+), 14 deletions(-)

diff --git a/dev-ml/vchan/files/vchan-6.0.1-ounit2.patch 
b/dev-ml/vchan/files/vchan-6.0.1-ounit2.patch
new file mode 100644
index 000000000..86a8bdc38
--- /dev/null
+++ b/dev-ml/vchan/files/vchan-6.0.1-ounit2.patch
@@ -0,0 +1,78 @@
+From 56fe85c077bb3dfe936dcf9eaa96229a223d2028 Mon Sep 17 00:00:00 2001
+From: Alessandro-Barbieri <[email protected]>
+Date: Sat, 16 Apr 2022 20:00:53 +0200
+Subject: [PATCH] use ounit2
+
+Signed-off-by: Alessandro-Barbieri <[email protected]>
+---
+ .coverage.sh    | 2 +-
+ lib_test/dune   | 2 +-
+ vchan-unix.opam | 2 +-
+ vchan-xen.opam  | 2 +-
+ vchan.opam      | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/.coverage.sh b/.coverage.sh
+index bd8dcc8..c263bb7 100644
+--- a/.coverage.sh
++++ b/.coverage.sh
+@@ -11,7 +11,7 @@ if [ -z "$KEEP" ]; then trap "popd; rm -rf $COVERAGE_DIR" 
EXIT; fi
+ $(which cp) -r ../* .
+ 
+ eval `opam config env`
+-opam install -y bisect_ppx oasis ocveralls ounit
++opam install -y bisect_ppx oasis ocveralls ounit2
+ 
+ sed -i 's/BuildDepends:/BuildDepends: bisect_ppx,/g' _oasis
+ oasis setup
+diff --git a/lib_test/dune b/lib_test/dune
+index ce2e21b..c8fa076 100644
+--- a/lib_test/dune
++++ b/lib_test/dune
+@@ -1,6 +1,6 @@
+ (executables
+  (names test)
+- (libraries cmdliner lwt lwt.unix vchan oUnit))
++ (libraries cmdliner lwt lwt.unix vchan ounit2))
+ 
+ (alias
+  (name runtest)
+diff --git a/vchan-unix.opam b/vchan-unix.opam
+index c2d3194..0c948ec 100644
+--- a/vchan-unix.opam
++++ b/vchan-unix.opam
+@@ -26,7 +26,7 @@ depends: [
+   "xen-gnt"
+   "fmt" {>= "0.8.7"}
+   "cmdliner" {with-test}
+-  "ounit" {with-test}
++  "ounit2" {with-test}
+ ]
+ build: [
+   ["dune" "subst"] {dev}
+diff --git a/vchan-xen.opam b/vchan-xen.opam
+index 4bd58f5..a461dd4 100644
+--- a/vchan-xen.opam
++++ b/vchan-xen.opam
+@@ -21,7 +21,7 @@ depends: [
+   "mirage-xen" {>= "7.0.0"}
+   "xenstore_transport" {>= "1.0.0"}
+   "sexplib"
+-  "ounit" {with-test}
++  "ounit2" {with-test}
+   "cmdliner" {with-test}
+ ]
+ build: [
+diff --git a/vchan.opam b/vchan.opam
+index b7ce1a2..bb42aa9 100644
+--- a/vchan.opam
++++ b/vchan.opam
+@@ -25,7 +25,7 @@ depends: [
+   "xenstore_transport" {>= "1.0.0"}
+   "sexplib"
+   "cmdliner" {with-test}
+-  "ounit" {with-test}
++  "ounit2" {with-test}
+ ]
+ build: [
+   ["dune" "subst"] {dev}

diff --git a/dev-ml/vchan/vchan-6.0.1.ebuild b/dev-ml/vchan/vchan-6.0.1.ebuild
index d21da75dc..3c72529bc 100644
--- a/dev-ml/vchan/vchan-6.0.1.ebuild
+++ b/dev-ml/vchan/vchan-6.0.1.ebuild
@@ -8,7 +8,10 @@ inherit dune multiprocessing
 MY_PN="ocaml-${PN}"
 
 DESCRIPTION="Pure OCaml implementation of the vchan shared-memory 
communication protocol"
-HOMEPAGE="https://github.com/mirage/ocaml-vchan";
+HOMEPAGE="
+       https://github.com/mirage/ocaml-vchan
+       https://opam.ocaml.org/packages/vchan/
+"
 SRC_URI="https://github.com/mirage/${MY_PN}/releases/download/v${PV}/${P}.tbz";
 
 LICENSE="ISC"
@@ -17,32 +20,33 @@ KEYWORDS="~amd64"
 IUSE="ocamlopt test unix xen"
 
 RDEPEND="
-       dev-ml/lwt
-       dev-ml/ppx_sexp_conv
-       dev-ml/io-page
-       dev-ml/mirage-flow
-       dev-ml/xenstore
-       dev-ml/xenstore-clients
-       dev-ml/sexplib
-       dev-ml/cstruct[ppx]
+       dev-ml/lwt:=
+       dev-ml/ppx_sexp_conv:=
+       dev-ml/io-page:=
+       dev-ml/mirage-flow:=
+       dev-ml/xenstore:=
+       dev-ml/xenstore-clients:=
+       dev-ml/sexplib:=
+       dev-ml/cstruct:=[ppx]
 
        unix? (
-               dev-ml/xen-evtchn[unix]
-               dev-ml/xen-gnt[unix]
-               dev-ml/fmt
+               dev-ml/xen-evtchn:=[unix]
+               dev-ml/xen-gnt:=[unix]
+               dev-ml/fmt:=
        )
-       xen? ( dev-ml/mirage-xen )
+       xen? ( dev-ml/mirage-xen:= )
 "
 DEPEND="
        ${RDEPEND}
        test? (
                dev-ml/cmdliner
-               dev-ml/ounit
+               dev-ml/ounit2
        )
 "
 
 RESTRICT="!test? ( test )"
 REQUIRED_USE="test? ( unix xen )"
+PATCHES="${FILESDIR}/${P}-ounit2.patch"
 
 src_compile() {
        local pkgs="vchan"

Reply via email to