mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: newsboat: Only build documentation on supported systems.
* gnu/packages/syndication.scm (newsboat)[inputs]: Only use asciidoctor on supported platforms. [arguments]: When asciidoctor isn't present add a phase to skip building the documentation.
This commit is contained in:
parent
072fd1124a
commit
56255c3e81
1 changed files with 13 additions and 1 deletions
|
@ -238,7 +238,10 @@ (define-public newsboat
|
|||
("openssl" ,openssl)
|
||||
("pkg-config" ,pkg-config)
|
||||
;; For building documentation.
|
||||
("asciidoctor" ,ruby-asciidoctor)))
|
||||
,@(if (member (%current-system)
|
||||
(package-transitive-supported-systems ruby-asciidoctor))
|
||||
`(("asciidoctor" ,ruby-asciidoctor))
|
||||
`())))
|
||||
(inputs
|
||||
(list curl
|
||||
json-c
|
||||
|
@ -277,6 +280,15 @@ (define-public newsboat
|
|||
("rust-section-testing" ,rust-section-testing-0.0))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
,@(if (not (assoc-ref inputs "asciidoctor"))
|
||||
`((add-after 'unpack 'dont-use-asciidoctor
|
||||
(lambda _
|
||||
(substitute* "config.sh"
|
||||
((".*asciidoctor.*") ""))
|
||||
(substitute* "Makefile"
|
||||
(("^doc:.*") "doc:\n")
|
||||
(("install-podboat install-docs") "install-podboat")))))
|
||||
'())
|
||||
(add-after 'configure 'dont-vendor-self
|
||||
(lambda* (#:key vendor-dir #:allow-other-keys)
|
||||
;; Don't keep the whole tarball in the vendor directory
|
||||
|
|
Loading…
Reference in a new issue