From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oCz2LedrfGbMXAEAqHPOHw:P1 (envelope-from ) for ; Wed, 26 Jun 2024 19:28:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oCz2LedrfGbMXAEAqHPOHw (envelope-from ) for ; Wed, 26 Jun 2024 21:28:39 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=PkBwtgjf; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719430119; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JssKs4glmegiCc5KxJczfnoVJXr6R0wZbiRj4J0PCkQ=; b=gRlsA4OAICay3IR/NcKHuvCD5qowjjrXv+3id6dwSmH7JigCnzF10NytwPzE/7rEc0Y9GZ Y8N47r0+sQeVf3TtcsqZtmaghK42L4lR1J8LHbuMaHwlmVgjplp39vbQGNj4JWvbF6YTP5 XpBY8iKMDyj/kb1zWuD7U2XyYATPBRbOnreqdZ1wFzhOvE33TCquEd0tOksZpT3IPN2yhm 2ivwpb9jvgShiYQNjCOvpVyh7b2VbRvkg2uXQxI2xjh5w5rNQQiKULnJyajiwvNS44R1gX imfwEQpFrSd35N5lBg2LIWDlOOJKkH6dWkYjSnQBdwhusJ1ELy8JPMJ568epTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=PkBwtgjf; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719430119; a=rsa-sha256; cv=none; b=qk4rkvdd29RqCZckzDMDMcuPeZEVNGbqhLWeq0ywA9rE2ub7gJed2YOhb3LRfkA5IlphsI WV/uLToZg4CfCrQNhry/OnDLjyMkTlDRpqfUpPQgP6hSvzXNDxk05egqvNN6ilsU2l975F WCjJt3vji9sz4VLghi6hT2t93ZrCDWXKsLb3HccdEOwip/nh0+iEWeAvKaErwiuR+ZaJ65 34uiVKB8clhw5rxqX2LOKg+4kP2+XhGkmHEGn+2fbWbO4o7wWoHyRxf1n8gQVoddaduLhK 42qdEJj8QbNVEQc9uiOw4H6tQHsgjg+Mkj4V/sPFZAYDhSd1yG0OCnhp4GnZog== 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 A592A76555 for ; Wed, 26 Jun 2024 21:28:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMYJY-0003T2-6O; Wed, 26 Jun 2024 15:28:20 -0400 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 1sMYJN-0003P6-1d for guix-patches@gnu.org; Wed, 26 Jun 2024 15:28:10 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMYJG-0007eO-BQ for guix-patches@gnu.org; Wed, 26 Jun 2024 15:28:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMYJI-0007EN-PH for guix-patches@gnu.org; Wed, 26 Jun 2024 15:28:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71787] [PATCH 08/12] gnu: Add mupdf/tesseract. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Jun 2024 19:28:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71787 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71787@debbugs.gnu.org Cc: David Elsing Received: via spool by 71787-submit@debbugs.gnu.org id=B71787.171943007927714 (code B ref 71787); Wed, 26 Jun 2024 19:28:04 +0000 Received: (at 71787) by debbugs.gnu.org; 26 Jun 2024 19:27:59 +0000 Received: from localhost ([127.0.0.1]:40346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMYJC-0007Cq-PM for submit@debbugs.gnu.org; Wed, 26 Jun 2024 15:27:59 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMYJ5-0007BL-Qy for 71787@debbugs.gnu.org; Wed, 26 Jun 2024 15:27:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 366B9240103 for <71787@debbugs.gnu.org>; Wed, 26 Jun 2024 21:27:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719430063; bh=KtjpK3XJF2mE+Ae8MQGc4wF2IVwep8dD9KASbYKJ4pI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=PkBwtgjf9YZkt5fnaWGHRzr57I+KmUprbwiLpt0Sx+xuD5uA616KP3XH0GXPB/M/C MBEVgYoBJAsMMWdxD7fnxJreLwbtyXKGntuOTMPJtVXzs146qQdyP930Jy/rpdpF7j 76jrKw5llcqU1sdJ3XXi57iOo34uTXNPXidkL4YaGsPJVzOXvYf6iBcmbFaQIt6gwQ SsG1152uTC9KvWvJJR+eMVc55+zMPoJoBXWiCUUaFb12aMzY+vChBZvbStEXFPO5Xb GYJIw9NYh9/fx6SY7+WLZedcPI3AGbAA9xrtHf0mHb1j0H9iVcnDM8SoVS7SQ4l8ut lzbRqEAm0Wv/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W8Wtk5YPJz9rxK; Wed, 26 Jun 2024 21:27:42 +0200 (CEST) From: David Elsing Date: Wed, 26 Jun 2024 19:27:01 +0000 Message-ID: <20240626192717.12818-8-david.elsing@posteo.net> In-Reply-To: <20240626192505.12401-1-david.elsing@posteo.net> References: <20240626192505.12401-1-david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 3.93 X-Migadu-Queue-Id: A592A76555 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 3.93 X-TUID: D4WqOGhYTNIX * gnu/packages/pdf.scm (mupdf/tesseract): New variable. --- gnu/packages/pdf.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 232cafcbf1..9e10264fad 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -966,6 +966,20 @@ (define-public mupdf license:silofl1.1 ;resources/fonts/{han,noto,sil,urw} license:asl2.0)))) ; resources/fonts/droid +(define-public mupdf/tesseract + (package/inherit mupdf + (name (string-append (package-name mupdf) "-with-tesseract")) + (inputs (modify-inputs (package-inputs mupdf) + (prepend leptonica tesseract-ocr))) + (arguments + (substitute-keyword-arguments (package-arguments mupdf) + ((#:make-flags flags) + #~(cons* + "tesseract=yes" + "USE_SYSTEM_LEPTONICA=yes" + "USE_SYSTEM_TESSERACT=yes" + #$flags)))))) + (define-public qpdf (package (name "qpdf") -- 2.45.1