summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2022-10-16 19:39:45 +0100
committerSam James <sam@gentoo.org>2022-10-30 09:33:28 +0000
commitb5d3c14cc5a36da47924dbdf6eec8d9e5b5da605 (patch)
tree65eefef7f42853aa05d4659b0ad3bb0cc92f1005 /media-gfx
parentmedia-gfx/xdot: add tests (diff)
downloadgentoo-b5d3c14cc5a36da47924dbdf6eec8d9e5b5da605.tar.gz
gentoo-b5d3c14cc5a36da47924dbdf6eec8d9e5b5da605.tar.bz2
gentoo-b5d3c14cc5a36da47924dbdf6eec8d9e5b5da605.zip
media-gfx/gscan2pdf: add 2.13.0
Signed-off-by: Chris Mayo <aklhfex@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/27810 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gscan2pdf/Manifest1
-rw-r--r--media-gfx/gscan2pdf/gscan2pdf-2.13.0.ebuild110
2 files changed, 111 insertions, 0 deletions
diff --git a/media-gfx/gscan2pdf/Manifest b/media-gfx/gscan2pdf/Manifest
index d3fa9f3cb837..e5d167bac855 100644
--- a/media-gfx/gscan2pdf/Manifest
+++ b/media-gfx/gscan2pdf/Manifest
@@ -1,2 +1,3 @@
DIST gscan2pdf-2.12.5.tar.xz 502636 BLAKE2B 5fb92a4e5dfdbd985119058ed86ca015a58e97fd73edae4d46279e482351f9b5514045a60bb67ca2bfb58fa1e4315bc03ca67a2f2e3ed0cd2c941d8ae755fdfa SHA512 eeeec0940ef4a40b8cb7e961758e9688c94d980842ab36c4e52384099d1e28773f2967a75eb7c024ab713b880c2538d8395021bfabd68cffa7b334fdd35d773b
DIST gscan2pdf-2.12.8.tar.xz 503940 BLAKE2B 16433addec7306cab60a258b58b0239fb0eeea5b0a98ea24fda0de65d9f1901feca9093ab7a6f7fedfb6740abf4e59a16cdeac2d3d7de5141320c55855be7c79 SHA512 18d4bd12580d20b29e0086d1df541a2c044f03b98d8e7c8a91b87540622160aa5a9c2d13a888d5f557d1d975b5dc7a6ae8fd0f2c9be254e60d8a979c979e6040
+DIST gscan2pdf-2.13.0.tar.xz 503876 BLAKE2B 784b52d9e06fe8a112b2e4d6ce281c037f1e834154e0d19ee9112b4027e2075971d52114f7f6d197bee024aabd84a2263fa98ba08e4cade6129dd0a0a4d2a104 SHA512 81a72d2241cf32dfdf628ab991476e435812e9f04f54c8fe311d0c7ef5e77e6d38091523aa4bf610382d76e1e4f5049cd5ba96c68f6d796298f9e2a584ff0d5d
diff --git a/media-gfx/gscan2pdf/gscan2pdf-2.13.0.ebuild b/media-gfx/gscan2pdf/gscan2pdf-2.13.0.ebuild
new file mode 100644
index 000000000000..4bfade7a935f
--- /dev/null
+++ b/media-gfx/gscan2pdf/gscan2pdf-2.13.0.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_TEST="do"
+
+inherit optfeature 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 ~arm64 ~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-ImageView-10.0.0
+ dev-perl/Gtk3-SimpleList
+ dev-perl/HTML-Parser
+ dev-perl/Image-Sane
+ dev-perl/List-MoreUtils
+ dev-perl/Locale-Codes
+ dev-perl/Locale-gettext
+ dev-perl/Log-Log4perl
+ >=dev-perl/PDF-Builder-3.23.0
+ 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/IPC-System-Simple
+ dev-perl/Sub-Override
+ media-libs/fontconfig
+
+ app-text/djvu[jpeg,tiff]
+ app-text/poppler[utils]
+ app-text/tesseract[-opencl,osd(+),png,tiff]
+ app-text/unpaper
+ media-gfx/imagemagick[djvu,jpeg,png,tiff,perl,postscript,truetype]
+ media-gfx/sane-backends[sane_backends_test]
+ media-gfx/sane-frontends
+ )"
+
+PERL_RM_FILES=( t/{90_MANIFEST,91_critic,99_pod,169_import_scan}.t )
+
+mydoc="History"
+
+src_test() {
+ einfo "Using:"
+ einfo " $(best_version app-text/djvu)"
+ einfo " $(best_version app-text/poppler)"
+ einfo " $(best_version app-text/tesseract)"
+ einfo " $(best_version dev-perl/Gtk3-ImageView)"
+ einfo " $(best_version dev-perl/Image-Sane)"
+ einfo " $(best_version dev-perl/PDF-Builder)"
+ einfo " $(best_version media-gfx/imagemagick)"
+ einfo " $(best_version media-gfx/sane-backends)"
+ einfo " $(best_version media-libs/tiff)"
+
+ 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
+}
+
+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[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
+}