[gentoo-commits] repo/gentoo:master commit in: app-text/pdfsandwich/

2024-02-23 Thread Alfredo Tupone
commit: 36443ac4ab36ff11bbbfd8e1d79043ab8a469bf9
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Fri Feb 23 21:31:30 2024 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Fri Feb 23 21:32:11 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36443ac4

app-text/pdfsandwich: ignore QA. Built with ocaml

Closes: https://bugs.gentoo.org/924965
Signed-off-by: Alfredo Tupone  gentoo.org>

 app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild 
b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
index bfb21e8af686..df1636b138bf 100644
--- a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
+++ b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -27,6 +27,7 @@ DOCS=( changelog )
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
 QA_FLAGS_IGNORED="/usr/bin/${PN}"
+QA_TEXTRELS="/usr/bin/${PN}"
 
 src_prepare() {
sed -i \



[gentoo-commits] repo/gentoo:master commit in: app-text/pdfsandwich/

2023-12-11 Thread Alfredo Tupone
commit: 50e67894ac50df0e2f64f3a1cb937334176d97ba
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Dec 11 18:12:04 2023 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Dec 11 18:12:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50e67894

app-text/pdfsandwich: stabilize 0.1.7 for amd64

Closes: https://bugs.gentoo.org/919707
Signed-off-by: Alfredo Tupone  gentoo.org>

 app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild 
b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
index 14d6940316f5..bfb21e8af686 100644
--- a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
+++ b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -9,7 +9,7 @@ HOMEPAGE="http://www.tobias-elze.de/pdfsandwich;
 SRC_URI="mirror://sourceforge/pdfsandwich/${P}.tar.bz2"
 
 LICENSE="GPL-2"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="amd64 ~x86"
 SLOT="0"
 IUSE="png"
 



[gentoo-commits] repo/gentoo:master commit in: app-text/pdfsandwich/

2022-09-05 Thread Alfredo Tupone
commit: 56e41df51acebd3ce3175f9fff72fd982436c32e
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Mon Sep  5 20:06:08 2022 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Mon Sep  5 20:06:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e41df5

app-text/pdfsandwich: filter lto

Closes: https://bugs.gentoo.org/866043
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone  gentoo.org>

 app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild 
b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
index c42e82306713..14d6940316f5 100644
--- a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
+++ b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+inherit flag-o-matic
 
 DESCRIPTION="generator of sandwich OCR pdf files"
 HOMEPAGE="http://www.tobias-elze.de/pdfsandwich;
@@ -31,6 +32,8 @@ src_prepare() {
sed -i \
-e "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" \
Makefile || die
+   # Bug #866043
+   filter-lto
default
 }
 



[gentoo-commits] repo/gentoo:master commit in: app-text/pdfsandwich/

2020-09-26 Thread Aaron Bauman
commit: 04ce651b6a65b159e610788028750763b7ae9051
Author: Aaron Bauman  gentoo  org>
AuthorDate: Sat Sep 26 19:33:00 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Sat Sep 26 19:40:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04ce651b

app-text/pdfsandwich: drop old EAPI=5

Signed-off-by: Aaron Bauman  gentoo.org>

 app-text/pdfsandwich/Manifest|  1 -
 app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild | 37 
 2 files changed, 38 deletions(-)

diff --git a/app-text/pdfsandwich/Manifest b/app-text/pdfsandwich/Manifest
index 29efab6f3f7..688ed27a60c 100644
--- a/app-text/pdfsandwich/Manifest
+++ b/app-text/pdfsandwich/Manifest
@@ -1,2 +1 @@
-DIST pdfsandwich-0.1.4.tar.bz2 16401 BLAKE2B 
cb431f35b199e3e6290c60a3f6c7b2621dd3652a29346092869d8e5f86f5664079de1ef431f9b5e8b9f7cc044d64006295a8176d6a28b2ea5fb820db8c952000
 SHA512 
ee03aea13c72cc5a02136b5d16d2425f685f0b7a9d6fa6cff6c792bd24e6316720dff321b5e8237b949c98c713f39cb8b08b855b76e2a77350927b1ee7943171
 DIST pdfsandwich-0.1.7.tar.bz2 17461 BLAKE2B 
edeb08ab55df89ef2d1f3e43446e831c66e57273b36ecd56a4cc5f910ca5b59a03e2a66b13e7150f06f8f3eb26ed14cd1c80d02cd38d6bd6cfe923c30c801577
 SHA512 
ac315aeba2cc753fddc380e2522d0c41d65ea80372a23c2cd5371ebc239ac104ab5a5a1386378b9e026b2935a767128224f7617a5eb8f5ef9d6874cc18ef83ff

diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild 
b/app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild
deleted file mode 100644
index 21bf32dcc96..000
--- a/app-text/pdfsandwich/pdfsandwich-0.1.4-r1.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-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-3.00
-   media-gfx/exact-image
-   app-text/unpaper
-   app-text/ghostscript-gpl
-   virtual/imagemagick-tools[png?]"
-DEPEND="sys-apps/gawk
-   >=dev-lang/ocaml-3.10[ocamlopt]"
-
-src_prepare() {
-   sed -i "/^OCAMLOPTFLAGS/s/$/ -ccopt \"\$(CFLAGS) \$(LDFLAGS)\"/" 
Makefile || die
-   sed -i "s/install -s/install/" Makefile || die
-}
-
-src_install() {
-   emake DESTDIR="${D}" install
-}
-
-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."
-}



[gentoo-commits] repo/gentoo:master commit in: app-text/pdfsandwich/

2020-05-22 Thread Alfredo Tupone
commit: 8340b864d6f13481361dcbead5931ab0741ed610
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Fri May 22 13:02:10 2020 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Fri May 22 13:02:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8340b864

app-text/pdfsandwich: fix dependency and full description

Closes: https://bugs.gentoo.org/611532
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone  gentoo.org>

 app-text/pdfsandwich/metadata.xml | 3 +--
 app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-text/pdfsandwich/metadata.xml 
b/app-text/pdfsandwich/metadata.xml
index 36a3f024606..fce36805a6f 100644
--- a/app-text/pdfsandwich/metadata.xml
+++ b/app-text/pdfsandwich/metadata.xml
@@ -16,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.
 


diff --git a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild 
b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
index 23eef187cf7..c42e8230671 100644
--- a/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
+++ b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
@@ -12,10 +12,11 @@ KEYWORDS="~amd64 ~x86"
 SLOT="0"
 IUSE="png"
 
-RDEPEND=">=app-text/tesseract-3.00
+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]"



[gentoo-commits] repo/gentoo:master commit in: app-text/pdfsandwich/, app-text/pdfsandwich/files/

2020-05-21 Thread Alfredo Tupone
commit: a1566dd11ac663b88d678cc1e9aafe3adab141f1
Author: Alfredo Tupone  gentoo  org>
AuthorDate: Thu May 21 19:00:49 2020 +
Commit: Alfredo Tupone  gentoo  org>
CommitDate: Thu May 21 19:00:49 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1566dd1

app-text/pdfsandwich: version bump to 0.1.7

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone  gentoo.org>

 app-text/pdfsandwich/Manifest  |  1 +
 .../files/pdfsandwich-0.1.7-gentoo.patch   | 43 
 app-text/pdfsandwich/metadata.xml  |  5 ++-
 app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild  | 46 ++
 4 files changed, 94 insertions(+), 1 deletion(-)

diff --git a/app-text/pdfsandwich/Manifest b/app-text/pdfsandwich/Manifest
index 333618deefa..29efab6f3f7 100644
--- a/app-text/pdfsandwich/Manifest
+++ b/app-text/pdfsandwich/Manifest
@@ -1 +1,2 @@
 DIST pdfsandwich-0.1.4.tar.bz2 16401 BLAKE2B 
cb431f35b199e3e6290c60a3f6c7b2621dd3652a29346092869d8e5f86f5664079de1ef431f9b5e8b9f7cc044d64006295a8176d6a28b2ea5fb820db8c952000
 SHA512 
ee03aea13c72cc5a02136b5d16d2425f685f0b7a9d6fa6cff6c792bd24e6316720dff321b5e8237b949c98c713f39cb8b08b855b76e2a77350927b1ee7943171
+DIST pdfsandwich-0.1.7.tar.bz2 17461 BLAKE2B 
edeb08ab55df89ef2d1f3e43446e831c66e57273b36ecd56a4cc5f910ca5b59a03e2a66b13e7150f06f8f3eb26ed14cd1c80d02cd38d6bd6cfe923c30c801577
 SHA512 
ac315aeba2cc753fddc380e2522d0c41d65ea80372a23c2cd5371ebc239ac104ab5a5a1386378b9e026b2935a767128224f7617a5eb8f5ef9d6874cc18ef83ff

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 000..f16b94379b6
--- /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 0fb15c19e84..36a3f024606 100644
--- a/app-text/pdfsandwich/metadata.xml
+++ b/app-text/pdfsandwich/metadata.xml
@@ -1,7 +1,10 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
+   
+   tup...@gentoo.org
+   Tupone Alfredo
+   

 pdfsandwich generates "sandwich" OCR pdf files, i.e. pdf files which
 contain only images (no text) will be processed by optical character

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 000..23eef187cf7
--- /dev/null
+++ b/app-text/pdfsandwich/pdfsandwich-0.1.7.ebuild
@@ -0,0 +1,46 @@
+# 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-3.00
+   media-gfx/exact-image
+   app-text/unpaper
+   app-text/ghostscript-gpl
+   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