From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 152AE158090 for ; Fri, 6 May 2022 10:25:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 55265E08F6; Fri, 6 May 2022 10:25:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33C81E08F6 for ; Fri, 6 May 2022 10:25:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 425833415F4 for ; Fri, 6 May 2022 10:25:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 95F38430 for ; Fri, 6 May 2022 10:25:45 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1651832728.6f71c48cc3558348a0d930f39cce77c99a487584.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytesseract/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytesseract/Manifest dev-python/pytesseract/metadata.xml dev-python/pytesseract/pytesseract-0.3.10.ebuild X-VCS-Directories: dev-python/pytesseract/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 6f71c48cc3558348a0d930f39cce77c99a487584 X-VCS-Branch: master Date: Fri, 6 May 2022 10:25:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 80a5395a-677a-4c04-87b1-d8db270a88b8 X-Archives-Hash: af9ee28c1771d94f400b2542b825f8fc commit: 6f71c48cc3558348a0d930f39cce77c99a487584 Author: Alfredo Tupone gentoo org> AuthorDate: Fri May 6 10:25:28 2022 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Fri May 6 10:25:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f71c48c dev-python/pytesseract: add pytesseract Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alfredo Tupone gentoo.org> dev-python/pytesseract/Manifest | 1 + dev-python/pytesseract/metadata.xml | 23 +++++++++++++++++++ dev-python/pytesseract/pytesseract-0.3.10.ebuild | 29 ++++++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/dev-python/pytesseract/Manifest b/dev-python/pytesseract/Manifest new file mode 100644 index 000000000000..cac470d1e9e7 --- /dev/null +++ b/dev-python/pytesseract/Manifest @@ -0,0 +1 @@ +DIST pytesseract-0.3.10.tar.gz 1098547 BLAKE2B d89f9082d8c7236b97bb96441809a19f494aacd23d4c02d5b7fb1b742616e7b26c249d49fceecc4f652792cdc3d7f2a79cd580a3360157f81205ff04d65afb10 SHA512 de77f0497c2bf60c1febf439ed13f0a8978aa23df76aadb789f8151177b73f45229799bd6b236aa7356a5145064f892e5b528a2d5a396849348f5b22f4343e16 diff --git a/dev-python/pytesseract/metadata.xml b/dev-python/pytesseract/metadata.xml new file mode 100644 index 000000000000..2f762d632807 --- /dev/null +++ b/dev-python/pytesseract/metadata.xml @@ -0,0 +1,23 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + Python-tesseract is an optical character recognition (OCR) tool for + python. + That is, it will recognize and "read" the text embedded in images. + + Python-tesseract is a wrapper for Google's Tesseract-OCR Engine. + It is also useful as a stand-alone invocation script to tesseract, as + it can read all image types supported by the Pillow and Leptonica + imaging libraries, including jpeg, png, gif, bmp, tiff, and others. + Additionally, if used as a script, Python-tesseract will print the + recognized text instead of writing it to a file. + + + madmaze/pytesseract + + diff --git a/dev-python/pytesseract/pytesseract-0.3.10.ebuild b/dev-python/pytesseract/pytesseract-0.3.10.ebuild new file mode 100644 index 000000000000..02c5fb762226 --- /dev/null +++ b/dev-python/pytesseract/pytesseract-0.3.10.ebuild @@ -0,0 +1,29 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Optical character recognition (OCR) tool" +HOMEPAGE="https://github.com/madmaze/pytesseract" +SRC_URI="https://github.com/madmaze/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND} + app-text/tesseract" +BDEPEND=" + test? ( + app-text/tesseract[jpeg,png,tiff,webp] + media-libs/leptonica[gif,jpeg2k] + app-text/tessdata_fast[l10n_fr] + ) +" + +distutils_enable_tests pytest