diff options
Diffstat (limited to 'dev-python/pyocr')
| -rw-r--r-- | dev-python/pyocr/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyocr/metadata.xml | 19 | ||||
| -rw-r--r-- | dev-python/pyocr/pyocr-0.8.5.ebuild | 30 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/pyocr/Manifest b/dev-python/pyocr/Manifest new file mode 100644 index 000000000000..508a8c1584eb --- /dev/null +++ b/dev-python/pyocr/Manifest @@ -0,0 +1 @@ +DIST pyocr-0.8.5.tar.gz 71843 BLAKE2B 14ea301a562b4e2ecc9a8b01b64a6a651facc78e54402359313b04fd20bad89e0a390ff1899f72c94db4e2d42c7c648afa5c1267ff6afe85fb14c32e15c6e19b SHA512 4b0bb576db05e3cc253bc031e158e2c018370e2c309df742b9755cf576bbd1fd5baddc851a4cde1ad96d3c2ae1c28e75e735ee7035d62ad8bf9c908546042897 diff --git a/dev-python/pyocr/metadata.xml b/dev-python/pyocr/metadata.xml new file mode 100644 index 000000000000..155a9cafd570 --- /dev/null +++ b/dev-python/pyocr/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>voyageur@gentoo.org</email> + <name>Bernard Cafarelli</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <longdescription lang="en"> +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. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/pyocr/pyocr-0.8.5.ebuild b/dev-python/pyocr/pyocr-0.8.5.ebuild new file mode 100644 index 000000000000..df555b39d337 --- /dev/null +++ b/dev-python/pyocr/pyocr-0.8.5.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="An optical character recognition (OCR) tool wrapper" +HOMEPAGE=" + https://gitlab.gnome.org/World/OpenPaperwork/pyocr/ + https://pypi.org/project/pyocr/ +" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] + app-text/tesseract +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" + +# (tests apparently do not require any backend installed) +distutils_enable_tests unittest |
