mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: btrbk: Enable building on more systems.
* gnu/packages/backup.scm (btrbk)[arguments]: Add some phases to enable building without ruby-asciidoctor. [native-inputs]: Only add ruby-asciidoctor on supported systems. Change-Id: I86b5b1b307d3a226cae0231d85519ebb96a29f8c
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
|
||||
;;; Copyright © 2017, 2021 Arun Isaac <arunisaac@systemreboot.net>
|
||||
;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
|
||||
;;; Copyright © 2017, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2017, 2020, 2021, 2025 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
|
||||
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
|
||||
;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
|
||||
@@ -1189,6 +1189,14 @@ interactive mode.")
|
||||
(("= /etc")
|
||||
(string-append "= $(PREFIX)/etc")))))
|
||||
(delete 'check)
|
||||
#$@(if (this-package-native-input "ruby-asciidoctor")
|
||||
#~()
|
||||
;; The 'build phase only builds the manpages.
|
||||
#~((delete 'build)
|
||||
(add-before 'install 'adjust-install-targets
|
||||
(lambda _
|
||||
(substitute* "Makefile"
|
||||
(("install-man ") ""))))))
|
||||
(add-after 'install 'wrap-scripts
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(define btrbk (search-input-file outputs "bin/btrbk"))
|
||||
@@ -1212,7 +1220,10 @@ interactive mode.")
|
||||
"bin/find"
|
||||
"bin/mbuffer"
|
||||
"bin/ssh")))))))))
|
||||
(native-inputs (list ruby-asciidoctor))
|
||||
(native-inputs
|
||||
(if (supported-package? ruby-asciidoctor)
|
||||
(list ruby-asciidoctor)
|
||||
'()))
|
||||
(inputs (list bash-minimal
|
||||
btrfs-progs
|
||||
coreutils
|
||||
|
||||
Reference in New Issue
Block a user