From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yE3lIqwnIWClBQAA0tVLHw (envelope-from ) for ; Mon, 08 Feb 2021 11:59:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SLLNHqwnIWAOfQAA1q6Kng (envelope-from ) for ; Mon, 08 Feb 2021 11:59:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AB3DF9405D4 for ; Mon, 8 Feb 2021 11:59:39 +0000 (UTC) Received: from localhost ([::1]:52464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l95Cb-00010f-Jk for larch@yhetil.org; Mon, 08 Feb 2021 06:59:37 -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: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=atai-org.20150623.gappssmtp.com header.s=20150623 header.b="f/TxNlF4"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: AB3DF9405D4 X-Spam-Score: -1.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: CVXA23Gdjbjl * gnu/packages/ocr.scm (tesseract-ocr): update to 4.1.1 --- gnu/packages/ocr.scm | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) 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 =C2=A9 2016, 2020 Efraim Flashner ;;; Copyright =C2=A9 2019 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2019 Alex Vong +;;; Copyright =C2=A9 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 br= anch + (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=3D" leptonica "/include"= ))))) + (list (string-append "LIBLEPT_HEADERSDIR=3D" 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 ar= e 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 (let* ((commit "581faa8f6f15e4a7b21964be3a5ec36265c80e5b") --=20 2.30.0