gnu: wsjtx: Only build html documentation on supported systems.

* gnu/packages/radio.scm (wsjtx)[arguments]: Add configure-flag to skip
html documentation on systems where ruby-asciidoctor isn't supported.
[native-inputs]: Don't build with ruby-asciidoctor on systems where it
isn't supported.

Change-Id: I73436f887933e6b37033c8ba3ff32ba125a797f8
This commit is contained in:
Efraim Flashner 2023-11-08 22:06:25 +02:00
parent e7d61dfe57
commit b0bfddd7f9
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 13 additions and 6 deletions

View File

@ -13,6 +13,7 @@
;;; Copyright © 2022 Greg Hogan <code@greghogan.com> ;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
;;; Copyright © 2022 Ryan Tolboom <ryan@using.tech> ;;; Copyright © 2022 Ryan Tolboom <ryan@using.tech>
;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com> ;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -1662,13 +1663,19 @@ instances over the network, and general QSO and DXpedition logging.")
(base32 "1lqd77v9xm58k9g9kfwxva3mmzm1yyk1v27nws5j1a293zfg2hkw")))) (base32 "1lqd77v9xm58k9g9kfwxva3mmzm1yyk1v27nws5j1a293zfg2hkw"))))
(build-system qt-build-system) (build-system qt-build-system)
(arguments (arguments
(list #:tests? #f)) ; No test suite (list #:tests? #f ; No test suite
#:configure-flags
(if (this-package-native-input "ruby-asciidoctor")
#~'()
#~(list "-DWSJT_GENERATE_DOCS=OFF"))))
(native-inputs (native-inputs
(list asciidoc (append (list asciidoc
gfortran gfortran
pkg-config pkg-config
qttools-5 qttools-5)
ruby-asciidoctor)) (if (supported-package? ruby-asciidoctor)
(list ruby-asciidoctor)
'())))
(inputs (inputs
(list boost (list boost
fftw fftw