From 0375f5491a59f0edddba8e47b8d8c66a96218821 Mon Sep 17 00:00:00 2001 From: Sughosha Date: Tue, 22 Jul 2025 02:01:44 +0530 Subject: [PATCH] gnu: libqmatrixclient: Update to 0.9.3. * gnu/packages/messaging.scm (libqmatrixclient): Update to 0.9.3. [build-system]: Switch to qt-build-system. [inputs]: Remove qtbase-5; replace qtmultimedia-5 with qtmultimedia; add olm, openssl and qtkeychain-qt6. [arguments]<#:qtbase>: Use qtbase. <#:cmake>: Use cmake-next. <#:tests?>: Enable tests. <#:configure-flags>: Add "-DBUILD_TESTING=ON". <#:phases>: Add 'check-setup phase; replace 'check phase. [home-page]: Update URL. [synopsis]: Update it. [description]: Update it. Change-Id: I11179524df0374951bbb8d6f5226e8009338f818 Signed-off-by: Zheng Junjie --- gnu/packages/messaging.scm | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 4e120c3fad5..57be4b14872 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -74,6 +74,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) + #:use-module (gnu packages cmake) #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages certs) @@ -2390,7 +2391,7 @@ notifications, and Python scripting support.") (define-public libqmatrixclient (package (name "libqmatrixclient") - (version "0.6.11") + (version "0.9.3") (source (origin (method git-fetch) @@ -2399,16 +2400,29 @@ notifications, and Python scripting support.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "072d3irpdd0p4w77s5pp0baqf74hk7vqggw7ic7i42lzjdwp3yql")))) - (build-system cmake-build-system) + (base32 "0liidazw1ff1f73lb476pvrhzkmmk9dbgf5qsfajkxdj4xvy047k")))) + (build-system qt-build-system) (inputs - (list qtbase-5 qtmultimedia-5)) + (list olm openssl qtkeychain-qt6 qtmultimedia)) (arguments - `(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON") - #:tests? #f)) ; no tests - (home-page "https://matrix.org/docs/projects/sdk/libqmatrixclient.html") - (synopsis "Qt5 client library for the Matrix instant messaging protocol") - (description "libqmatrixclient is a Qt5 library to write clients for the + (list #:qtbase qtbase + #:cmake cmake-next + #:configure-flags + #~(list "-DBUILD_TESTING=ON" + "-DBUILD_SHARED_LIBS=ON") + #:phases + #~[modify-phases %standard-phases + (add-before 'check 'check-setup + (lambda _ + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; This test requires internet. + (invoke "ctest" "-E" "testolmaccount"))))])) + (home-page "https://quotient-im.github.io/libQuotient/") + (synopsis "Qt client library for the Matrix instant messaging protocol") + (description "libqmatrixclient is a Qt library to write clients for the Matrix instant messaging protocol. Quaternion is the reference client implementation. Quaternion and libqmatrixclient together form the QMatrixClient project.")