summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-01-10 22:26:56 +0100
committerAlfredo Tupone <tupone@gentoo.org>2021-01-10 22:26:56 +0100
commit5341e5e0817f7485e5bfb43eb49757241abff14c (patch)
tree7170d9af6785dc3861af2ee043bde79b0a22f2c6 /dev-ml/unidecode
parentdev-util/meson: 0.56.2 bump (diff)
downloadgentoo-5341e5e0817f7485e5bfb43eb49757241abff14c.tar.gz
gentoo-5341e5e0817f7485e5bfb43eb49757241abff14c.tar.bz2
gentoo-5341e5e0817f7485e5bfb43eb49757241abff14c.zip
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@gentoo.org>
Diffstat (limited to 'dev-ml/unidecode')
-rw-r--r--dev-ml/unidecode/files/unidecode-0.4.0-test.patch8
-rw-r--r--dev-ml/unidecode/unidecode-0.4.0.ebuild10
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 000000000000..039de4e1b564
--- /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 b688317ca2ba..8af7cc493372 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 )