From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/gocr/
Date: Mon, 13 Nov 2023 07:34:48 +0000 (UTC) [thread overview]
Message-ID: <1699860770.4e23e485041abd1d2a16a3d3bd8afd5e3b911324.sam@gentoo> (raw)
commit: 4e23e485041abd1d2a16a3d3bd8afd5e3b911324
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 13 07:32:50 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 13 07:32:50 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e23e485
app-text/gocr: migrate to fig2dev
Closes: https://bugs.gentoo.org/917255
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-text/gocr/gocr-0.52-r1.ebuild | 53 +++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/app-text/gocr/gocr-0.52-r1.ebuild b/app-text/gocr/gocr-0.52-r1.ebuild
new file mode 100644
index 000000000000..c598b8bc26bd
--- /dev/null
+++ b/app-text/gocr/gocr-0.52-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="An OCR (Optical Character Recognition) reader"
+HOMEPAGE="https://www-e.uni-magdeburg.de/jschulen/ocr/"
+SRC_URI="http://www-e.uni-magdeburg.de/jschulen/ocr/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc scanner tk"
+
+DEPEND="
+ >=media-libs/netpbm-9.12
+ doc? (
+ >=media-gfx/fig2dev-3.2.9-r1
+ app-text/ghostscript-gpl
+ )
+ tk? ( dev-lang/tk )"
+RDEPEND="${DEPEND}
+ tk? (
+ media-gfx/xli
+ scanner? ( media-gfx/xsane )
+ )"
+
+src_compile() {
+ local targets=( src man )
+ use doc && targets+=( doc examples )
+
+ emake "${targets[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" prefix="${EPREFIX}/usr" exec_prefix="${EPREFIX}/usr" install
+ einstalldocs
+ dodoc HISTORY REMARK.txt REVIEW
+
+ # remove the tk frontend if tk is not selected
+ if ! use tk; then
+ rm "${ED}"/usr/bin/gocr.tcl || die
+ fi
+
+ # and install the documentation and examples
+ if use doc; then
+ dodoc doc/gocr.html doc/examples.txt doc/unicode.txt
+
+ docinto examples
+ dodoc examples/*.{fig,tex,pcx}
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
next reply other threads:[~2023-11-13 7:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-13 7:34 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-10-07 6:07 [gentoo-commits] repo/gentoo:master commit in: app-text/gocr/ Hans de Graaff
2021-05-06 23:29 Sam James
2021-05-06 10:12 Sam James
2021-05-06 10:11 Sam James
2021-05-06 10:09 Sam James
2021-05-06 10:04 Sam James
2021-03-29 18:17 Sebastian Pipping
2020-10-11 19:21 Sam James
2020-07-23 5:15 Kent Fredric
2020-03-17 2:16 Jonas Stein
2020-01-21 21:51 David Seifert
2019-11-13 2:10 Aaron Bauman
2019-11-13 2:10 Aaron Bauman
2018-06-26 2:04 Aaron Bauman
2018-06-25 13:36 Tobias Klausmann
2018-06-21 19:21 Sergei Trofimovich
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=1699860770.4e23e485041abd1d2a16a3d3bd8afd5e3b911324.sam@gentoo \
--to=sam@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