summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2020-05-10 20:11:42 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-05-17 14:28:35 +0300
commitdd1ee6665a178ef02a57972a23478e3cc401473f (patch)
tree2452de91daf3f02219b6dbe977981e00c24e7a9f /media-gfx/gscan2pdf
parentnet-dialup/dwun: Fix building with CFLAGS=-fno-common (diff)
downloadgentoo-dd1ee6665a178ef02a57972a23478e3cc401473f.tar.gz
gentoo-dd1ee6665a178ef02a57972a23478e3cc401473f.tar.bz2
gentoo-dd1ee6665a178ef02a57972a23478e3cc401473f.zip
media-gfx/gscan2pdf: version bump to 2.7.0
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Chris Mayo <aklhfex@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx/gscan2pdf')
-rw-r--r--media-gfx/gscan2pdf/Manifest1
-rw-r--r--media-gfx/gscan2pdf/gscan2pdf-2.7.0.ebuild96
2 files changed, 97 insertions, 0 deletions
diff --git a/media-gfx/gscan2pdf/Manifest b/media-gfx/gscan2pdf/Manifest
index 624626c3fee9..52774e24930a 100644
--- a/media-gfx/gscan2pdf/Manifest
+++ b/media-gfx/gscan2pdf/Manifest
@@ -1,3 +1,4 @@
DIST gscan2pdf-1.8.11.tar.xz 409212 BLAKE2B 37cb716f13818eaffc39c210b810b845368cc5e323569e8f9d5603b5b412c4182520798321358e4c21339fdbd5f15026a0acd6421a49e7db79ecca86633c3ab0 SHA512 1ea09b8768771be4a1700cb8a6523d5f74fcbf0ebe459d97796032b56f896fd0c50e5ca1ed4c96aedef7e61f6952a92986153cc70173dd5ad91ccfb72461c565
DIST gscan2pdf-2.6.5.tar.xz 462400 BLAKE2B 3098656dd4060e480d90558f4bde3b806e31de7e17bc7fa208469d338a41a7e9fb3fbb2d12828c69e0ea745ea6945d015c35bc0d76b00a0377881aff616fba54 SHA512 5e0bfd358daaf340092a54750df791460e3e234ffd144351232e23dad40b6602d45a54e24b61eb54a11c7b8fc7eb7ca192764f67d323f86799d48096483b09d6
DIST gscan2pdf-2.6.7.tar.xz 466260 BLAKE2B 311e21c6d024527eb8c281ff3dd99b1abea61d91c7fad88ce22d7e436144a39999c8db89ba1321ebc1d3949f09814ebdfda1b414b5453cb9faca0635cd804d75 SHA512 926df3434cebb8978ff4714b265b4ceff77c177653855c9416a87084ff6601a84a8e536d799f9efa9645336f49ef2c133672863da364145c5a785b43fd5c7c72
+DIST gscan2pdf-2.7.0.tar.xz 468752 BLAKE2B d8f41842c16ff54fff180d2ecaab3fb09c4b7c4d2eac8ba4b6cd2703cca4538844389af8151eaeac030f5962df7ce9192e60c0515f78d2d8aa9aa0ec2973fb97 SHA512 7878d7e77cf107315301bf7adb29c178f4c35c1986780843dfc1742870b8a9bc6cd7a1a0d06f1c37585e6c2050e75222c8af2359b5a7c194f308ba32b5c64f06
diff --git a/media-gfx/gscan2pdf/gscan2pdf-2.7.0.ebuild b/media-gfx/gscan2pdf/gscan2pdf-2.7.0.ebuild
new file mode 100644
index 000000000000..cda89719399f
--- /dev/null
+++ b/media-gfx/gscan2pdf/gscan2pdf-2.7.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_TEST="do"
+
+inherit eutils perl-module virtualx xdg-utils
+
+DESCRIPTION="Scan documents, perform OCR, produce PDFs and DjVus"
+HOMEPAGE="http://gscan2pdf.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-perl/Config-General
+ dev-perl/Data-UUID
+ dev-perl/Date-Calc
+ dev-perl/Filesys-Df
+ dev-perl/glib-perl
+ dev-perl/GooCanvas2
+ dev-perl/Gtk3
+ dev-perl/Gtk3-SimpleList
+ dev-perl/HTML-Parser
+ dev-perl/Image-Sane
+ dev-perl/List-MoreUtils
+ dev-perl/Locale-gettext
+ dev-perl/Log-Log4perl
+ dev-perl/PDF-API2
+ dev-perl/Proc-ProcessTable
+ dev-perl/Readonly
+ dev-perl/Set-IntSpan
+ dev-perl/Try-Tiny
+ virtual/perl-Archive-Tar
+ virtual/perl-Carp
+ virtual/perl-Data-Dumper
+ virtual/perl-File-Temp
+ virtual/perl-Getopt-Long
+ virtual/perl-threads
+ virtual/perl-threads-shared
+ media-gfx/imagemagick[png,tiff,perl]
+ media-gfx/sane-backends
+ media-libs/tiff"
+
+BDEPEND="
+ test? (
+ ${RDEPEND}
+ dev-perl/Sub-Override
+ media-libs/fontconfig
+
+ app-text/djvu[tiff]
+ app-text/poppler[utils]
+ app-text/tesseract[-opencl,osd(+),tiff]
+ app-text/unpaper
+ media-gfx/imagemagick[djvu,png,tiff,perl]
+ media-gfx/sane-backends[sane_backends_test]
+ media-gfx/sane-frontends
+ )"
+
+PERL_RM_FILES=( t/{90_MANIFEST,91_critic,99_pod}.t )
+
+mydoc="History"
+
+pkg_postinst() {
+ xdg_desktop_database_update
+
+ optfeature "DjVu file support" "app-text/djvu[tiff] media-gfx/imagemagick[djvu]"
+ optfeature "encrypting PDFs" app-text/pdftk
+ optfeature "creating PostScript files from PDFs" app-text/poppler[utils]
+ optfeature "adding to an existing PDF" app-text/poppler[utils]
+ optfeature "Optical Character Recognition" app-text/tesseract[osd,tiff]
+ optfeature "scan post-processing" app-text/unpaper
+ optfeature "automatic document feeder support" media-gfx/sane-frontends
+ optfeature "sending PDFs as email attachments" x11-misc/xdg-utils
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}
+
+src_test() {
+ local confdir="${HOME}/.config/ImageMagick"
+ mkdir -p "${confdir}" || die
+ cat > "${confdir}/policy.xml" <<-EOT || die
+ <policymap>
+ <policy domain="coder" rights="read|write" pattern="PDF" />
+ <policy domain="coder" rights="read" pattern="PS" />
+ </policymap>
+ EOT
+ NO_AT_BRIDGE=1 virtx perl-module_src_test
+}