mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: chrony: Enable building on more systems.
* gnu/packages/ntp.scm (chrony)[arguments]: Add a phase to enable building without ruby-asciidoctor. [native-inputs]: Only add ruby-asciidoctor on supported systems. Change-Id: I812cea438cb8c2b1f74d7674baa70b9159151c8f
This commit is contained in:
parent
a4f2fe119e
commit
3626491d04
1 changed files with 14 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
||||
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
||||
;;; Copyright © 2015, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016, 2017, 2018, 2022 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2016, 2017, 2018, 2022, 2025 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
|
||||
|
@ -78,6 +78,14 @@
|
|||
(add-after 'unpack 'set-CC
|
||||
(lambda _
|
||||
(setenv "CC" #$(cc-for-target))))
|
||||
#$@(if (this-package-native-input "ruby-asciidoctor")
|
||||
#~()
|
||||
#~((add-after 'unpack 'adjust-makefile
|
||||
(lambda _
|
||||
(substitute* "doc/Makefile.in"
|
||||
(("install:")
|
||||
(string-append "install:\n\n"
|
||||
"not-install:")))))))
|
||||
(add-after 'unpack 'stay-inside-out
|
||||
;; Simply setting CHRONYVARDIR to something nonsensical at install
|
||||
;; time would result in nonsense file names in man pages.
|
||||
|
@ -93,7 +101,11 @@
|
|||
(copy-recursively "examples"
|
||||
(string-append doc "/examples"))))))))
|
||||
(native-inputs
|
||||
(list bison ruby-asciidoctor pkg-config))
|
||||
(append (list bison
|
||||
pkg-config)
|
||||
(if (supported-package? ruby-asciidoctor)
|
||||
(list ruby-asciidoctor)
|
||||
'())))
|
||||
(inputs
|
||||
(list gnutls libcap libseccomp nettle))
|
||||
(home-page "https://chrony-project.org/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue