summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2017-02-03 00:57:56 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2017-02-03 00:57:56 +0100
commite6ec50a71159a6ffd5f76ed222db6c6b03f42116 (patch)
treec1ab08207cc8117898ec9fe311c1e8ab31f426fb /dev-python/pyocr
parentdev-python/pyocr: drop old (diff)
downloadgentoo-e6ec50a71159a6ffd5f76ed222db6c6b03f42116.tar.gz
gentoo-e6ec50a71159a6ffd5f76ed222db6c6b03f42116.tar.bz2
gentoo-e6ec50a71159a6ffd5f76ed222db6c6b03f42116.zip
dev-python/pyocr: 0.4.6 bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-python/pyocr')
-rw-r--r--dev-python/pyocr/Manifest1
-rw-r--r--dev-python/pyocr/pyocr-0.4.6.ebuild31
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/pyocr/Manifest b/dev-python/pyocr/Manifest
index 66c842ce71a7..7618e09477f3 100644
--- a/dev-python/pyocr/Manifest
+++ b/dev-python/pyocr/Manifest
@@ -1 +1,2 @@
DIST pyocr-0.4.5.tar.gz 1281832 SHA256 ac14f15d396a501a5441b7fb9460e809c416572b1dc8da8bd6c998f7704301e5 SHA512 60a78864f3a1d2eb665941ecfa90eb6d04668b187fa140de8131ee6097526a75d65e05257233b4821048eb67382bb9131d6916bd70367fd7232ceecbb9dc4398 WHIRLPOOL 680a81999e08c1e066b5fcbd251d283969f2b7348c1b94fd6beb350ea5ed9723e9f170aed121d7df7ff1a24354b449440cab84f4bbcc0e567ca4b90b6d0c345c
+DIST pyocr-0.4.6.tar.gz 1282437 SHA256 1b8b8eac73de03750857edfd58cd8b4b73f025493bd08300121a6c26591ed78a SHA512 3543ef444dc729506574120bafaa192a7b2a689ab408cf59960e2b0be2d9a2eb13fa3bcb02c27022ab48257e8ceac824ca9b8d7e9850ddeef0a877117b889c11 WHIRLPOOL a3e8e77889d5655529fb093e4d8f5206945b135cb0703bfaef0a885ccd3abe8b92092ae82b14cb30ae8f10dd752e2665fa2042b586221ce7431913e18ee59924
diff --git a/dev-python/pyocr/pyocr-0.4.6.ebuild b/dev-python/pyocr/pyocr-0.4.6.ebuild
new file mode 100644
index 000000000000..b1c7e5f2c97d
--- /dev/null
+++ b/dev-python/pyocr/pyocr-0.4.6.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="An optical character recognition (OCR) tool wrapper for python"
+HOMEPAGE="https://github.com/jflesch/pyocr"
+SRC_URI="https://github.com/jflesch/pyocr/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+IUSE="cuneiform +tesseract"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="cuneiform? ( app-text/cuneiform )
+ tesseract? ( app-text/tesseract )
+ dev-python/pillow
+ dev-python/six"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="|| ( cuneiform tesseract )"
+
+RESTRICT="test" # reguires tesseract[l10n_fr,l10n_en,l10n_jp]
+
+python_test() {
+ ${EPYTHON} run_tests.py || die
+}