From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SMgXGYpvIWBvGgAA0tVLHw (envelope-from ) for ; Mon, 08 Feb 2021 17:06:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 9X/2FIpvIWD9dAAAB5/wlQ (envelope-from ) for ; Mon, 08 Feb 2021 17:06:18 +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 718169404C8 for ; Mon, 8 Feb 2021 17:06:17 +0000 (UTC) Received: from localhost ([::1]:59972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l99zM-0002BZ-1t for larch@yhetil.org; Mon, 08 Feb 2021 12:06:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l92nB-0007n9-5E for guix-patches@gnu.org; Mon, 08 Feb 2021 04:25:14 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38261) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l92n0-00065j-Gl for guix-patches@gnu.org; Mon, 08 Feb 2021 04:25:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l92n0-00035x-Dd for guix-patches@gnu.org; Mon, 08 Feb 2021 04:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46377] [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 09:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46377@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161277624811801 (code B ref -1); Mon, 08 Feb 2021 09:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Feb 2021 09:24:08 +0000 Received: from localhost ([127.0.0.1]:49801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l92m6-00034G-W8 for submit@debbugs.gnu.org; Mon, 08 Feb 2021 04:24:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:50582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l907v-0006uL-A6 for submit@debbugs.gnu.org; Mon, 08 Feb 2021 01:34:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l907o-0002me-Mw for guix-patches@gnu.org; Mon, 08 Feb 2021 01:34:22 -0500 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]:38503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l907L-0007IR-Jv for guix-patches@gnu.org; Mon, 08 Feb 2021 01:34:04 -0500 Received: by mail-il1-x12c.google.com with SMTP id a16so11759660ilq.5 for ; Sun, 07 Feb 2021 22:33:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=lLRkyOIMySFdYsEpyXoUR/HsUErzOJ7gVBgA9AhJlfE=; b=qgOjlX0eT+i9qJp1KvlKP24cqjVFMM0Up95LmBB80s8SIWM5lsGZqJBT2mifS+VNpQ n1A9KXi2lRujmaH7O1iODHSTFEObY40VJLOJbmeZnzpNIYD4B3ipk/Ng9WjOQunHXxOw GQy9IAESencUeaE7xbtr91zsKMbOfPChmYrCF1hq/WA8nzD6A0I254qAtePRNKxxKxAH xABW5cPe0bXhPqJrsDmPXLdYf9PdbdwO1VCir4kCpcWjzkeH+nX7opnJ+4yYgE/5/1lP AHzqKbT7pDWsq6n+dS0IZhUhA413h6YtWT6Qeqa2Qd8XUanp3miSYtxN7UlvrahUMNag WEEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=lLRkyOIMySFdYsEpyXoUR/HsUErzOJ7gVBgA9AhJlfE=; b=GCov0FB/8XrZnYdI5uYT1FBuBd5qY8TqH+OF8rmVV7QXnwJ+poDo1GGOb6Fl4DqE+a YAmN4HVE3H5SqXiDiY/dg0ifW+w60s81DdDozKIMcyzQP6fSWWmh7nl6uNxPOM1sMOQf 5vMvuNefCUuVsnfBGabkLy3XbYARdOAo+P0QwhdDsTIj1NCOctnLTiLJiZEvfuE1nKra owB66Aw8nEX+jFKGc4yeSESSDf88iaOVMx+xpLdZvRTtlMpOvCUdr1q5GHnY7c1AInNI nY9pksw6BZhGt58wUcoWVKdwYgMiisACTUlVc8tsPEaeMdo53aNtEvvLJbEPfWMoNz3l l3EA== X-Gm-Message-State: AOAM530OuvfiatOVSHqY0+UpuvQh5csAWJUmgPzp76h3OLAOoFqI2PZE gv8p+QGsjSyt1NjF7c6Qmo4SajcvlhsDE8IWTnAjF1VbRn4j4Q== X-Google-Smtp-Source: ABdhPJxxNBQWLSq/30h0wJf6fAvtkc0ruRaehR9W+STvyynwBlP3u3OcrQJ84RpI1Tgwk42wXc/OJrCuVsp+VLlM2Sc= X-Received: by 2002:a05:6e02:881:: with SMTP id z1mr14209661ils.288.1612766002821; Sun, 07 Feb 2021 22:33:22 -0800 (PST) MIME-Version: 1.0 From: Andy Tai Date: Sun, 7 Feb 2021 22:32:47 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::12c; envelope-from=lichengtai@gmail.com; helo=mail-il1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 08 Feb 2021 04:24:05 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 08 Feb 2021 09:30:14 -0500 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.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=qgOjlX0e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 718169404C8 X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: wIEe8O5Cd031 * gnu/packages/ocr.scm (tesseract-ocr): update to 4.1.1 --- gnu/packages/ocr.scm | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/gnu/packages/ocr.scm b/gnu/packages/ocr.scm index dc4930918a..7fc3929684 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,43 @@ 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 otherwise typeshed is not fetched. + ;; Typeshed is a collection of Python sources type annotatio= n + ;; (data) files. + (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 +103,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