[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: keepassxc: Only build documentation on supported systems.
From: |
guix-commits |
Subject: |
02/02: gnu: keepassxc: Only build documentation on supported systems. |
Date: |
Sun, 6 Nov 2022 06:56:01 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 2bf8146e311694ff8cdce9f0b1e638374682012a
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Nov 6 12:24:00 2022 +0200
gnu: keepassxc: Only build documentation on supported systems.
* gnu/packages/password-utils.scm (keepassxc)[native-inputs]: Only add
ruby-asciidoctor on supported platforms.
[arguments]: Adjust configure-flags to skip documentation when
ruby-asciidoctor isn't supported.
---
gnu/packages/password-utils.scm | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 24cceba055..c74ffe5242 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -157,8 +157,13 @@ human.")
#:imported-modules `(,@%cmake-build-system-modules
(guix build qt-utils))
#:configure-flags
- #~(list "-DWITH_XC_ALL=YES"
- "-DWITH_XC_UPDATECHECK=NO")
+ #~(append
+ (list "-DWITH_XC_ALL=YES"
+ "-DWITH_XC_UPDATECHECK=NO")
+ #$(if (member (%current-system)
+ (package-transitive-supported-systems
ruby-asciidoctor))
+ #~'()
+ #~(list "-DWITH_XC_DOCS=NO")))
#:phases
#~(modify-phases %standard-phases
(replace 'check
@@ -172,7 +177,12 @@ human.")
(lambda* (#:key inputs #:allow-other-keys)
(wrap-qt-program "keepassxc" #:output #$output #:inputs
inputs))))))
(native-inputs
- (list qttools-5 ruby-asciidoctor))
+ (append
+ (list qttools-5)
+ (if (member (%current-system)
+ (package-transitive-supported-systems ruby-asciidoctor))
+ (list ruby-asciidoctor)
+ '())))
(inputs
(list argon2
botan