me
/
guix
Archived
1
0
Fork 0

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.
Christopher Baines 2023-07-03 10:05:39 +01:00
parent f8827a4416
commit 411791ea40
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 25 additions and 26 deletions

View File

@ -7491,19 +7491,19 @@ development of Ruby gems.")
"0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn")))) "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-test-include-path (add-after 'unpack 'fix-test-include-path
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let* ((minitest (assoc-ref inputs "ruby-minitest-4"))) (let* ((minitest (assoc-ref inputs "ruby-minitest")))
(substitute* "Rakefile" (substitute* "Rakefile"
(("Hoe\\.add_include_dirs .*") (("Hoe\\.add_include_dirs .*")
(string-append "Hoe.add_include_dirs \"" (string-append "Hoe.add_include_dirs \""
minitest "/lib/ruby/vendor_ruby" minitest "/lib/ruby/vendor_ruby"
"/gems/minitest-" "/gems/minitest-"
,(package-version ruby-minitest-4) #$(package-version ruby-minitest-4)
"/lib" "\"")))) "/lib" "\""))))))
#t))
(add-before 'check 'fix-test-assumptions (add-before 'check 'fix-test-assumptions
(lambda _ (lambda _
;; The test output includes the file name, so a couple of tests ;; The test output includes the file name, so a couple of tests
@ -7513,12 +7513,11 @@ development of Ruby gems.")
(("output.sub!\\(.*, 'FILE:LINE'\\)") (("output.sub!\\(.*, 'FILE:LINE'\\)")
"output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')") "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
(("gsub\\(/.*, 'FILE:LINE'\\)") (("gsub\\(/.*, 'FILE:LINE'\\)")
"gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")) "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")))))))
#t)))))
(propagated-inputs (propagated-inputs
`(("ruby-minitest-4" ,ruby-minitest-4))) (list ruby-minitest-4))
(native-inputs (native-inputs
(list ruby-hoe)) (list ruby-hoe-3))
(synopsis "Adapter library between minitest and test/unit") (synopsis "Adapter library between minitest and test/unit")
(description (description
"This library bridges the gap between the small and fast minitest and "This library bridges the gap between the small and fast minitest and