commit: 96c6dbe2c79f0cb60a234636f04a605b86f908fb
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 13 11:30:07 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 13 15:23:31 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c6dbe2
dev-ml/ocaml-gettext-stub: convert to dev-ml/ounit2 for tests
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.4.2-r1.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.4.2-r1.ebuild
b/dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.4.2-r1.ebuild
index c47570d7811..3d79cb05c00 100644
--- a/dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.4.2-r1.ebuild
+++ b/dev-ml/ocaml-gettext-stub/ocaml-gettext-stub-0.4.2-r1.ebuild
@@ -33,6 +33,13 @@ DEPEND="
${RDEPEND}
test? (
dev-ml/ocaml-fileutils
- dev-ml/ounit[ocamlopt=]
+ dev-ml/ounit2[ocamlopt=]
)
"
+
+src_prepare() {
+ default
+
+ # Port to dev-ml/ounit2
+ sed -i -e 's/oUnit/ounit2/' test/{,common,test-camomile,test-stub}/dune
|| die
+}