GNU bug report logs - #78643
[PATCH 0/3] gnu: Add spectacle-ocr-screenshot.

Previous Next

Package: guix-patches;

Reported by: Sughosha <sughosha <at> disroot.org>

Date: Fri, 30 May 2025 17:54:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 78643 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to sughosha <at> disroot.org, z572 <at> z572.online, guix-patches <at> gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 17:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sughosha <sughosha <at> disroot.org>:
New bug report received and forwarded. Copy sent to sughosha <at> disroot.org, z572 <at> z572.online, guix-patches <at> gnu.org. (Fri, 30 May 2025 17:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sughosha <sughosha <at> disroot.org>
To: guix-patches <at> gnu.org
Cc: Sughosha <sughosha <at> disroot.org>
Subject: [PATCH 0/3] gnu: Add spectacle-ocr-screenshot.
Date: Fri, 30 May 2025 23:22:28 +0530
This series updates zxing-cpp and adds spectacle-ocr-screenshot. 

Sughosha (3):
  gnu: Add zint.
  gnu: zxing-cpp: Update to 2.3.0.
  gnu: Add spectacle-ocr-screenshot.

 gnu/packages/aidc.scm            | 80 +++++++++++++++++++++++---------
 gnu/packages/kde-systemtools.scm | 43 +++++++++++++++++
 2 files changed, 100 insertions(+), 23 deletions(-)


base-commit: 6659e1bfac2e9edba0edabc5aaa3941c1c413f51
-- 
2.49.0





Information forwarded to guix-patches <at> gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 18:02:02 GMT) Full text and rfc822 format available.

Message #8 received at 78643 <at> debbugs.gnu.org (full text, mbox):

From: Sughosha <sughosha <at> disroot.org>
To: 78643 <at> debbugs.gnu.org
Cc: Sughosha <sughosha <at> disroot.org>
Subject: [PATCH 1/3] gnu: Add zint.
Date: Fri, 30 May 2025 23:31:00 +0530
* gnu/packages/aidc.scm (zint): New variable.

Change-Id: Id2415cc91cceef96696fc8e70146452310f905f4
---
 gnu/packages/aidc.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index a4816472d7..9400bb2823 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -46,9 +46,42 @@ (define-module (gnu packages aidc)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages video)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system qt)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk))
 
+(define-public zint
+  (package
+    (name "zint")
+    (version "2.15.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/zint/zint")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0arnpdqspyy3bxafm3lqc020bhwq3vazfnja2fk2s8c7mr9wimgr"))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:configure-flags
+           #~(list "-DZINT_QT6=ON"
+                   "-DZINT_TEST=ON"
+                   "-DZINT_UNINSTALL=OFF")))
+    (native-inputs
+     (list pkg-config qttools))
+    (inputs
+     (list libpng
+           qtsvg))
+    (synopsis "Barcode encoding library")
+    (description "Zint is a suite of programs to allow easy encoding of data in
+any of the wide range of public domain barcode standards and to allow
+integration of this capability into your own programs.")
+    (home-page "https://www.zint.org.uk/")
+    (license (list license:bsd-2 license:gpl3+))))
+
 (define-public zxing-cpp
   ;; Use the master branch as it includes unreleased build system improvements
   ;; allowing to use system libraries (instead of attempting to fetch them
-- 
2.49.0





Information forwarded to guix-patches <at> gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 18:02:02 GMT) Full text and rfc822 format available.

Message #11 received at 78643 <at> debbugs.gnu.org (full text, mbox):

From: Sughosha <sughosha <at> disroot.org>
To: 78643 <at> debbugs.gnu.org
Cc: Sughosha <sughosha <at> disroot.org>
Subject: [PATCH 2/3] gnu: zxing-cpp: Update to 2.3.0.
Date: Fri, 30 May 2025 23:31:01 +0530
* gnu/packages/aidc.scm (zxing-cpp): Update to 2.3.0.
[arguments]<#:configure-flags>: Add "-DZXING_USE_BUNDLED_ZINT=OFF",
"-DZXING_EXAMPLES=OFF" and "-DZXING_UNIT_TESTS=ON".
[native-inputs]: Add pkg-config.
[inputs]: Add zint.

Change-Id: Ib16a05a0e629609420948120870b6a031aea5bcd
---
 gnu/packages/aidc.scm | 47 ++++++++++++++++++++++---------------------
 1 file changed, 24 insertions(+), 23 deletions(-)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index 9400bb2823..b4fbd2804a 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -83,29 +83,30 @@ (define-public zint
     (license (list license:bsd-2 license:gpl3+))))
 
 (define-public zxing-cpp
-  ;; Use the master branch as it includes unreleased build system improvements
-  ;; allowing to use system libraries (instead of attempting to fetch them
-  ;; from the Internet).
-  (let ((revision "0")
-        (commit "00783db7aa3bcf8620a301854ac71c0ceaaca0c1"))
-    (package
-      (name "zxing-cpp")
-      (version (git-version "1.2.0" revision commit))
-      (source (origin
-                (method git-fetch)
-                (uri (git-reference
-                      (url "https://github.com/nu-book/zxing-cpp")
-                      (commit commit)))
-                (file-name (git-file-name name version))
-                (sha256
-                 (base32
-                  "1yl2cpaqiv1g4nq9v0xfj1vd5faz55k4541vz6hsffvcxgn9nmc5"))))
-      (build-system cmake-build-system)
-      (native-inputs (list fmt-8 googletest))
-      (synopsis "C++ port of ZXing")
-      (description "ZXing-CPP is a barcode scanning library.")
-      (home-page "https://github.com/nu-book/zxing-cpp")
-      (license license:asl2.0))))
+  (package
+    (name "zxing-cpp")
+    (version "2.3.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/nu-book/zxing-cpp")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hdr73fllnsp3zpmrhw6cjla39lihwg1khgvddsf4v57a0lmiy3f"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "-DZXING_USE_BUNDLED_ZINT=OFF"
+                   "-DZXING_EXAMPLES=OFF" ;requires stb
+                   "-DZXING_UNIT_TESTS=ON")))
+    (native-inputs (list fmt-8 googletest pkg-config))
+    (inputs (list zint))
+    (synopsis "C++ port of ZXing")
+    (description "ZXing-CPP is a barcode scanning library.")
+    (home-page "https://github.com/nu-book/zxing-cpp")
+    (license license:asl2.0)))
 
 ;;; This older variant is kept for gst-plugins-bad (see:
 ;;; https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1684).
-- 
2.49.0





Information forwarded to sughosha <at> disroot.org, z572 <at> z572.online, guix-patches <at> gnu.org:
bug#78643; Package guix-patches. (Fri, 30 May 2025 18:02:03 GMT) Full text and rfc822 format available.

Message #14 received at 78643 <at> debbugs.gnu.org (full text, mbox):

From: Sughosha <sughosha <at> disroot.org>
To: 78643 <at> debbugs.gnu.org
Cc: Sughosha <sughosha <at> disroot.org>
Subject: [PATCH 3/3] gnu: Add spectacle-ocr-screenshot.
Date: Fri, 30 May 2025 23:31:02 +0530
* gnu/packages/kde-systemtools.scm (spectacle-ocr-screenshot): New variable.

Change-Id: I387830c8beafb391275ce721191effa2dc022f2b
---
 gnu/packages/kde-systemtools.scm | 43 ++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/kde-systemtools.scm b/gnu/packages/kde-systemtools.scm
index 4923854a7c..0cf3855cd7 100644
--- a/gnu/packages/kde-systemtools.scm
+++ b/gnu/packages/kde-systemtools.scm
@@ -23,17 +23,21 @@
 (define-module (gnu packages kde-systemtools)
   #:use-module (guix build-system qt)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
   #:use-module (guix gexp)
   #:use-module (gnu packages)
+  #:use-module (gnu packages aidc)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages image)
   #:use-module (gnu packages kde)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages kde-plasma)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages ocr)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages glib)
@@ -447,6 +451,45 @@ (define-public spectacle
     (description "Spectacle is a screenshot taking utility for the KDE.")
     (license license:gpl2+)))
 
+(define-public spectacle-ocr-screenshot
+  (package
+    (name "spectacle-ocr-screenshot")
+    (version "0.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/funinkina/spectacle-ocr-screenshot")
+             (commit version)))
+       (sha256
+        (base32 "06dyvv4h4m4j8cm3f7ivcczql26rfajkmw84qh7kik71f70qvwjw"))
+       (file-name (git-file-name name version))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:tests? #f ;no tests
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'configure
+                 (lambda _
+                   (invoke "qmake" (string-append "PREFIX=" #$output))))
+               (replace 'install
+                 (lambda _
+                   (install-file "spectacle-ocr-screenshot"
+                                 (string-append #$output "/bin")))))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list leptonica
+           tesseract-ocr
+           zxing-cpp))
+    (home-page "https://github.com/funinkina/spectacle-ocr-screenshot")
+    (synopsis "Utility to extract text from Spectacle")
+    (description "This package provides an application that integrates with KDE
+Spectacle screenshot tool with Tesseract OCR to extract text from screenshots
+as well as QR codes.")
+    (license license:expat)))
+
 (define-public yakuake
   (package
     (name "yakuake")
-- 
2.49.0





This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.