summaryrefslogtreecommitdiff
path: root/gnu/packages/qt.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/qt.scm')
-rw-r--r--gnu/packages/qt.scm73
1 files changed, 66 insertions, 7 deletions
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4e46a754fd..67582c4a54 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -327,7 +327,8 @@ window managers, that don't provide Qt integration by themselves.")
(base32
"0d0pxynlyfgavf6l1b1z7zpmbrzm96hkphnqnalr7mshm147450g"))))
(build-system cmake-build-system)
- (arguments (list #:configure-flags #~(list
+ (arguments (list #:tests? #f
+ #:configure-flags #~(list
"-DKDDockWidgets_QT6=ON"
"-DKDDockWidgets_TESTS=ON")))
(inputs
@@ -1100,7 +1101,12 @@ tst_qt_cmake_create.cpp"
"test_qt_add_ui_8"
"test_qt_add_ui_9"
;; This test is susceptible to the 600 ms timeout used:
- "tst_qpauseanimation")
+ "tst_qpauseanimation"
+
+ ;; This test may fail non-deterministically as reported
+ ;; in Guix bug#73233 and upstream at
+ ;; https://bugreports.qt.io/browse/QTBUG-119321.
+ "tst_qsharedmemory")
#$@(cond
((target-ppc64le?)
#~((list
@@ -2406,6 +2412,36 @@ WebGL. WebGL is a JavaScript API for rendering 2D and 3D graphics within any
compatible web browser without the use of plug-ins. The API is similar to
OpenGL ES 2.0 and can be used in HTML5 canvas elements")))
+(define-public qtwebview
+ (package
+ (name "qtwebview")
+ (version "6.8.2")
+ (source (origin
+ (method url-fetch)
+ (uri (qt-url name version))
+ (sha256
+ (base32
+ "0hyhpr3ai77pwdc69q73r1wkibdn2vn6v1pqkc8minck24kkdd46"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:configure-flags #~(list "-DQT_BUILD_TESTS=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-display
+ (lambda _
+ ;; Make Qt render "offscreen", required for tests.
+ (setenv "QT_QPA_PLATFORM" "offscreen")
+ ;; Set writable HOME for teststing cache directory.
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs (list perl))
+ (inputs (list qtbase qtdeclarative qtwebengine))
+ (synopsis "Display web content in a QML application")
+ (description "Qt WebView provides a way to display web content in a QML
+application without necessarily including a full web browser stack by using
+native APIs where it makes sense.")
+ (home-page (package-home-page qtbase))
+ (license (package-license qtbase))))
+
(define-public qtwebview-5
(package
(inherit qtsvg-5)
@@ -2593,6 +2629,7 @@ that helps in Qt development.")))
(build-system cmake-build-system)
(arguments
(list
+ #:tests? #f
;; The build system attempts to fetch online resources and fails when
;; building the test suite.
#:configure-flags #~(list "-DQT_BUILD_TESTS=OFF")
@@ -2794,6 +2831,9 @@ also contains functionality to support data models and executable content.")))
(delete-file-recursively "tests/3rdparty")))))
(arguments
(list
+ ;; This failing test is run by the cmake-build-system phases but not
+ ;; by the gnu-build-system phases.
+ #:test-exclude "tst_scion"
#:phases
#~(modify-phases %standard-phases
(delete 'check) ;move after the install phase
@@ -4100,6 +4140,9 @@ instances.")
(arguments
(list
#:qtbase qtbase
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-installation-prefix
@@ -4114,6 +4157,7 @@ instances.")
(replace 'configure
(lambda _
(invoke "qmake")))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
@@ -5048,6 +5092,7 @@ different kinds of sliders, and much more.")
(base32
"13n2qb8q9jz4ihwlbs7y15lw90w9113gb1bgnb1dggpxkj64r953"))))
(build-system cmake-build-system)
+ (arguments (list #:tests? #f))
(native-inputs
(list qttools-5))
(inputs
@@ -5088,6 +5133,7 @@ a binding language:
(build-system qt-build-system)
(arguments
(list #:qtbase qtbase
+ #:cmake cmake-3.25
#:tests? #f ;no tests
#:configure-flags
#~(list "-DBUILD_EXAMPLE=ON"
@@ -5164,8 +5210,7 @@ window docking system.")
"0nsh6v5k4kdrrhcd6adz947n0dka4rrbx8f8rvm1175545nbi67s"))))
(build-system qt-build-system)
(arguments
- (list #:test-target "tests"
- #:phases
+ (list #:phases
#~(modify-phases %standard-phases
(add-before 'install 'fix-include-path
(lambda _
@@ -5209,6 +5254,9 @@ programming paradigm.")
(arguments
(list #:qtbase qtbase
#:tests? #f ;no tests
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
;; This project does not have any build rule but its demo has
@@ -5225,6 +5273,7 @@ programming paradigm.")
(replace 'configure
(lambda _
(invoke "qmake")))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
;; No install rule exists.
(replace 'install
(lambda _
@@ -5775,7 +5824,7 @@ configurable also via HTTP.")
(build-system cmake-build-system)
(arguments '(#:tests? #f)) ; There are no tests
(native-inputs
- (list pkg-config cmake))
+ (list pkg-config cmake-minimal))
(inputs
(list qtbase-5 coin3d))
(home-page "https://github.com/coin3d/soqt")
@@ -6087,6 +6136,9 @@ a secure way.")))
(inputs (list dbus glib libaccounts-glib))
(arguments
(list #:tests? #f ; Figure out how to run tests
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'configure
@@ -6109,7 +6161,9 @@ a secure way.")))
(string-append "PREFIX=" #$output)
(string-append "LIBDIR=" #$output "/lib")
(string-append "QMAKE_LFLAGS_RPATH=-Wl,-rpath,"
- #$output "/lib -Wl,-rpath,")))))))
+ #$output "/lib -Wl,-rpath,"))))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
+ (replace 'install (assoc-ref gnu:%standard-phases 'install)))))
(home-page "https://accounts-sso.gitlab.io/signond/index.html")
(synopsis "Perform user authentication over D-Bus")
(description "This package provides a D-Bus service which performs user
@@ -6159,6 +6213,9 @@ authentication on behalf of its clients.")
(inputs (list signond))
(arguments
(list #:tests? #f ;no tests
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'configure
@@ -6170,7 +6227,9 @@ authentication on behalf of its clients.")
(string-append "PREFIX=" #$output)
(string-append "LIBDIR=" #$output "/lib")
(string-append "SIGNON_PLUGINS_DIR=" #$output
- "/lib/signon")))))))
+ "/lib/signon"))))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
+ (replace 'install (assoc-ref gnu:%standard-phases 'install)))))
(synopsis "OAuth 2 plugin for signon")
(description
"This plugin for the Accounts-SSO SignOn daemon handles the OAuth