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 AA494158094 for ; Sat, 16 Jul 2022 22:18:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7BB4E0893; Sat, 16 Jul 2022 22:18:15 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC02BE0893 for ; Sat, 16 Jul 2022 22:18:15 +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 A3D43341120 for ; Sat, 16 Jul 2022 22:18:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE862480 for ; Sat, 16 Jul 2022 22:18:12 +0000 (UTC) From: "Bernard Cafarelli" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Bernard Cafarelli" Message-ID: <1658009862.594da25738ba8bff8a388c0453e3ded46be9e9da.voyageur@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/tesseract/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/tesseract/Manifest app-text/tesseract/tesseract-5.2.0.ebuild X-VCS-Directories: app-text/tesseract/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: 594da25738ba8bff8a388c0453e3ded46be9e9da X-VCS-Branch: master Date: Sat, 16 Jul 2022 22:18:12 +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: 25e19392-f851-429b-849d-68cf3af25c16 X-Archives-Hash: 2c15243048bd63a959ce9f58e3c59800 commit: 594da25738ba8bff8a388c0453e3ded46be9e9da Author: Bernard Cafarelli gentoo org> AuthorDate: Sat Jul 16 22:17:27 2022 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Sat Jul 16 22:17:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594da257 app-text/tesseract: add 5.2.0 Signed-off-by: Bernard Cafarelli gentoo.org> app-text/tesseract/Manifest | 1 + app-text/tesseract/tesseract-5.2.0.ebuild | 92 +++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/app-text/tesseract/Manifest b/app-text/tesseract/Manifest index 2da095ce49ce..5522c177da86 100644 --- a/app-text/tesseract/Manifest +++ b/app-text/tesseract/Manifest @@ -1,3 +1,4 @@ DIST tesseract-4.1.1.tar.gz 1974988 BLAKE2B f729beb017ec81704b84f5e6539706ff0cd6a51a4d1b7b730c394af58ce2ea2a659203bf239417e8d500cfbde845a73d6e6e181ca946257c2f22525820899602 SHA512 017723a2268be789fe98978eed02fd294968cc8050dde376dee026f56f2b99df42db935049ae5e72c4519a920e263b40af1a6a40d9942e66608145b3131a71a2 DIST tesseract-5.0.1.tar.gz 1913596 BLAKE2B 94098704c0a177eb1afc365036f9ff8d7648f80398f20a410e11b7884e1411432c2938e3ab176930630500793ef2e3f33b82f214461ef6677d289c56919f8d55 SHA512 0a4824f71eb76ab022f3b9258d12b9a059adcf2f37fac6442ae1096d0efc80404ba1bfd9c90e8263178c1af606c2aad2b277ceb93efc3b9e93c125f931ff08c1 DIST tesseract-5.1.0.tar.gz 1910376 BLAKE2B e1c1c5c563e30689d66fb09ab73fdce853a469dfcf3c759571f6e6e1da71809a8fd1fb74c0be38588e97bbdac230c2ce10a35fd66faa6a4370d78efe112d3243 SHA512 d874fc995182c2c7ce210ebd79ad36414fa73afc53063505bc0b0aa0f090dc48db09c650c86a727778584f34a421b7d64c129cefe282ea112560cd7ca24e7f59 +DIST tesseract-5.2.0.tar.gz 1913462 BLAKE2B 6b80e5bb71543cf971683f66b87fd45a971a6f337ca53567d134c3bdc227f1338a3340f5bb5c2f183288135acd6521031b0f6de6e96e333fed4dc10e93b7319e SHA512 23ed931495e4ea793904f99a06a95a47873b923c4e5d8f3fc8f9203cac86b0e0013c416ab4d8d4a863a081eea00a196a0198c6fb17a39917a1baea2280d84794 diff --git a/app-text/tesseract/tesseract-5.2.0.ebuild b/app-text/tesseract/tesseract-5.2.0.ebuild new file mode 100644 index 000000000000..302638df9e4d --- /dev/null +++ b/app-text/tesseract/tesseract-5.2.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal toolchain-funcs + +DESCRIPTION="An OCR Engine, originally developed at HP, now open source" +HOMEPAGE="https://github.com/tesseract-ocr" +SRC_URI="https://github.com/tesseract-ocr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc float32 jpeg opencl openmp png static-libs tiff training webp" + +COMMON_DEPEND=">=media-libs/leptonica-1.74:=[${MULTILIB_USEDEP},zlib,tiff?,jpeg?,png?,webp?] + opencl? ( + virtual/opencl[${MULTILIB_USEDEP}] + media-libs/tiff:0=[${MULTILIB_USEDEP}] + media-libs/leptonica:=[tiff] + ) + training? ( + dev-libs/icu:= + x11-libs/pango:= + x11-libs/cairo:= + )" +RDEPEND="${COMMON_DEPEND} + || ( + >=app-text/tessdata_fast-4.0.0 + >=app-text/tessdata_best-4.0.0 + >=app-text/tessdata_legacy-4.0.0 + )" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + doc? ( app-doc/doxygen )" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + # scrollview disabled for now, see bug #686944 + local myeconfargs=( + --enable-shared + --disable-graphics + $(use_enable float32) + $(use_enable opencl) + $(use_enable openmp) + $(use_enable static-libs static) + ) + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_compile() { + default + if multilib_is_native_abi; then + use doc && emake doc + use training && emake training + fi +} + +multilib_src_install() { + if multilib_is_native_abi; then + DOCS=( "${S}"/AUTHORS "${S}"/ChangeLog "${S}"/README.md ) + if use doc; then + HTML_DOCS=( doc/html/. ) + fi + einstalldocs + + if use training; then + emake DESTDIR="${D}" training-install + fi + fi + emake DESTDIR="${D}" install +} + +multilib_src_install_all() { + find "${D}" -name '*.la' -type f -delete || die +}