From 514622455c7b02c433754c846bc39f701ad54507 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Fri, 2 Jul 2021 20:37:02 +0200 Subject: [PATCH] gscan2pdf: update to 2.12.2. --- srcpkgs/gscan2pdf/patches/tesseract.patch | 14 +++++++------- srcpkgs/gscan2pdf/template | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/srcpkgs/gscan2pdf/patches/tesseract.patch b/srcpkgs/gscan2pdf/patches/tesseract.patch index 2fa62f5f073..dd28bb2618a 100644 --- a/srcpkgs/gscan2pdf/patches/tesseract.patch +++ b/srcpkgs/gscan2pdf/patches/tesseract.patch @@ -1,6 +1,6 @@ ---- a/lib/Gscan2pdf/Tesseract.pm 2020-09-21 18:00:10.368568923 +0200 -+++ b/lib/Gscan2pdf/Tesseract.pm 2020-09-21 18:02:36.797305878 +0200 -@@ -52,25 +52,25 @@ +--- a/lib/Gscan2pdf/Tesseract.pm 2021-07-02 20:26:05.063622498 +0200 ++++ b/lib/Gscan2pdf/Tesseract.pm 2021-07-02 20:32:12.104791637 +0200 +@@ -54,25 +54,25 @@ return $installed if $setup; ( undef, my $exe ) = @@ -31,16 +31,16 @@ $setup = 1; return $installed; } -@@ -84,7 +84,7 @@ +@@ -86,7 +86,7 @@ if ( not %languages ) { my @codes; - my ( undef, $out, $err ) = + my ( undef, $out ) = - Gscan2pdf::Document::exec_command( [ 'tesseract', '--list-langs' ] ); + Gscan2pdf::Document::exec_command( [ 'tesseract-ocr', '--list-langs' ] ); - @codes = split /\n/xsm, $err ? $err : $out; + @codes = split /\n/xsm, $out; if ( $codes[0] =~ /^List[ ]of[ ]available[ ]languages/xsm ) { shift @codes; -@@ -97,7 +97,7 @@ +@@ -99,7 +99,7 @@ if ( not defined $name ) { $name = $code; } diff --git a/srcpkgs/gscan2pdf/template b/srcpkgs/gscan2pdf/template index 9c137da14b8..4f75b91b159 100644 --- a/srcpkgs/gscan2pdf/template +++ b/srcpkgs/gscan2pdf/template @@ -1,6 +1,6 @@ # Template file for 'gscan2pdf'. pkgname=gscan2pdf -version=2.12.1 +version=2.12.2 revision=1 build_style=perl-module hostmakedepends="perl gettext" @@ -16,7 +16,7 @@ maintainer="Helmut Pozimski " license="GPL-3.0-or-later" homepage="http://gscan2pdf.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz" -checksum=e5c10a9e695674308d29fe8661c5bb7230e25dfbc098716c26a3188ef1e54074 +checksum=df3fcb340593d47e1d8f54cb8cecc97c08197b37e35ffe314443f7478dff66bf nocross=yes do_check() {