Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/gocr/
Date: Mon, 29 Mar 2021 18:17:14
Message-Id: 1617041790.a7a5c75b606858a1461a801acbaf8697fa17561d.sping@gentoo
1 commit: a7a5c75b606858a1461a801acbaf8697fa17561d
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 29 18:14:18 2021 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 29 18:16:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7a5c75b
7
8 app-text/gocr: 0.52
9
10 Closes: https://bugs.gentoo.org/688656
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-3.0.18, Repoman-3.0.3
13
14 app-text/gocr/Manifest | 1 +
15 app-text/gocr/gocr-0.52.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 54 insertions(+)
17
18 diff --git a/app-text/gocr/Manifest b/app-text/gocr/Manifest
19 index 0014c37e7f4..12c0bda06be 100644
20 --- a/app-text/gocr/Manifest
21 +++ b/app-text/gocr/Manifest
22 @@ -1 +1,2 @@
23 DIST gocr-0.50.tar.gz 419209 BLAKE2B 232fe240d7a559cdd4408a3dba3768818aefbd8b2718c7ae40829d69ab79dd68293eb6adfc52e661f2f6cf1290ae9656c84d9d7a8fc20229c0942a8e18fb3b68 SHA512 36392516711d43f8561147684b6f4e22a450bc87f1cb30ceaab4a1821ac583ff5a3d25b3bbf1637f01bfb55366b45cc7d5086d1f29f006d615bb658d0e5faab9
24 +DIST gocr-0.52.tar.gz 445401 BLAKE2B 1f22f5377bb95053e3ab4ede074b3fceca4065f9ca0ede05a8023ebe807f41074f5ead84e133281e98be7f68f13b036dc759cccaf4a5688bf776f62f2de1970a SHA512 e2e6e690e7a32e32237c8b64b1a11719680c560592349df43f4b230f3c92bf324f98e473979b0913c42e33e8abbaf27952b6af173ea06eb5535878a9f608ce6d
25
26 diff --git a/app-text/gocr/gocr-0.52.ebuild b/app-text/gocr/gocr-0.52.ebuild
27 new file mode 100644
28 index 00000000000..cced5ddc358
29 --- /dev/null
30 +++ b/app-text/gocr/gocr-0.52.ebuild
31 @@ -0,0 +1,53 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DESCRIPTION="An OCR (Optical Character Recognition) reader"
38 +HOMEPAGE="http://jocr.sourceforge.net"
39 +SRC_URI="http://www-e.uni-magdeburg.de/jschulen/ocr/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
44 +IUSE="doc scanner tk"
45 +
46 +DEPEND="
47 + >=media-libs/netpbm-9.12
48 + doc? (
49 + >=media-gfx/transfig-3.2
50 + app-text/ghostscript-gpl
51 + )
52 + tk? ( dev-lang/tk )"
53 +RDEPEND="${DEPEND}
54 + tk? (
55 + media-gfx/xli
56 + scanner? ( media-gfx/xsane )
57 + )"
58 +
59 +src_compile() {
60 + local targets=( src man )
61 + use doc && targets+=( doc examples )
62 +
63 + emake "${targets[@]}"
64 +}
65 +
66 +src_install() {
67 + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" exec_prefix="${EPREFIX}/usr" install
68 + einstalldocs
69 + dodoc HISTORY REMARK.txt REVIEW
70 +
71 + # remove the tk frontend if tk is not selected
72 + if ! use tk; then
73 + rm "${ED}"/usr/bin/gocr.tcl || die
74 + fi
75 +
76 + # and install the documentation and examples
77 + if use doc; then
78 + dodoc doc/gocr.html doc/examples.txt doc/unicode.txt
79 +
80 + docinto examples
81 + dodoc examples/*.{fig,tex,pcx}
82 + docompress -x /usr/share/doc/${PF}/examples
83 + fi
84 +}