[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
91/94: gnu: ruby-minitest-tu-shim: Fix build.
From: |
guix-commits |
Subject: |
91/94: gnu: ruby-minitest-tu-shim: Fix build. |
Date: |
Mon, 3 Jul 2023 06:06:39 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 6244868ba846d7b77e42255276ac258d791330c1
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
- 43/94: gnu: ruby-rest-client: Update to 2.1.0., (continued)
- 43/94: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/07/03
- 48/94: gnu: ruby-rdoc: Update to 6.5.0., guix-commits, 2023/07/03
- 36/94: gnu: Add ruby-http-accept., guix-commits, 2023/07/03
- 49/94: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/07/03
- 53/94: gnu: zsh-autosuggestions: Remove ruby-byebug dependency., guix-commits, 2023/07/03
- 57/94: gnu: ruby-wapiti: Update to 2.1.0., guix-commits, 2023/07/03
- 70/94: gnu: ruby-spy: Remove ruby-pry-byebug input., guix-commits, 2023/07/03
- 77/94: gnu: ruby-text-hyphen: Update to 1.5.0., guix-commits, 2023/07/03
- 82/94: gnu: ruby-stackprof: Always skip the GC test., guix-commits, 2023/07/03
- 83/94: gnu: ruby-minitest-4: Fix build., guix-commits, 2023/07/03
- 91/94: gnu: ruby-minitest-tu-shim: Fix build.,
guix-commits <=
- 93/94: gnu: ruby-version-gem: Update to 1.1.3., guix-commits, 2023/07/03
- 23/94: gnu: ruby-sqlite3: Update to 1.6.3., guix-commits, 2023/07/03
- 21/94: gnu: ruby-stackprof: Update to 0.2.25., guix-commits, 2023/07/03
- 51/94: gnu: ruby-marcel: Fix build., guix-commits, 2023/07/03
- 37/94: gnu: Add ruby-http-accept-1., guix-commits, 2023/07/03
- 44/94: gnu: ruby-cucumber: Fix build., guix-commits, 2023/07/03
- 39/94: gnu: ruby-hoe: Fix build., guix-commits, 2023/07/03
- 45/94: gnu: ruby-puma: Update to 6.3.0., guix-commits, 2023/07/03
- 52/94: gnu: ruby-railties: Fix build., guix-commits, 2023/07/03
- 11/94: gnu: Add ruby-rbtree., guix-commits, 2023/07/03