From patchwork Mon Feb 8 06:51:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 26951 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3A7D427BC21; Mon, 8 Feb 2021 11:59:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A061127BC1E for ; Mon, 8 Feb 2021 11:59:35 +0000 (GMT) Received: from localhost ([::1]:52464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l95CY-00010f-R1 for patchwork@mira.cbaines.net; Mon, 08 Feb 2021 06:59:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l90QF-0004kr-Ai for guix-patches@gnu.org; Mon, 08 Feb 2021 01:53:28 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l90Pu-0003Ac-To for guix-patches@gnu.org; Mon, 08 Feb 2021 01:53:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l90Pu-0001DD-St for guix-patches@gnu.org; Mon, 08 Feb 2021 01:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46376] [PATCH] gnu: tesseract-ocr: update to 4.1.1) Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Feb 2021 06:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46376 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46376@debbugs.gnu.org Received: via spool by 46376-submit@debbugs.gnu.org id=B46376.16127671504550 (code B ref 46376); Mon, 08 Feb 2021 06:53:02 +0000 Received: (at 46376) by debbugs.gnu.org; 8 Feb 2021 06:52:30 +0000 Received: from localhost ([127.0.0.1]:49578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l90PN-0001BJ-Ql for submit@debbugs.gnu.org; Mon, 08 Feb 2021 01:52:30 -0500 Received: from mail-il1-f171.google.com ([209.85.166.171]:39124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l90PK-0001Aw-Ob for 46376@debbugs.gnu.org; Mon, 08 Feb 2021 01:52:27 -0500 Received: by mail-il1-f171.google.com with SMTP id d6so11791506ilo.6 for <46376@debbugs.gnu.org>; Sun, 07 Feb 2021 22:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=BXhXDccuaV8lG/aZa9qe1IdO5wy2ePb5B5MmoTvw0Vs=; b=f/TxNlF4R3vEyGUtJcFZ7NC/Hevjik+M+HhbfStosgn9za4l9I6pkOxNKm4i2tX1Xv bLdBnmk5/3UAplgjaDRZskbnPT17q4wyut0+eh6gKDIFNw4oRsUBkgWTMZtJH36UxhGQ wEASbrNSIGpGXAqdQnTjHBEVHVWEpFT04NHMpqEY8zRQ7/pSRSyCYC8a78NwSH7nLI1u 82GHwWqvtu1FQphprYD4KiSeOHHLuw99qx1+A99oesLOeeXuIrGzmtbGh2y5IGx4xaPH 5MjD6B+sJCZ7+wv7kDz4/SDW2HbBdBcznZsRsYfSP+CWEK9spksIKgyVogX4Usut5hsf CjUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=BXhXDccuaV8lG/aZa9qe1IdO5wy2ePb5B5MmoTvw0Vs=; b=c/XGey9s/g1XBcWb4FRdDgBeWIw3GaXRoI7j6Sh0uCIgLIYW+KW8QVhbWRhJ7tf6Hc NMMLUWipnoMLpvf9sMEvJZkhCNtZb1E7rdRu1cl0olRhmtGvq/VEV95TOilY53B+FIOt +HuKI6fxv7x1pOVpHb3/1dRyX7k2k/DOptghtgjE7whr2icXArSbhWveV3T9r3mYvTim HdH/+6rt28J7Pk+HyLr3UyXOWiZ1LELwR2mg7v7KP+iFUHoNeIhQo+JGatdVWhaWgLgl ActNkUqDdMUjmM7hvsYkeKNVQyFgU6LNGBCGSCd9QSXFRcFzexyF2+xyULhzGGtIJnQC EEGA== X-Gm-Message-State: AOAM533rquxu0TMrWF5Pa5vjOGCeRtdXumI1mwfF++A6+lNxTq6fdB+l 85/xkYge6dDcvdrbSSgmRbstmfOr6jz6I7OkMoVgMCu3gtVWqw== X-Google-Smtp-Source: ABdhPJzUv37z8LedpMT3bubkoIaFAiIjd2vcUcyIUvCCRPx+MGS6/GR/ePTek2O7mHoTqKfFGjn2hlymEuTzfk2lL+8= X-Received: by 2002:a05:6e02:881:: with SMTP id z1mr14249496ils.288.1612767140757; Sun, 07 Feb 2021 22:52:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andy Tai Date: Sun, 7 Feb 2021 22:51:45 -0800 Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocr.scm (tesseract-ocr): update to 4.1.1 --- gnu/packages/ocr.scm | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) (let* ((commit "581faa8f6f15e4a7b21964be3a5ec36265c80e5b") diff --git a/gnu/packages/ocr.scm b/gnu/packages/ocr.scm index dc4930918a..b666ec5aab 100644 --- a/gnu/packages/ocr.scm +++ b/gnu/packages/ocr.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2016, 2020 Efraim Flashner ;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; Copyright © 2019 Alex Vong +;;; Copyright © 2021 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,7 +27,12 @@ #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (gnu packages autotools) + #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages gtk) + #:use-module (gnu packages icu4c) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages image)) @@ -52,25 +58,41 @@ it produces text in 8-bit or UTF-8 formats.") (license license:gpl3+))) (define-public tesseract-ocr + ;; some useful commits beyond last official stable release in release branch + (let ((commit "97079fa353557af6df86fd20b5d2e0dff5d8d5df")) (package (name "tesseract-ocr") - (version "3.04.01") + (version "4.1.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tesseract-ocr/tesseract") - (commit version))) - (file-name (git-file-name name version)) + (commit commit) + ;; Fetch git submodules + (recursive? #t))) + (file-name (string-append name "-" version "-" commit "-checkout")) (sha256 - (base32 "0h1x4z1h86n2gwknd0wck6gykkp99bmm02lg4a47a698g4az6ybv")))) + (base32 "0axwla82fpzp86lc553wp3hk0fz5dylw4as0jbf4hkqcyajlbzp4")))) (build-system gnu-build-system) (inputs - `(("leptonica" ,leptonica))) + `( ("cairo" ,cairo) + ("icu" ,icu4c) + ("leptonica" ,leptonica) + ("pango" ,pango))) + (native-inputs + `(("autoconf" ,autoconf) + ("autoconf-archive" ,autoconf-archive) + ("automake" ,automake) + ("googletest" ,googletest) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) (arguments '(#:configure-flags (let ((leptonica (assoc-ref %build-inputs "leptonica"))) - (list (string-append "LIBLEPT_HEADERSDIR=" leptonica "/include"))))) + (list (string-append "LIBLEPT_HEADERSDIR=" leptonica "/include"))) + ;; some test, applybox_test fails to build + #:tests? #f)) (home-page "https://github.com/tesseract-ocr/tesseract") (synopsis "Optical character recognition engine") (description @@ -79,7 +101,7 @@ high accuracy. It supports many languages, output text formatting, hOCR positional information and page layout analysis. Several image formats are supported through the Leptonica library. It can also detect whether text is monospaced or proportional.") - (license license:asl2.0))) + (license license:asl2.0)))) (define-public zinnia