[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
91/100: gnu: ruby-minitest-tu-shim: Fix build.
From: |
guix-commits |
Subject: |
91/100: gnu: ruby-minitest-tu-shim: Fix build. |
Date: |
Mon, 10 Jul 2023 03:27:40 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 411791ea40bec166afd5480d6b7500375c494f82
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Mon Jul 3 10:05:39 2023 +0100
gnu: ruby-minitest-tu-shim: Fix build.
* gnu/packages/ruby.scm (ruby-minitest-tu-shim)[arguments]: Update style.
[propagated-inputs]: Update style.
[native-inputs]: Use ruby-hoe-3.
---
gnu/packages/ruby.scm | 51 +++++++++++++++++++++++++--------------------------
1 file changed, 25 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 82b3ed86a9..e5b84a82f9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7491,34 +7491,33 @@ development of Ruby gems.")
"0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-test-include-path
- (lambda* (#:key inputs #:allow-other-keys)
- (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
- (substitute* "Rakefile"
- (("Hoe\\.add_include_dirs .*")
- (string-append "Hoe.add_include_dirs \""
- minitest "/lib/ruby/vendor_ruby"
- "/gems/minitest-"
- ,(package-version ruby-minitest-4)
- "/lib" "\""))))
- #t))
- (add-before 'check 'fix-test-assumptions
- (lambda _
- ;; The test output includes the file name, so a couple of tests
- ;; fail. Changing the regular expressions slightly fixes this
- ;; problem.
- (substitute* "test/test_mini_test.rb"
- (("output.sub!\\(.*, 'FILE:LINE'\\)")
- "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
- (("gsub\\(/.*, 'FILE:LINE'\\)")
- "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-test-include-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((minitest (assoc-ref inputs "ruby-minitest")))
+ (substitute* "Rakefile"
+ (("Hoe\\.add_include_dirs .*")
+ (string-append "Hoe.add_include_dirs \""
+ minitest "/lib/ruby/vendor_ruby"
+ "/gems/minitest-"
+ #$(package-version ruby-minitest-4)
+ "/lib" "\""))))))
+ (add-before 'check 'fix-test-assumptions
+ (lambda _
+ ;; The test output includes the file name, so a couple of tests
+ ;; fail. Changing the regular expressions slightly fixes this
+ ;; problem.
+ (substitute* "test/test_mini_test.rb"
+ (("output.sub!\\(.*, 'FILE:LINE'\\)")
+ "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
+ (("gsub\\(/.*, 'FILE:LINE'\\)")
+ "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")))))))
(propagated-inputs
- `(("ruby-minitest-4" ,ruby-minitest-4)))
+ (list ruby-minitest-4))
(native-inputs
- (list ruby-hoe))
+ (list ruby-hoe-3))
(synopsis "Adapter library between minitest and test/unit")
(description
"This library bridges the gap between the small and fast minitest and
- 97/100: gnu: ruby-sass-spec: Remove ruby-terminfo input., (continued)
- 97/100: gnu: ruby-sass-spec: Remove ruby-terminfo input., guix-commits, 2023/07/10
- 33/100: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/07/10
- 30/100: gnu: ruby-minitest-focus: Update to 1.3.1., guix-commits, 2023/07/10
- 51/100: gnu: ruby-marcel: Fix build., guix-commits, 2023/07/10
- 46/100: gnu: ruby-timecop: Update to 0.9.6., guix-commits, 2023/07/10
- 58/100: gnu: ruby-bibtex-ruby: Remove ruby-byebug dependency., guix-commits, 2023/07/10
- 64/100: gnu: ruby-braintree: Update to 4.12.0., guix-commits, 2023/07/10
- 65/100: gnu: ruby-multi-json: Fix build., guix-commits, 2023/07/10
- 63/100: gnu: ruby-benchmark-ips: Update to 2.12.0., guix-commits, 2023/07/10
- 60/100: gnu: facter: Update to 4.4.1., guix-commits, 2023/07/10
- 91/100: gnu: ruby-minitest-tu-shim: Fix build.,
guix-commits <=
- 82/100: gnu: ruby-stackprof: Always skip the GC test., guix-commits, 2023/07/10
- 92/100: gnu: ruby-rspec-block-is-expected: Update to 1.0.5., guix-commits, 2023/07/10
- 84/100: gnu: ruby-mapping: Fix build., guix-commits, 2023/07/10
- 62/100: gnu: ruby-awesome-print: Update to 1.9.2., guix-commits, 2023/07/10
- 73/100: gnu: ruby-net-http-persistent: Update to 4.0.2., guix-commits, 2023/07/10
- 67/100: gnu: ruby-octokit: Update to 6.1.1., guix-commits, 2023/07/10
- 76/100: gnu: ruby-slop: Update to 4.10.1., guix-commits, 2023/07/10
- 98/100: gnu: ruby-sass: Update to 3.7.4., guix-commits, 2023/07/10
- 99/100: gnu: ruby-safe-yaml: Fix build., guix-commits, 2023/07/10
- 32/100: gnu: ruby-term-ansicolor: Fix build., guix-commits, 2023/07/10