[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/19: gnu: ronn-ng: Fix build.
From: |
guix-commits |
Subject: |
02/19: gnu: ronn-ng: Fix build. |
Date: |
Thu, 29 Jun 2023 07:06:01 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 5672cd4e06e74d9d2d99eb4080dd93cc3c23b2e2
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
- branch ruby-team updated (8fa6833d4f -> 0a9117a7f9), guix-commits, 2023/06/29
- 03/19: gnu: ruby-awesome-print: Update to 1.9.2., guix-commits, 2023/06/29
- 01/19: gnu: facter: Update to 4.4.1., guix-commits, 2023/06/29
- 09/19: gnu: ruby-sorbet-runtime: Remove ruby-pry-byebug input., guix-commits, 2023/06/29
- 11/19: gnu: ruby-spy: Remove ruby-pry-byebug input., guix-commits, 2023/06/29
- 13/19: gnu: ruby-connection-pool: Update to 2.4.1., guix-commits, 2023/06/29
- 15/19: gnu: ruby-net-scp: Fix build., guix-commits, 2023/06/29
- 17/19: gnu: ruby-slop: Update to 4.10.1., guix-commits, 2023/06/29
- 05/19: gnu: ruby-braintree: Update to 4.12.0., guix-commits, 2023/06/29
- 02/19: gnu: ronn-ng: Fix build.,
guix-commits <=
- 04/19: gnu: ruby-benchmark-ips: Update to 2.12.0., guix-commits, 2023/06/29
- 06/19: gnu: ruby-multi-json: Fix build., guix-commits, 2023/06/29
- 07/19: gnu: ruby-jwt: Update to 2.7.1., guix-commits, 2023/06/29
- 12/19: gnu: ruby-net-http-digest-auth: Fix build., guix-commits, 2023/06/29
- 08/19: gnu: ruby-octokit: Update to 6.1.1., guix-commits, 2023/06/29
- 10/19: gnu: ruby-language-server-protocol: Remove ruby-pry-byebug dependency., guix-commits, 2023/06/29
- 19/19: gnu: swagger-diff: Update to 2.0.0., guix-commits, 2023/06/29
- 16/19: gnu: ruby-sexp-processor: Update to 4.17.0., guix-commits, 2023/06/29
- 14/19: gnu: ruby-net-http-persistent: Update to 4.0.2., guix-commits, 2023/06/29
- 18/19: gnu: ruby-text-hyphen: Update to 1.5.0., guix-commits, 2023/06/29