From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/pyocr/Manifest | 1 + dev-python/pyocr/metadata.xml | 24 ++++++++++++++++++++++++ dev-python/pyocr/pyocr-0.7.2.ebuild | 26 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 dev-python/pyocr/Manifest create mode 100644 dev-python/pyocr/metadata.xml create mode 100644 dev-python/pyocr/pyocr-0.7.2.ebuild (limited to 'dev-python/pyocr') diff --git a/dev-python/pyocr/Manifest b/dev-python/pyocr/Manifest new file mode 100644 index 000000000000..92dfa12d0477 --- /dev/null +++ b/dev-python/pyocr/Manifest @@ -0,0 +1 @@ +DIST pyocr-0.7.2.tar.gz 65376 BLAKE2B 065084c19c7722e590c5f20abe5248b2be0c76dab864b4a4e2c457770ff61dec84df7254f19e4926753f39a5d1ed0618ed87827b85773ab96a51e3f7798c656f SHA512 002c3302ed20e19e06dc6fd995ce30150fb95650824df9e0a3d6b2bdcb4c0ae3f2295342c2df44e0d5a9c9bbf5432f47a9d7562e4866b87738ac3436a8c0dec9 diff --git a/dev-python/pyocr/metadata.xml b/dev-python/pyocr/metadata.xml new file mode 100644 index 000000000000..be2b77921255 --- /dev/null +++ b/dev-python/pyocr/metadata.xml @@ -0,0 +1,24 @@ + + + + + voyageur@gentoo.org + Bernard Cafarelli + + +Pyocr is an optical character recognition (OCR) tool wrapper for python. That is, it helps using OCR tools from a Python program. + +It has been tested only on GNU/Linux systems. It should also work on similar systems (*BSD, etc). It doesn't work on Windows, MacOSX, etc. + +Pyocr can be used as a wrapper for google's Tesseract-OCR or Cuneiform. It can read all image types supported by Pillow, including jpeg, png, gif, bmp, tiff, and others. It also support bounding box data. + + + Enable support for the app-text/cuneiform OCR engine + Enable support for the app-text/tesseract OCR engine + + + pyocr + openpaperwork/pyocr + + gentoo-staging + diff --git a/dev-python/pyocr/pyocr-0.7.2.ebuild b/dev-python/pyocr/pyocr-0.7.2.ebuild new file mode 100644 index 000000000000..61bf3561dff9 --- /dev/null +++ b/dev-python/pyocr/pyocr-0.7.2.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="An optical character recognition (OCR) tool wrapper for python" +HOMEPAGE="https://github.com/openpaperwork/pyocr" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${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} + dev-python/setuptools_scm[${PYTHON_USEDEP}] + dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]" + +REQUIRED_USE="|| ( cuneiform tesseract )" -- cgit v1.3.1