[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/17: gnu: qbittorrent{,-nox}: Use qt-build-system.
From: |
guix-commits |
Subject: |
10/17: gnu: qbittorrent{,-nox}: Use qt-build-system. |
Date: |
Tue, 11 Jul 2023 11:01:32 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 09d1e04230fd96556e9d721e3dfb21cb2e465654
Author: Timotej Lazar <timotej.lazar@araneo.si>
AuthorDate: Sat Jun 24 21:27:32 2023 +0200
gnu: qbittorrent{,-nox}: Use qt-build-system.
CMake is now upstream’s preferred build system.
* gnu/packages/bittorrent.scm (qbittorrent)[build-system]: Use
qt-build-system.
[arguments]: Drop custom wrap phase. (Re-)enable tests.
[inputs]: Remove input labels. Drop qtbase-5.
[native-inputs]: Drop pkg-config.
(qbittorrent-nox)[arguments]: Adjust configure-flags. Keep the wrap-qt phase
since the non-GUI version is also a QT program.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/bittorrent.scm | 44 ++++++++++++--------------------------------
1 file changed, 12 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index ce5e7ca3d7..4266e7af1f 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -40,6 +40,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
+ #:use-module (guix build-system qt)
#:use-module (guix build-system glib-or-gtk)
#:use-module ((guix licenses) #:prefix l:)
#:use-module (guix gexp)
@@ -461,36 +462,19 @@ desktops.")
(file-name (git-file-name name version))
(sha256
(base32 "1r4vqlwmvg7b0ibq53m7ascyykv3v66qxlwfi0zmmi1ig7rlkxkk"))))
- (build-system gnu-build-system)
+ (build-system qt-build-system)
(arguments
- `(#:configure-flags
- (list (string-append "--with-boost-libdir="
- (assoc-ref %build-inputs "boost")
- "/lib")
- "--enable-debug"
- "QMAKE_LRELEASE=lrelease")
- #:modules ((guix build gnu-build-system)
- (guix build qt-utils)
- (guix build utils))
- #:imported-modules (,@%gnu-build-system-modules
- (guix build qt-utils))
- #:phases
- (modify-phases %standard-phases
- (add-after 'install 'wrap-qt
- (lambda* (#:key outputs inputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (wrap-qt-program "qbittorrent" #:output out #:inputs inputs))
- #t)))))
+ (list #:configure-flags #~(list "-DTESTING=ON")
+ #:test-target "check"))
(native-inputs
- (list pkg-config qttools-5))
+ (list qttools-5))
(inputs
- `(("boost" ,boost)
- ("libtorrent-rasterbar" ,libtorrent-rasterbar)
- ("openssl" ,openssl)
- ("python" ,python-wrapper)
- ("qtbase" ,qtbase-5)
- ("qtsvg-5" ,qtsvg-5)
- ("zlib" ,zlib)))
+ (list boost
+ libtorrent-rasterbar
+ openssl
+ python-wrapper
+ qtsvg-5
+ zlib))
(home-page "https://www.qbittorrent.org/")
(synopsis "Graphical BitTorrent client")
(description
@@ -510,11 +494,7 @@ features.")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:configure-flags configure-flags)
- #~(append #$configure-flags
- (list "--disable-gui")))
- ((#:phases phases)
- #~(modify-phases #$phases
- (delete 'wrap-qt)))))
+ #~(cons "-DGUI=OFF" #$configure-flags))))
(inputs
(modify-inputs (package-inputs base)
(delete "qtsvg-5"))))))
- branch master updated (67e22584fa -> 7858b74b77), guix-commits, 2023/07/11
- 01/17: locate: Ignore unreadable manifests., guix-commits, 2023/07/11
- 09/17: gnu: qbittorrent: Update to 4.5.4., guix-commits, 2023/07/11
- 14/17: gnu: guile-hashing: Fix description., guix-commits, 2023/07/11
- 03/17: home: services: bash: Properly quote shell aliases., guix-commits, 2023/07/11
- 07/17: gnu: xorriso: Update to 1.5.6.pl02, guix-commits, 2023/07/11
- 06/17: gnu: hwloc: Update to 2.9.2., guix-commits, 2023/07/11
- 05/17: gnu: guile-chickadee: Change license to Apache 2.0., guix-commits, 2023/07/11
- 10/17: gnu: qbittorrent{,-nox}: Use qt-build-system.,
guix-commits <=
- 11/17: gnu: rxvt-unicode: Update to 9.31 [fixes CVE-2022-4170]., guix-commits, 2023/07/11
- 12/17: gnu: rxvt-unicode: Use new package style., guix-commits, 2023/07/11
- 15/17: gnu: desktop-file-utils: Format description., guix-commits, 2023/07/11
- 17/17: gnu: gnuplot: Update to 5.4.8., guix-commits, 2023/07/11
- 08/17: gnu: mit-scheme: Fix building, guix-commits, 2023/07/11
- 04/17: avahi: Fix exception when #:timeout is #f., guix-commits, 2023/07/11
- 13/17: gnu: rxvt-unicode: Use helper procedure to make desktop files., guix-commits, 2023/07/11
- 16/17: gnu: gmsh: Update to 4.11.1., guix-commits, 2023/07/11
- 02/17: cache: 'file-expiration-time' uses 'lstat', not 'stat'., guix-commits, 2023/07/11