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.
This commit is contained in:
Efraim Flashner 2022-11-06 12:24:00 +02:00
parent 56255c3e81
commit 2bf8146e31
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -157,8 +157,13 @@ (define-public keepassxc
#: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 @@ (define-public keepassxc
(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