diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
commit | f516638b7fe9592837389826a6152a7e1b251c54 (patch) | |
tree | 8bfecb640b7b6403d7a3d662d923eed630033da7 /app-text/pdfsandwich | |
parent | 1a61119f9f7b057830e2ce0563f913ec86f282ad (diff) |
gentoo resync : 30.05.2020
Diffstat (limited to 'app-text/pdfsandwich')
-rw-r--r-- | app-text/pdfsandwich/Manifest | 5 | ||||
-rw-r--r-- | app-text/pdfsandwich/files/pdfsandwich-0.1.7-gentoo.patch | 43 | ||||
-rw-r--r-- | app-text/pdfsandwich/metadata.xml | 8 | ||||
-rw-r--r-- | app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild | 47 |
4 files changed, 99 insertions, 4 deletions
diff --git a/app-text/pdfsandwich/Manifest b/app-text/pdfsandwich/Manifest index d49131d2bca4..10e5841dc049 100644 --- a/app-text/pdfsandwich/Manifest +++ b/app-text/pdfsandwich/Manifest @@ -1,3 +1,6 @@ +AUX pdfsandwich-0.1.7-gentoo.patch 1211 BLAKE2B 47461d33a0ecea51de9db0cda447f13c74094b7bf630abfa0ca0b5a72357e20b9adfc86b2035b89af8addbec9ee9ebdac9751490afe7166005c2ebad2b9333bb SHA512 d9865439ea2ed6ffec6c30abe9da1042b5b12a28d266131d421e1d459ff8f0bd60f8d6c2e68017464341f26215a04b4a537cf3f445cebeec55723831a9dee454 DIST pdfsandwich-0.1.4.tar.bz2 16401 BLAKE2B cb431f35b199e3e6290c60a3f6c7b2621dd3652a29346092869d8e5f86f5664079de1ef431f9b5e8b9f7cc044d64006295a8176d6a28b2ea5fb820db8c952000 SHA512 ee03aea13c72cc5a02136b5d16d2425f685f0b7a9d6fa6cff6c792bd24e6316720dff321b5e8237b949c98c713f39cb8b08b855b76e2a77350927b1ee7943171 +DIST pdfsandwich-0.1.7.tar.bz2 17461 BLAKE2B edeb08ab55df89ef2d1f3e43446e831c66e57273b36ecd56a4cc5f910ca5b59a03e2a66b13e7150f06f8f3eb26ed14cd1c80d02cd38d6bd6cfe923c30c801577 SHA512 ac315aeba2cc753fddc380e2522d0c41d65ea80372a23c2cd5371ebc239ac104ab5a5a1386378b9e026b2935a767128224f7617a5eb8f5ef9d6874cc18ef83ff EBUILD pdfsandwich-0.1.4-r1.ebuild 970 BLAKE2B 416b43bc2a95175aabde4379e23207fa524bb882e4b40c7c61c1fff87fb6b016721bff23720b2bf7712892b4eb7d5786edf7c5500dadb9a5ec1646eb7612c8b7 SHA512 3505739fec5f3d76a7d51c0c9f4f4cf992faa59e23779dfd0ebf677246da0a794ca18af304a5631e7fc0984bd698bfe69f6c3a012389cdc943a543ac0fe4b263 -MISC metadata.xml 937 BLAKE2B 7e13ea95d5add452b52f7223411d798148e6bac03aa636237ad3e5c0677d0bdedf4a5f5a2c63caf0e84ab92626e0f8de5b1dc3df0f5d8747163d626dbe632f00 SHA512 595e3fdd841667046ae3064ee12aa288586cb1db3f8cd902aaf5c7c1bfb1c1776c641c400593b273dad83bf4f3a4c98f1f031125b8d65af3e836d6c2abdbc531 +EBUILD pdfsandwich-0.1.7.ebuild 1044 BLAKE2B 93a792a16a1e7612283e25d56b92648614fd606a19b50065192a904cdf12b20e1ff297b8f6c925e92ef5320b5fed08aac94e152a3e8a1c44c9375a96bf2a6dcf SHA512 dd59831311042b08e22a818b2cd553e26b0e7a58c2e3ee558d16a13100b7a3636bbe36f8a791fe8ce15d134aa1d452e5e100a7f427e1859c763664d1d4cdceed +MISC metadata.xml 939 BLAKE2B 88b45ad8aa691ea97c50e7b9ba9f97455eb8557e8d244f70eb3715b8838530ce8cad94c0e30f8d73755fb738c798d727dab80507260a34298266f2d8cdae608f SHA512 b2e12b2457c8e8cdc35b7c6a3bcce5c52850a554b378849201654ba892f223891fbdfe58f1b6b9bbf711b621c01a5507577241e3c41746fd29e3b14cc5c6bd19 diff --git a/app-text/pdfsandwich/files/pdfsandwich-0.1.7-gentoo.patch b/app-text/pdfsandwich/files/pdfsandwich-0.1.7-gentoo.patch new file mode 100644 index 000000000000..f16b94379b6a --- /dev/null +++ b/app-text/pdfsandwich/files/pdfsandwich-0.1.7-gentoo.patch @@ -0,0 +1,43 @@ +--- a/Makefile 2020-05-21 20:46:14.961927486 +0200 ++++ b/Makefile 2020-05-21 20:49:16.203121793 +0200 +@@ -6,7 +6,7 @@ + + SOURCE = pdfsandwich.ml + TARGET = pdfsandwich +-MANUAL = $(TARGET).1.gz ++MANUAL = $(TARGET).1 + + VERSION := $(shell cat pdfsandwich_version) + +@@ -24,7 +24,7 @@ + + $(MANUAL): manual.txt + # you need gawk for this: +- ./txt2man -t PDFSANDWICH manual.txt | gzip -9 > $(MANUAL) ++ ./txt2man -t PDFSANDWICH manual.txt > $(MANUAL) + + # Canceling pathological implicit rule: + %: %.o +@@ -40,7 +40,7 @@ + include makefile.installprefix + + PREF = $(DESTDIR)$(PREFIX) +-INSTALL = install -s ++INSTALL = install + CP = cp + INSTALLBINDIR = $(PREF)/bin + INSTALLMANDIR = $(PREF)/share/man/man1 +@@ -47,12 +47,8 @@ + INSTALLDOCDIR = $(PREF)/share/doc/$(TARGET) + + install: $(DOCFILES) $(ADDITIONAL) +- (umask 0022; mkdir -p $(INSTALLBINDIR) $(INSTALLDOCDIR) $(INSTALLMANDIR)) ++ (umask 0022; mkdir -p $(INSTALLBINDIR)) + $(INSTALL) $(TARGET) $(INSTALLBINDIR) +- $(CP) $(DOCFILES) $(INSTALLDOCDIR) +- gzip -9 $(INSTALLDOCDIR)/changelog +- $(CP) $(MANUAL) $(INSTALLMANDIR) +- chmod 644 $(INSTALLDOCDIR)/* $(INSTALLMANDIR)/* + + uninstall: + rm -rf $(INSTALLBINDIR)/$(TARGET) $(INSTALLDOCDIR) $(INSTALLMANDIR)/$(MANUAL) diff --git a/app-text/pdfsandwich/metadata.xml b/app-text/pdfsandwich/metadata.xml index 0fb15c19e847..fce36805a6fc 100644 --- a/app-text/pdfsandwich/metadata.xml +++ b/app-text/pdfsandwich/metadata.xml @@ -1,7 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> <longdescription> pdfsandwich generates "sandwich" OCR pdf files, i.e. pdf files which contain only images (no text) will be processed by optical character @@ -13,8 +16,7 @@ OCR scanned books or journals. It is able to recognize the page layout even for multicolumn text. Essentially, pdfsandwich is a wrapper script which calls the following -binaries: convert, cuneiform, gs, and hocr2pdf. It is known to run on -Unix systems and has been tested on Linux and MacOS X. It supports +binaries: unpaper, convert, gs, and tesseract. It supports parallel processing on multiprocessor systems. </longdescription> <upstream> diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild new file mode 100644 index 000000000000..c42e82306713 --- /dev/null +++ b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="generator of sandwich OCR pdf files" +HOMEPAGE="http://www.tobias-elze.de/pdfsandwich" +SRC_URI="mirror://sourceforge/pdfsandwich/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="png" + +RDEPEND="app-text/tesseract + media-gfx/exact-image + app-text/unpaper + app-text/ghostscript-gpl + app-text/poppler + virtual/imagemagick-tools[png?]" +DEPEND="sys-apps/gawk + >=dev-lang/ocaml-3.10[ocamlopt]" + +DOCS=( changelog ) + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +QA_FLAGS_IGNORED="/usr/bin/${PN}" + +src_prepare() { + sed -i \ + -e "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" \ + Makefile || die + default +} + +src_install() { + default + doman ${PN}.1 +} + +pkg_postinst() { + elog "pdfsandwich relies on the tesseract library for OCR." + elog "Consequently language support is determined by tesseract's" + elog "language support which in turn is controlled via the LINGUAS" + elog "variable in make.conf." +} |