summaryrefslogtreecommitdiff
path: root/gnu/packages/ntp.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-01-22 14:01:57 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-22 14:39:28 +0200
commit3626491d04e9bcd1c7f992d43c02f5e890a35f8b (patch)
tree8ad04eead17cfa678aac3c3db7ff60853e0778d1 /gnu/packages/ntp.scm
parenta4f2fe119ea0148aedc05c1a23cc45ed425e30fe (diff)
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
Diffstat (limited to 'gnu/packages/ntp.scm')
-rw-r--r--gnu/packages/ntp.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm
index f7f76400a28..33ea790c9a9 100644
--- a/gnu/packages/ntp.scm
+++ b/gnu/packages/ntp.scm
@@ -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/")