guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit ca17ec1b50ef5210db9a29e4ebff8506a590b7b4
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Mon Dec 22 14:03:52 2025 +0900

    gnu: zint: Split Qt GUI into distinct zint-with-qt package.
    
    * gnu/packages/aidc.scm (zint) [build-system]: Switch to cmake-build-system.
    [#:qtbase]: Delete argument.
    [#:configure-flags]: Remove "-DZINT_QT6=ON".
    [native-inputs]: Remove qttools.
    [inputs]: Remove qtsvg.
    * gnu/packages/aidc.scm (zint-with-qt): New variable.
    
    Fixes: #4953
    Change-Id: Ib71783ffce585b01f4d72e618fba0bf22167c5a0
---
 gnu/packages/aidc.scm | 41 +++++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index 9cc8b84693..3d1642827b 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2023 Ricardo Wurmus <[email protected]>
 ;;; Copyright © 2024 Nicolas Graves <[email protected]>
 ;;; Copyright © 2024, 2025 Janneke Nieuwenhuizen <[email protected]>
+;;; Copyright © 2025 Maxim Cournoyer <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -135,25 +136,20 @@ read all zbar supported codes.")
     (source (origin
               (method git-fetch)
               (uri (git-reference
-                    (url "https://github.com/zint/zint";)
-                    (commit version)))
+                     (url "https://github.com/zint/zint";)
+                     (commit version)))
               (file-name (git-file-name name version))
               (sha256
                (base32
                 "1zpv9ar1kfjl3bb27jc8hd8601zcda9yv4dz1jhxfhdsg6v4cdg7"))))
-    (build-system qt-build-system)
+    (build-system cmake-build-system)
     (arguments
-     (list #:qtbase qtbase
-           #:parallel-tests? #f
-           #:configure-flags
-           #~(list "-DZINT_QT6=ON"
-                   "-DZINT_TEST=ON"
-                   "-DZINT_UNINSTALL=OFF")))
-    (native-inputs
-     (list pkg-config qttools))
-    (inputs
-     (list libpng
-           qtsvg))
+     (list #:disallowed-references (list qtbase)
+           #:parallel-tests? #f         ;test suite fails otherwise
+           #:configure-flags #~(list "-DZINT_TEST=ON"
+                                     "-DZINT_UNINSTALL=OFF")))
+    (native-inputs (list pkg-config))
+    (inputs (list libpng))
     (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
@@ -161,6 +157,23 @@ integration of this capability into your own programs.")
     (home-page "https://www.zint.org.uk/";)
     (license (list license:bsd-3 license:gpl3+))))
 
+(define-public zint-with-qt
+  (package/inherit zint
+    (name "zint-with-qt")
+    (build-system qt-build-system)
+    (arguments (substitute-keyword-arguments (package-arguments zint)
+                 ((#:disallowed-references references)
+                  (delete qtbase references))
+                 ((#:qtbase _ #f)
+                  qtbase)
+                 ((#:configure-flags flags ''())
+                  #~(cons "-DZINT_QT6=ON" #$flags))))
+    (inputs (modify-inputs (package-inputs zint)
+              ;; The UI library of qttools is linked to; hence it must be used
+              ;; as an input rather than a native input.
+              (append qtsvg qttools)))
+    (synopsis "Barcode encoding library (with graphical user interface)")))
+
 (define-public zxing-cpp
   (package
     (name "zxing-cpp")

Reply via email to