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 uIWkBASdZV9/HwAA0tVLHw (envelope-from ) for ; Sat, 19 Sep 2020 05:54:12 +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 IFmQAASdZV97KAAA1q6Kng (envelope-from ) for ; Sat, 19 Sep 2020 05:54:12 +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 1540F9400AD for ; Sat, 19 Sep 2020 05:54:10 +0000 (UTC) Received: from localhost ([::1]:44818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJVp2-0002sP-PL for larch@yhetil.org; Sat, 19 Sep 2020 01:54:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJVow-0002sC-Sh for guix-patches@gnu.org; Sat, 19 Sep 2020 01:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJVow-00067c-Ip for guix-patches@gnu.org; Sat, 19 Sep 2020 01:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJVow-0002y2-Gn for guix-patches@gnu.org; Sat, 19 Sep 2020 01:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43504] [PATCH] gnu: Add scantailor-advanced. Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Sep 2020 05:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43504 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43504@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160049482111377 (code B ref -1); Sat, 19 Sep 2020 05:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Sep 2020 05:53:41 +0000 Received: from localhost ([127.0.0.1]:45535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJVoa-0002xR-SI for submit@debbugs.gnu.org; Sat, 19 Sep 2020 01:53:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:39482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJVoY-0002xI-Td for submit@debbugs.gnu.org; Sat, 19 Sep 2020 01:53:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJVoY-0002r6-Jt for guix-patches@gnu.org; Sat, 19 Sep 2020 01:53:38 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050::465:103]:24820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1kJVoV-00066Y-V3 for guix-patches@gnu.org; Sat, 19 Sep 2020 01:53:37 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4BtfyJ3fJhzKm5Y for ; Sat, 19 Sep 2020 07:53:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1600494806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S+yqzzXnHShYMoeAyeTfsENL9mGmeP93eSGbTGWj6So=; b=wHr9qxnFrLQhhZbO7W6iD0O0BmPnCLmFOWHWh0HWW8z3C1d5JFEpxfvwPs4sEri/I0iGug mccEzhecaP6Y/oj1xVY2ZVnUcDf4Cv7EKEm8RPpWRWRcybGhtVcFk4hk8hAyQ9zrPrWiLr PjqhMASOXDUnE15LQkuUPGdVe//NacJTLer8SGngGHAXTtym2qGgV0olzGZ33GuH7yWMPf mZRQhzZHtLKbx4arK2zkx7qwpavPJm74R0YKInNA+u8hLT73MJdzsAWQ3im6Js/ofwcD+f rfaiWgrucY6A/kofuNRsXSa4vBJrXQc+LnymGwiS1MwdrYzbNJ3KzY71gSAyXw== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id lzfdGVg0Uyiu for ; Sat, 19 Sep 2020 07:53:24 +0200 (CEST) From: Brendan Tildesley Date: Sat, 19 Sep 2020 15:52:30 +1000 Message-Id: <20200919055230.21174-1-mail@brendan.scot> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -8.09 / 15.00 / 15.00 X-Rspamd-Queue-Id: 23093EF9 X-Rspamd-UID: 5f39a2 Received-SPF: pass client-ip=2001:67c:2050::465:103; envelope-from=mail@brendan.scot; helo=mout-p-103.mailbox.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, 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-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.6 (--) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=brendan.scot header.s=MBO0001 header.b=wHr9qxnF; 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-Spam-Score: 0.99 X-TUID: 10Iht0LJA8Dn * gnu/packages/image-processing.scm (scantailor-advanced): New variable. --- gnu/packages/image-processing.scm | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 9158e14938..c480fae05a 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Pierre Neidhardt +;;; Copyright © 2020 Brendan Tildesley ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,6 +34,7 @@ #:use-module (guix utils) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system qt) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (gnu packages) @@ -1015,3 +1017,51 @@ substitued, as well as collage-style photomosaics, in which rectangular parts of the source image at arbitrary positions (i.e. not aligned to a matrix) are substituted by matching images.") (license license:gpl2)))) + +(define-public scantailor-advanced + (let ((commit "df1f8e25d16e08594d530c18de58f44b1fd7b0a5")) + (package + (name "scantailor-advanced") + (version (string-append "1.0.16-" (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/brendan-t/scantailor-advanced") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0jycvw39yg17zrd2fdmihskkwb3jx2j50479bnqh50jcndligb3f")))) + (build-system qt-build-system) + (native-inputs + `(("qttools" ,qttools))) + (inputs + `(("boost" ,boost) + ("libjpeg" ,libjpeg-turbo) + ("libpng" ,libpng) + ("libtiff" ,libtiff) + ("qtbase" ,qtbase) + ("qtsvg" ,qtsvg) + ("zlib" ,zlib))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Some tests require a display and fail with offscreen mode. + (add-after 'unpack 'disable-failing-tests + (lambda _ + (setenv "ARGS" "--exclude-regex \"imageproc_.*\"") + #t))))) + (home-page "https://github.com/4lex4/scantailor-advanced") + (synopsis "Clean up scanned pages") + (description "Scan Tailor is an interactive post-processing tool for +scanned pages. It performs operations such as page splitting, deskewing, +adding/removing borders, and others. You give it raw scans, and you get pages +ready to be printed or assembled into a PDF or DJVU file. Scanning, optical +character recognition, and assembling multi-page documents are out of scope of +this project. + +Scan Tailer Advanced is a development of Scan Tailer that merges features and +bug fixes from Scan Tailor Featured and Scan Tailor Enhanced versions. Guix's +version additionally includes a Korean translation.") + (license license:gpl3+)))) -- 2.28.0