From patchwork Mon Feb 27 20:55:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jelle Licht X-Patchwork-Id: 47458 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 CC14316BFB; Mon, 27 Feb 2023 20:56:35 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DCE3C16B4C for ; Mon, 27 Feb 2023 20:56:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWkXW-0002zG-7E; Mon, 27 Feb 2023 15:56:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWkXV-0002xx-1t for guix-patches@gnu.org; Mon, 27 Feb 2023 15:56:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWkXT-0004Ol-2m for guix-patches@gnu.org; Mon, 27 Feb 2023 15:56:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWkXS-00033D-Kj for guix-patches@gnu.org; Mon, 27 Feb 2023 15:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61851] [PATCH] gnu: tesseract-ocr-tessdata-fast: Install tesseract config files. Resent-From: jlicht@fsfe.org Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Feb 2023 20:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61851 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61851@debbugs.gnu.org Cc: Jelle Licht X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167753133211676 (code B ref -1); Mon, 27 Feb 2023 20:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2023 20:55:32 +0000 Received: from localhost ([127.0.0.1]:48942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWkWy-00032E-Fv for submit@debbugs.gnu.org; Mon, 27 Feb 2023 15:55:32 -0500 Received: from lists.gnu.org ([209.51.188.17]:58700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWkWu-000320-IF for submit@debbugs.gnu.org; Mon, 27 Feb 2023 15:55:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWkWt-0002ss-Uy for guix-patches@gnu.org; Mon, 27 Feb 2023 15:55:28 -0500 Received: from mail1.fsfe.org ([217.69.89.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWkWq-0004ER-Ei for guix-patches@gnu.org; Mon, 27 Feb 2023 15:55:26 -0500 From: jlicht@fsfe.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1677531318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jwNQplytHi2Q6W0YYfe0gUj8Nm3LLeKrfxrg2dbsKuU=; b=MVHWTaO6NGWjgpRtYYvV+DWgEp3kc61HYflzZuzw9mQnNFveGyVYP41h/e/AlBcXOKt0uI /AsqZe2HNc2V65p2h0QhaD0OSaoUB3XmVIr4jjHbwANe+s3aeYhx1ryI08J1BA2EdbkqIc IskdkgDelMQzV4THjcLYEYw/oLz+5nw= Date: Mon, 27 Feb 2023 21:55:16 +0100 Message-Id: MIME-Version: 1.0 Received-SPF: pass client-ip=217.69.89.151; envelope-from=jlicht@fsfe.org; helo=mail1.fsfe.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Jelle Licht * gnu/packages/ocr.scm (tesseract-ocr-tessdata-fast)[source]: Add recursive? flag. Adjust hash accordingly. [arguments]<#:phases>: Remove unneeded workaround. --- gnu/packages/ocr.scm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gnu/packages/ocr.scm b/gnu/packages/ocr.scm index c1cd4f061e..e07d40bda4 100644 --- a/gnu/packages/ocr.scm +++ b/gnu/packages/ocr.scm @@ -82,18 +82,14 @@ (define-public tesseract-ocr-tessdata-fast (method git-fetch) (uri (git-reference (url "https://github.com/tesseract-ocr/tessdata_fast") + (recursive? #t) ; for tessconfigs (commit version))) (file-name (git-file-name name version)) (sha256 (base32 - "1m310cpb87xx8l8q7jy9fvzf6a0m8rm0dmjpbiwhc2mi6w4gn084")))) + "1hqdsy3zdy5b9l641fvhnawkw6wpb8nkvjql78q8g47js8109mhm")))) (build-system copy-build-system) - (arguments (list #:install-plan #~'(("." "share/tesseract-ocr/tessdata")) - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'delete-broken-links - (lambda _ - (delete-file "configs") - (delete-file "pdf.ttf")))))) + (arguments (list #:install-plan #~'(("." "share/tesseract-ocr/tessdata")))) (home-page "https://github.com/tesseract-ocr/tessdata_fast") (synopsis "Fast integer versions of trained LSTM models") (description "This repository contains fast integer versions of trained