media-gfx/gscan2pdf: version bump to 2.6.0
authorChris Mayo <aklhfex@gmail.com>
Mon, 11 Nov 2019 19:33:17 +0000 (19:33 +0000)
committerJoonas Niilola <juippis@gentoo.org>
Tue, 12 Nov 2019 15:07:09 +0000 (17:07 +0200)
Package-Manager: Portage-2.3.78, Repoman-2.3.16
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
media-gfx/gscan2pdf/Manifest
media-gfx/gscan2pdf/gscan2pdf-2.6.0.ebuild [new file with mode: 0644]

index b9efb156681b075cc7f7384cf65baf672ee64b52..24b6a2265b2193f1b0ad4b7923d126ef577943d7 100644 (file)
@@ -1,3 +1,4 @@
 DIST gscan2pdf-1.8.11.tar.xz 409212 BLAKE2B 37cb716f13818eaffc39c210b810b845368cc5e323569e8f9d5603b5b412c4182520798321358e4c21339fdbd5f15026a0acd6421a49e7db79ecca86633c3ab0 SHA512 1ea09b8768771be4a1700cb8a6523d5f74fcbf0ebe459d97796032b56f896fd0c50e5ca1ed4c96aedef7e61f6952a92986153cc70173dd5ad91ccfb72461c565
 DIST gscan2pdf-2.5.5.tar.xz 450016 BLAKE2B b5f4da6d4c5076f67a45312d5ec2ee0ac1c5420a97df963c3e03e9651f853e7423ffcc5d7fa22b18398c54cca1e8164e73989b52fac0e628898c2ef4271452c7 SHA512 924987a852fceeb04823cf70af08fa0652b436ebe108e5fba4379e7879277c891f4132e27df72e9ac5edbb5e7e105efc18923df1a80d5a44df48e293765b69c4
 DIST gscan2pdf-2.5.6.tar.xz 450940 BLAKE2B 497442bfd09bc5869c599486e03155fe37a6a3f28dbd78aea2b77a5c11db665fb61023f471a47ffc6d15b7ee0509d6a2b6e3034a32279538321c73e544a3190d SHA512 c202b98ba3a1ce5b1cea6541c4dcae88595d46525e87238326d1d53396d3af6f552d601b057fa460db9eb5419505d4ac332f3eb81ff7ff1d28e1aa71700c434a
+DIST gscan2pdf-2.6.0.tar.xz 457984 BLAKE2B ae0185b994b37849f8e7965a2a98a5196edb498b9011cce4b8e3a7d519aaf8858360ab116845c8fcbc9f0802042b4673b3038c1c66b8a9dbcce029f174aa2e14 SHA512 95655289b10257c32cad03ba8502ff1c2f45ee92b9e040a43972249814e25cd84fdfe6aa168a88fcf9651eb571844e5ae10949ff93f827d4bd5727eac2959d28
diff --git a/media-gfx/gscan2pdf/gscan2pdf-2.6.0.ebuild b/media-gfx/gscan2pdf/gscan2pdf-2.6.0.ebuild
new file mode 100644 (file)
index 0000000..2c4c4ca
--- /dev/null
@@ -0,0 +1,90 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_TEST="do"
+
+inherit eutils perl-module virtualx
+
+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() {
+       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
+}
+
+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
+       virtx perl-module_src_test
+}