commit: 8b65fd2815b0590000d3ca87975210b3587569cd Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Sat Apr 16 13:09:00 2022 +0000 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> CommitDate: Sat Apr 16 16:20:06 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8b65fd28
dev-ml/qmp: update HOMEPAGE Closes: https://bugs.gentoo.org/838805 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> dev-ml/qmp/files/qmp-0.17.0-ounit2.patch | 66 ++++++++++++++++++++++++++++++++ dev-ml/qmp/qmp-0.17.0.ebuild | 14 ++++--- 2 files changed, 75 insertions(+), 5 deletions(-) diff --git a/dev-ml/qmp/files/qmp-0.17.0-ounit2.patch b/dev-ml/qmp/files/qmp-0.17.0-ounit2.patch new file mode 100644 index 000000000..b5d86aac3 --- /dev/null +++ b/dev-ml/qmp/files/qmp-0.17.0-ounit2.patch @@ -0,0 +1,66 @@ +From a3ebbbd2760e4ba3774529a6975ac868baff091c Mon Sep 17 00:00:00 2001 +From: Alessandro Barbieri <[email protected]> +Date: Sat, 16 Apr 2022 15:03:29 +0200 +Subject: [PATCH 1/3] use ounit2 + +--- + lib_test/dune | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib_test/dune b/lib_test/dune +index acc68b9..a587594 100644 +--- a/lib_test/dune ++++ b/lib_test/dune +@@ -6,5 +6,5 @@ + + (executable + (name messages) +- (libraries libqmp oUnit) ++ (libraries libqmp ounit2) + ) + +From d09f6df5f07eed691d77136cca4ea36a98e630c3 Mon Sep 17 00:00:00 2001 +From: Alessandro Barbieri <[email protected]> +Date: Sat, 16 Apr 2022 15:05:34 +0200 +Subject: [PATCH 2/3] install ounit2 + +--- + README.md | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/README.md b/README.md +index cc6df4b..0595368 100644 +--- a/README.md ++++ b/README.md +@@ -8,7 +8,7 @@ OCaml implementation of the Qemu Monitor Protocol (QMP) + Install the dependencies using OPAM: + + ```sh +-opam install yojson cmdliner dune ounit ++opam install yojson cmdliner dune ounit2 + ``` + + Build the library, tests, and CLI: + +From dcd85772065d646d0272160be14ebf9e28bb6bde Mon Sep 17 00:00:00 2001 +From: Alessandro Barbieri <[email protected]> +Date: Sat, 16 Apr 2022 15:06:05 +0200 +Subject: [PATCH 3/3] depend on ounit2 + +--- + qmp.opam | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/qmp.opam b/qmp.opam +index 242b3c8..e36fb3f 100644 +--- a/qmp.opam ++++ b/qmp.opam +@@ -18,7 +18,7 @@ depends: [ + "dune" {build} + "yojson" + "cmdliner" +- "ounit" {with-test} ++ "ounit2" {with-test} + ] + dev-repo: "git://github.com/xapi-project/ocaml-qmp" + synopsis: "OCaml implementation of a Qemu Message Protocol (QMP) client" diff --git a/dev-ml/qmp/qmp-0.17.0.ebuild b/dev-ml/qmp/qmp-0.17.0.ebuild index 4e3f4699c..b6b2f2a57 100644 --- a/dev-ml/qmp/qmp-0.17.0.ebuild +++ b/dev-ml/qmp/qmp-0.17.0.ebuild @@ -8,7 +8,10 @@ inherit dune MYPN="ocaml-${PN}" DESCRIPTION="A Qemu Message Protocol (QMP) client in OCaml" -HOMEPAGE="https://github.com/xapi-project/ocaml-qmp" +HOMEPAGE=" + https://github.com/xapi-project/ocaml-qmp + https://opam.ocaml.org/packages/qmp/ +" SRC_URI="https://github.com/xapi-project/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${MYPN}-${PV}" @@ -18,13 +21,14 @@ KEYWORDS="~amd64" IUSE="ocamlopt test" DEPEND=" - dev-ml/base-unix - dev-ml/yojson - dev-ml/cmdliner + dev-ml/base-unix:= + dev-ml/yojson:= + dev-ml/cmdliner:= " RDEPEND=" ${DEPEND} - test? ( dev-ml/ounit ) + test? ( dev-ml/ounit2 ) " RESTRICT="!test? ( test )" +PATCHES="${FILESDIR}/${P}-ounit2.patch"
