~ruther/guix-local

1445f22f4fe6214cfd2dd587613680150465c2aa — Maxim Cournoyer 3 months ago 29fbc0c
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
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 27 insertions(+), 14 deletions(-)

M gnu/packages/aidc.scm
M gnu/packages/aidc.scm => gnu/packages/aidc.scm +27 -14
@@ 9,6 9,7 @@
;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2024, 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2025 Maxim Cournoyer <maxim@guixotic.coop>
;;;
;;; 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")