public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Bernard Cafarelli" <voyageur@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/tesseract/
Date: Mon, 26 Aug 2019 10:40:18 +0000 (UTC)	[thread overview]
Message-ID: <1566815953.569e97daacd0f990661927f2141717984979512d.voyageur@gentoo> (raw)

commit:     569e97daacd0f990661927f2141717984979512d
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 26 10:38:48 2019 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Mon Aug 26 10:39:13 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=569e97da

app-text/tesseract: add multilib support

This can be used to add tesseract support in media-video/ffmpeg

Bug: https://bugs.gentoo.org/622900
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 app-text/tesseract/tesseract-4.1.0-r1.ebuild | 91 ++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)

diff --git a/app-text/tesseract/tesseract-4.1.0-r1.ebuild b/app-text/tesseract/tesseract-4.1.0-r1.ebuild
new file mode 100644
index 00000000000..7313d345c7a
--- /dev/null
+++ b/app-text/tesseract/tesseract-4.1.0-r1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools multilib-minimal toolchain-funcs
+
+DESCRIPTION="An OCR Engine, orginally 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"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc 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 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
+}


             reply	other threads:[~2019-08-26 10:40 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26 10:40 Bernard Cafarelli [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-25 11:00 [gentoo-commits] repo/gentoo:master commit in: app-text/tesseract/ Sam James
2025-01-25  9:21 Arthur Zamarin
2025-01-25  8:54 Sam James
2025-01-25  8:54 Sam James
2024-11-12  9:13 Bernard Cafarelli
2024-11-05 15:55 Arthur Zamarin
2024-11-05  8:20 Sam James
2024-11-05  8:20 Sam James
2024-11-05  8:20 Sam James
2024-11-05  8:20 Sam James
2024-11-05  8:20 Sam James
2024-10-17  5:43 Sam James
2024-06-20 20:18 Arthur Zamarin
2024-06-20 20:15 Arthur Zamarin
2024-06-20 17:56 Arthur Zamarin
2024-06-20 10:16 Arthur Zamarin
2024-06-19 19:43 Arthur Zamarin
2024-06-14 10:47 Bernard Cafarelli
2024-06-14 10:47 Bernard Cafarelli
2024-04-21 13:02 Bernard Cafarelli
2024-01-21 19:14 Bernard Cafarelli
2023-10-11 21:26 Bernard Cafarelli
2023-07-19 11:47 Bernard Cafarelli
2023-07-19 11:47 Bernard Cafarelli
2023-04-03 19:11 Arthur Zamarin
2023-03-17 18:32 Arthur Zamarin
2023-03-17 18:31 Arthur Zamarin
2023-03-17 18:25 Sam James
2023-03-17 17:02 Sam James
2023-03-17 17:00 Arthur Zamarin
2023-01-02 10:54 Bernard Cafarelli
2022-12-18  8:32 Sam James
2022-12-16  4:30 Sam James
2022-07-16 22:18 Bernard Cafarelli
2022-03-13 19:10 Bernard Cafarelli
2022-03-13 19:10 Bernard Cafarelli
2022-01-12 11:45 Bernard Cafarelli
2021-12-22 13:09 Bernard Cafarelli
2021-08-30  6:51 Bernard Cafarelli
2021-08-26 20:14 Bernard Cafarelli
2021-08-24 21:02 Marek Szuba
2020-05-01 13:58 Agostino Sarubbo
2020-04-26 23:44 Thomas Deutschmann
2020-04-26  5:13 Georgy Yakovlev
2020-04-25 10:41 Mikle Kolyada
2020-04-11 17:27 Mart Raudsepp
2020-03-22  8:54 Mikle Kolyada
2020-02-28  6:51 Mikle Kolyada
2020-01-16 20:20 Bernard Cafarelli
2019-12-30 14:00 Bernard Cafarelli
2019-12-30 14:00 Bernard Cafarelli
2019-07-30 19:58 Bernard Cafarelli
2019-06-14  9:00 Agostino Sarubbo
2019-06-13 14:12 Agostino Sarubbo
2019-06-10 22:07 Aaron Bauman
2019-06-05  7:12 Agostino Sarubbo
2019-06-04 14:45 Thomas Deutschmann
2019-06-04 14:36 Agostino Sarubbo
2019-05-16 19:30 Aaron Bauman
2018-10-19  8:51 Michał Górny
2018-08-20 22:31 Bernard Cafarelli
2018-08-14  9:53 Bernard Cafarelli
2018-08-13 20:03 Bernard Cafarelli
2017-12-16 17:24 Tobias Klausmann
2017-11-30 20:19 Tobias Klausmann
2017-11-24 22:25 Sergei Trofimovich
2017-07-11  8:41 Alexis Ballier
2017-07-05 10:14 Bernard Cafarelli
2017-07-03 14:24 Bernard Cafarelli
2017-03-22 16:28 Bernard Cafarelli
2017-01-26 10:22 Agostino Sarubbo
2017-01-25 22:14 Bernard Cafarelli
2017-01-25 16:33 Bernard Cafarelli
2017-01-25 15:52 Agostino Sarubbo
2017-01-25 15:35 Agostino Sarubbo
2017-01-25 13:08 Bernard Cafarelli
2017-01-25 13:00 Bernard Cafarelli
2016-12-20 15:51 Tobias Klausmann
2016-09-29  9:09 Tobias Klausmann
2016-09-09 18:21 Thomas Kahle
2016-08-09 11:58 Thomas Kahle
2016-06-24 22:12 Ulrich Müller
2016-05-22 11:44 Thomas Kahle
2016-02-01 17:13 James Le Cuirot
2016-02-01 17:13 James Le Cuirot
2016-02-01 17:13 James Le Cuirot
2015-12-06 20:25 Thomas Kahle
2015-09-20  9:30 Agostino Sarubbo
2015-09-09  7:21 Thomas Kahle
2015-09-02  8:20 Thomas Kahle
2015-08-30 14:29 Tobias Klausmann
2015-08-26 10:43 Agostino Sarubbo
2015-08-13 12:59 Thomas Kahle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1566815953.569e97daacd0f990661927f2141717984979512d.voyageur@gentoo \
    --to=voyageur@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox