commit:     07da955dd583946e61a0f40f962f251c03ca70e9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 13 11:27:16 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 13 15:23:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07da955d

dev-ml/ocaml-gettext: convert to dev-ml/ounit2 for tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ml/ocaml-gettext/ocaml-gettext-0.4.2.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-ml/ocaml-gettext/ocaml-gettext-0.4.2.ebuild 
b/dev-ml/ocaml-gettext/ocaml-gettext-0.4.2.ebuild
index 62186a50ccd..640af1cd5c1 100644
--- a/dev-ml/ocaml-gettext/ocaml-gettext-0.4.2.ebuild
+++ b/dev-ml/ocaml-gettext/ocaml-gettext-0.4.2.ebuild
@@ -28,9 +28,16 @@ RDEPEND="
 "
 DEPEND="
        ${RDEPEND}
-       test? ( dev-ml/ounit[ocamlopt=] )
+       test? ( 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
+}
+
 src_install() {
        dune_src_install
 }

Reply via email to