commit:     5341e5e0817f7485e5bfb43eb49757241abff14c
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 10 21:26:56 2021 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 21:26:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5341e5e0

dev-ml/unidecode: fix test

Closes: https://bugs.gentoo.org/764875
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/unidecode/files/unidecode-0.4.0-test.patch |  8 ++++++++
 dev-ml/unidecode/unidecode-0.4.0.ebuild           | 10 +++++++---
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/dev-ml/unidecode/files/unidecode-0.4.0-test.patch 
b/dev-ml/unidecode/files/unidecode-0.4.0-test.patch
new file mode 100644
index 00000000000..039de4e1b56
--- /dev/null
+++ b/dev-ml/unidecode/files/unidecode-0.4.0-test.patch
@@ -0,0 +1,8 @@
+--- a/test/test_data.ml        2021-01-10 22:20:26.800309802 +0100
++++ b/test/test_data.ml        2021-01-10 22:20:36.290138477 +0100
+@@ -46,4 +46,4 @@
+    Norvegi, Finland, Estoni, Latvi, Litva, Pol'cho, Belarous', OUkraina, \
+    Gurji, Azerbaidjan, Kazakhstan, KHitad, Mongol, KHoito Solongos geһen \
+    arban durben gurenuudte khile zourydag, mun ouһaar ANOU-ai Alyaska \
+-   mojotoi bolon YApon oulastai khile negetei. "
++   mojotoi bolon YApon oulastai khile negetei."

diff --git a/dev-ml/unidecode/unidecode-0.4.0.ebuild 
b/dev-ml/unidecode/unidecode-0.4.0.ebuild
index b688317ca2b..8af7cc49337 100644
--- a/dev-ml/unidecode/unidecode-0.4.0.ebuild
+++ b/dev-ml/unidecode/unidecode-0.4.0.ebuild
@@ -13,8 +13,12 @@ 
SRC_URI="https://github.com/geneweb/${PN}/archive/v${PV}.tar.gz
 LICENSE="GPL-3"
 SLOT="0/${PV}"
 KEYWORDS="~amd64 ~x86"
-IUSE="+ocamlopt"
+IUSE="+ocamlopt test"
+RESTRICT="!test? ( test )"
 
-DEPEND=""
-RDEPEND="${DEPEND}"
+RDEPEND=""
+DEPEND="${DEPEND}
+       test? ( dev-ml/ounit2 )"
 BDEPEND=""
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )

Reply via email to