[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/100: gnu: ronn-ng: Fix build.
From: |
guix-commits |
Subject: |
61/100: gnu: ronn-ng: Fix build. |
Date: |
Mon, 10 Jul 2023 03:27:35 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 6d82239a5fe834ebf73965705b8eaff4d9adb7f7
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Jun 29 10:31:27 2023 +0100
gnu: ronn-ng: Fix build.
* gnu/packages/groff.scm (ronn-ng)[arguments]: Add 'patch-test phase and
update style.
---
gnu/packages/groff.scm | 49 ++++++++++++++++++++++++++++---------------------
1 file changed, 28 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/groff.scm b/gnu/packages/groff.scm
index 33a059053c..94c0f23d7a 100644
--- a/gnu/packages/groff.scm
+++ b/gnu/packages/groff.scm
@@ -32,6 +32,7 @@
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system ruby)
+ #:use-module (guix gexp)
#:use-module (gnu packages)
#:use-module (gnu packages ruby)
#:use-module (gnu packages bison)
@@ -229,27 +230,33 @@ It is typically used to display man pages on a web site.")
"1slxfg57cabmh98fw507z4ka6lwq1pvbrqwppflxw6700pi8ykfh"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'extract-gemspec 'fix-gemspec-mustache
- (lambda _
- (substitute* "ronn-ng.gemspec"
- (("(<mustache>.freeze.*~>).*(\".*$)" all start end)
- (string-append start " 1.0" end)))
- #t))
- (add-after 'wrap 'wrap-program
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((prog (string-append (assoc-ref %outputs "out")
"/bin/ronn")))
- (wrap-program prog
- `("PATH" ":" suffix ,(map
- (lambda (exp_inpt)
- (string-append
- (assoc-ref %build-inputs exp_inpt)
- "/bin"))
- '("ruby-kramdown"
- "ruby-mustache"
- "ruby-nokogiri")))))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-test
+ (lambda _
+ ;; TODO This should be removed once the upstream fix is released
+ ;;
https://github.com/apjanke/ronn-ng/commit/e194bf62b1d0c0828cc83405e60dc5ece829e62f
+ (substitute* "test/test_ronn_document.rb"
+ (("YAML\\.load\\(@doc\\.to_yaml\\)")
+ "YAML.load(@doc.to_yaml, permitted_classes: [Time])"))))
+ (add-after 'extract-gemspec 'fix-gemspec-mustache
+ (lambda _
+ (substitute* "ronn-ng.gemspec"
+ (("(<mustache>.freeze.*~>).*(\".*$)" all start end)
+ (string-append start " 1.0" end)))))
+ (add-after 'wrap 'wrap-program
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((prog (string-append (assoc-ref %outputs "out")
"/bin/ronn")))
+ (wrap-program prog
+ `("PATH" ":" suffix ,(map
+ (lambda (exp_inpt)
+ (string-append
+ (assoc-ref %build-inputs exp_inpt)
+ "/bin"))
+ '("ruby-kramdown"
+ "ruby-mustache"
+ "ruby-nokogiri"))))))))))
(inputs
(list ruby-kramdown ruby-mustache ruby-nokogiri))
(synopsis
- 48/100: gnu: ruby-rdoc: Update to 6.5.0., (continued)
- 48/100: gnu: ruby-rdoc: Update to 6.5.0., guix-commits, 2023/07/10
- 07/100: gnu: ruby-ritex: Build with ruby-2.7., guix-commits, 2023/07/10
- 02/100: gnu: ruby-bindex: Update to 0.8.1 and rename to ruby-skiptrace., guix-commits, 2023/07/10
- 18/100: gnu: ruby-mocha: Update to 2.0.4., guix-commits, 2023/07/10
- 26/100: gnu: ruby-json-pure: Update to 2.6.3., guix-commits, 2023/07/10
- 27/100: gnu: ruby-markaby: Fix tests., guix-commits, 2023/07/10
- 36/100: gnu: Add ruby-http-accept., guix-commits, 2023/07/10
- 24/100: gnu: ruby-rack: Update to 2.2.7., guix-commits, 2023/07/10
- 41/100: gnu: ruby-oedipus-lex: Update to 2.6.1., guix-commits, 2023/07/10
- 43/100: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/07/10
- 61/100: gnu: ronn-ng: Fix build.,
guix-commits <=
- 72/100: gnu: ruby-connection-pool: Update to 2.4.1., guix-commits, 2023/07/10
- 54/100: gnu: ruby-importmap-rails: Remove ruby-byebug dependency., guix-commits, 2023/07/10
- 86/100: gnu: ruby-heredoc-unindent: Fix build., guix-commits, 2023/07/10
- 75/100: gnu: ruby-sexp-processor: Update to 4.17.0., guix-commits, 2023/07/10
- 03/100: gnu: ruby-dep: Build with ruby-2.7., guix-commits, 2023/07/10
- 12/100: gnu: Add ruby-set., guix-commits, 2023/07/10
- 15/100: gnu: ruby-introspection: Adjust inputs., guix-commits, 2023/07/10
- 34/100: gnu: ruby-mime-types: Update to 3.4.1., guix-commits, 2023/07/10
- 19/100: gnu: ruby-test-construct: Update to 2.0.2., guix-commits, 2023/07/10
- 35/100: gnu: ruby-http-cookie: Update to 1.0.5., guix-commits, 2023/07/10