Github messages for voidlinux
 help / color / mirror / Atom feed
From: numerys <numerys@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] gscan2pdf: corrected a patch to make tesseract available
Date: Wed, 29 Mar 2023 16:25:22 +0200	[thread overview]
Message-ID: <20230329142522.NdQjevBJzVhNw2OXZaS6jFtE81xlIdZnfOLgVIlsiao@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42968@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

There is an updated pull request by numerys against master on the void-packages repository

https://github.com/numerys/void-packages gscan2pdf
https://github.com/void-linux/void-packages/pull/42968

gscan2pdf: corrected a patch to make tesseract available
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)


A patch file from https://github.com/void-linux/void-packages/pull/42968.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gscan2pdf-42968.patch --]
[-- Type: text/x-diff, Size: 1756 bytes --]

From 88f2f90fd3f185f356b9487d5a65fe735a9328ce Mon Sep 17 00:00:00 2001
From: numerys <g@numerys.net>
Date: Thu, 23 Mar 2023 23:26:02 +0100
Subject: [PATCH] gscan2pdf: corrected Tesseract-OCR patch 5146224, closes
 #42968

---
 srcpkgs/gscan2pdf/patches/tesseract.patch | 6 ++----
 srcpkgs/gscan2pdf/template                | 4 ++--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/gscan2pdf/patches/tesseract.patch b/srcpkgs/gscan2pdf/patches/tesseract.patch
index dd28bb2618a5..52ac12e7b450 100644
--- a/srcpkgs/gscan2pdf/patches/tesseract.patch
+++ b/srcpkgs/gscan2pdf/patches/tesseract.patch
@@ -13,13 +13,11 @@
      # we can use --list-langs and not bother with tessdata
      ( undef, my $out, my $err ) =
 -      Gscan2pdf::Document::exec_command( [ 'tesseract', '-v' ] );
--    if ( $err =~ /^tesseract[ ]([\d.]+)/xsm ) {
 +      Gscan2pdf::Document::exec_command( [ 'tesseract-ocr', '-v' ] );
-+    if ( $err =~ /^tesseract-ocr[ ]([\d.]+)/xsm ) {
+     if ( $err =~ /^tesseract[ ]([\d.]+)/xsm ) {
          $version = $1;
      }
--    elsif ( $out =~ /^tesseract[ ]([\d.]+)/xsm ) {
-+    elsif ( $out =~ /^tesseract-ocr[ ]([\d.]+)/xsm ) {
+     elsif ( $out =~ /^tesseract[ ]([\d.]+)/xsm ) {
          $version = $1;
      }
      if ( not $version )                 { return }
diff --git a/srcpkgs/gscan2pdf/template b/srcpkgs/gscan2pdf/template
index 875e3b598af7..1c80a5d8b2be 100644
--- a/srcpkgs/gscan2pdf/template
+++ b/srcpkgs/gscan2pdf/template
@@ -1,7 +1,7 @@
-# Template file for 'gscan2pdf'.
+# Template file for 'gscan2pdf'
 pkgname=gscan2pdf
 version=2.13.2
-revision=1
+revision=2
 build_style=perl-module
 hostmakedepends="perl gettext"
 makedepends="ImageMagick djvulibre libmagick-perl perl-Config-General

  parent reply	other threads:[~2023-03-29 14:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24  1:00 [PR PATCH] " numerys
2023-03-24  2:06 ` classabbyamp
2023-03-24 10:17 ` [PR PATCH] [Updated] " numerys
2023-03-24 10:30 ` numerys
2023-03-24 11:20 ` numerys
2023-03-24 11:38 ` numerys
2023-03-24 11:50 ` numerys
2023-03-25  2:00 ` classabbyamp
2023-03-28 14:34 ` [PR PATCH] [Updated] " numerys
2023-03-28 17:49 ` numerys
2023-03-28 21:14 ` numerys
2023-03-28 21:14 ` numerys
2023-03-28 21:26 ` numerys
2023-03-29 14:25 ` numerys [this message]
2023-03-29 14:32 ` [PR PATCH] [Merged]: " Hoshpak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230329142522.NdQjevBJzVhNw2OXZaS6jFtE81xlIdZnfOLgVIlsiao@z \
    --to=numerys@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).