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 0000000000000..039de4e1b5645 --- /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 b688317ca2ba5..8af7cc493372d 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 )