summaryrefslogtreecommitdiff
path: root/dev-ml/unidecode
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ml/unidecode')
-rw-r--r--dev-ml/unidecode/Manifest1
-rw-r--r--dev-ml/unidecode/files/unidecode-0.4.0-test.patch8
-rw-r--r--dev-ml/unidecode/metadata.xml12
-rw-r--r--dev-ml/unidecode/unidecode-0.4.0.ebuild28
4 files changed, 49 insertions, 0 deletions
diff --git a/dev-ml/unidecode/Manifest b/dev-ml/unidecode/Manifest
new file mode 100644
index 000000000000..892a54afe5f9
--- /dev/null
+++ b/dev-ml/unidecode/Manifest
@@ -0,0 +1 @@
+DIST unidecode-0.4.0.tar.gz 20571 BLAKE2B 864888e1f3db1a784f847f49584fcb6da93ad30066b8ea5764395b25d3d86c47749a98d13771107dbd6c68dacb2ff4e6e2cb9370e8adb35d84e8149b93122ccd SHA512 a411685ddb1d52585251eff3e2cd56fc9b4e91dcfceff424d7cfd5f721be73561d7a8e9223ecaeeda6178b02e5f6df74d50a49d4ce61d72a7d3fa1e8aefe5cf3
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/metadata.xml b/dev-ml/unidecode/metadata.xml
new file mode 100644
index 000000000000..0910e60393d3
--- /dev/null
+++ b/dev-ml/unidecode/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ml@gentoo.org</email>
+ <name>ML</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">geneweb/unidecode</remote-id>
+ </upstream>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>
diff --git a/dev-ml/unidecode/unidecode-0.4.0.ebuild b/dev-ml/unidecode/unidecode-0.4.0.ebuild
new file mode 100644
index 000000000000..35cfaf39fd6c
--- /dev/null
+++ b/dev-ml/unidecode/unidecode-0.4.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit dune
+
+DESCRIPTION="Convert unicode strings into its ASCII representation"
+HOMEPAGE="https://github.com/geneweb/unidecode"
+SRC_URI="https://github.com/geneweb/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ocamlopt test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=""
+DEPEND="test? ( dev-ml/ounit2 )"
+BDEPEND=""
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
+src_install() {
+ dune_src_install
+ mv "${D}"/usr/bin/unidecode{,-gw} || die
+}