1 |
commit: a1566dd11ac663b88d678cc1e9aafe3adab141f1 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 21 19:00:49 2020 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 21 19:00:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1566dd1 |
7 |
|
8 |
app-text/pdfsandwich: version bump to 0.1.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
app-text/pdfsandwich/Manifest | 1 + |
14 |
.../files/pdfsandwich-0.1.7-gentoo.patch | 43 ++++++++++++++++++++ |
15 |
app-text/pdfsandwich/metadata.xml | 5 ++- |
16 |
app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild | 46 ++++++++++++++++++++++ |
17 |
4 files changed, 94 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/app-text/pdfsandwich/Manifest b/app-text/pdfsandwich/Manifest |
20 |
index 333618deefa..29efab6f3f7 100644 |
21 |
--- a/app-text/pdfsandwich/Manifest |
22 |
+++ b/app-text/pdfsandwich/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST pdfsandwich-0.1.4.tar.bz2 16401 BLAKE2B cb431f35b199e3e6290c60a3f6c7b2621dd3652a29346092869d8e5f86f5664079de1ef431f9b5e8b9f7cc044d64006295a8176d6a28b2ea5fb820db8c952000 SHA512 ee03aea13c72cc5a02136b5d16d2425f685f0b7a9d6fa6cff6c792bd24e6316720dff321b5e8237b949c98c713f39cb8b08b855b76e2a77350927b1ee7943171 |
25 |
+DIST pdfsandwich-0.1.7.tar.bz2 17461 BLAKE2B edeb08ab55df89ef2d1f3e43446e831c66e57273b36ecd56a4cc5f910ca5b59a03e2a66b13e7150f06f8f3eb26ed14cd1c80d02cd38d6bd6cfe923c30c801577 SHA512 ac315aeba2cc753fddc380e2522d0c41d65ea80372a23c2cd5371ebc239ac104ab5a5a1386378b9e026b2935a767128224f7617a5eb8f5ef9d6874cc18ef83ff |
26 |
|
27 |
diff --git a/app-text/pdfsandwich/files/pdfsandwich-0.1.7-gentoo.patch b/app-text/pdfsandwich/files/pdfsandwich-0.1.7-gentoo.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..f16b94379b6 |
30 |
--- /dev/null |
31 |
+++ b/app-text/pdfsandwich/files/pdfsandwich-0.1.7-gentoo.patch |
32 |
@@ -0,0 +1,43 @@ |
33 |
+--- a/Makefile 2020-05-21 20:46:14.961927486 +0200 |
34 |
++++ b/Makefile 2020-05-21 20:49:16.203121793 +0200 |
35 |
+@@ -6,7 +6,7 @@ |
36 |
+ |
37 |
+ SOURCE = pdfsandwich.ml |
38 |
+ TARGET = pdfsandwich |
39 |
+-MANUAL = $(TARGET).1.gz |
40 |
++MANUAL = $(TARGET).1 |
41 |
+ |
42 |
+ VERSION := $(shell cat pdfsandwich_version) |
43 |
+ |
44 |
+@@ -24,7 +24,7 @@ |
45 |
+ |
46 |
+ $(MANUAL): manual.txt |
47 |
+ # you need gawk for this: |
48 |
+- ./txt2man -t PDFSANDWICH manual.txt | gzip -9 > $(MANUAL) |
49 |
++ ./txt2man -t PDFSANDWICH manual.txt > $(MANUAL) |
50 |
+ |
51 |
+ # Canceling pathological implicit rule: |
52 |
+ %: %.o |
53 |
+@@ -40,7 +40,7 @@ |
54 |
+ include makefile.installprefix |
55 |
+ |
56 |
+ PREF = $(DESTDIR)$(PREFIX) |
57 |
+-INSTALL = install -s |
58 |
++INSTALL = install |
59 |
+ CP = cp |
60 |
+ INSTALLBINDIR = $(PREF)/bin |
61 |
+ INSTALLMANDIR = $(PREF)/share/man/man1 |
62 |
+@@ -47,12 +47,8 @@ |
63 |
+ INSTALLDOCDIR = $(PREF)/share/doc/$(TARGET) |
64 |
+ |
65 |
+ install: $(DOCFILES) $(ADDITIONAL) |
66 |
+- (umask 0022; mkdir -p $(INSTALLBINDIR) $(INSTALLDOCDIR) $(INSTALLMANDIR)) |
67 |
++ (umask 0022; mkdir -p $(INSTALLBINDIR)) |
68 |
+ $(INSTALL) $(TARGET) $(INSTALLBINDIR) |
69 |
+- $(CP) $(DOCFILES) $(INSTALLDOCDIR) |
70 |
+- gzip -9 $(INSTALLDOCDIR)/changelog |
71 |
+- $(CP) $(MANUAL) $(INSTALLMANDIR) |
72 |
+- chmod 644 $(INSTALLDOCDIR)/* $(INSTALLMANDIR)/* |
73 |
+ |
74 |
+ uninstall: |
75 |
+ rm -rf $(INSTALLBINDIR)/$(TARGET) $(INSTALLDOCDIR) $(INSTALLMANDIR)/$(MANUAL) |
76 |
|
77 |
diff --git a/app-text/pdfsandwich/metadata.xml b/app-text/pdfsandwich/metadata.xml |
78 |
index 0fb15c19e84..36a3f024606 100644 |
79 |
--- a/app-text/pdfsandwich/metadata.xml |
80 |
+++ b/app-text/pdfsandwich/metadata.xml |
81 |
@@ -1,7 +1,10 @@ |
82 |
<?xml version="1.0" encoding="UTF-8"?> |
83 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
84 |
<pkgmetadata> |
85 |
- <!-- maintainer-needed --> |
86 |
+ <maintainer type="person"> |
87 |
+ <email>tupone@g.o</email> |
88 |
+ <name>Tupone Alfredo</name> |
89 |
+ </maintainer> |
90 |
<longdescription> |
91 |
pdfsandwich generates "sandwich" OCR pdf files, i.e. pdf files which |
92 |
contain only images (no text) will be processed by optical character |
93 |
|
94 |
diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild |
95 |
new file mode 100644 |
96 |
index 00000000000..23eef187cf7 |
97 |
--- /dev/null |
98 |
+++ b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild |
99 |
@@ -0,0 +1,46 @@ |
100 |
+# Copyright 1999-2020 Gentoo Authors |
101 |
+# Distributed under the terms of the GNU General Public License v2 |
102 |
+ |
103 |
+EAPI=7 |
104 |
+ |
105 |
+DESCRIPTION="generator of sandwich OCR pdf files" |
106 |
+HOMEPAGE="http://www.tobias-elze.de/pdfsandwich" |
107 |
+SRC_URI="mirror://sourceforge/pdfsandwich/${P}.tar.bz2" |
108 |
+ |
109 |
+LICENSE="GPL-2" |
110 |
+KEYWORDS="~amd64 ~x86" |
111 |
+SLOT="0" |
112 |
+IUSE="png" |
113 |
+ |
114 |
+RDEPEND=">=app-text/tesseract-3.00 |
115 |
+ media-gfx/exact-image |
116 |
+ app-text/unpaper |
117 |
+ app-text/ghostscript-gpl |
118 |
+ virtual/imagemagick-tools[png?]" |
119 |
+DEPEND="sys-apps/gawk |
120 |
+ >=dev-lang/ocaml-3.10[ocamlopt]" |
121 |
+ |
122 |
+DOCS=( changelog ) |
123 |
+ |
124 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
125 |
+ |
126 |
+QA_FLAGS_IGNORED="/usr/bin/${PN}" |
127 |
+ |
128 |
+src_prepare() { |
129 |
+ sed -i \ |
130 |
+ -e "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" \ |
131 |
+ Makefile || die |
132 |
+ default |
133 |
+} |
134 |
+ |
135 |
+src_install() { |
136 |
+ default |
137 |
+ doman ${PN}.1 |
138 |
+} |
139 |
+ |
140 |
+pkg_postinst() { |
141 |
+ elog "pdfsandwich relies on the tesseract library for OCR." |
142 |
+ elog "Consequently language support is determined by tesseract's" |
143 |
+ elog "language support which in turn is controlled via the LINGUAS" |
144 |
+ elog "variable in make.conf." |
145 |
+} |