sharlatan pushed a commit to branch ruby-team
in repository guix.
commit c2077f49eabafa177925f3afe85558ef1f947e33
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Feb 17 10:39:47 2025 +0000
gnu: ruby-ae: Respect #:tests? argument.
* gnu/packages/ruby.scm (ruby-ae) [phases] {check}: Skip the 'check
phase when #:tests? is false.
Change-Id: I1f270fbfe4feb9aac5b6f9bd3fae14a8fdd2bfec
---
gnu/packages/ruby.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6db488ea6c..fe73c38a3a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12437,8 +12437,8 @@ ruby with support for changing priority using pairing
heap data structure")
(method git-fetch)
;; Fetch from github so tests are included.
(uri (git-reference
- (url "https://github.com/rubyworks/ae")
- (commit version)))
+ (url "https://github.com/rubyworks/ae")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
(base32
@@ -12448,7 +12448,9 @@ ruby with support for changing priority using pairing
heap data structure")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _ (invoke "qed")))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "qed"))))
(add-before 'validate-runpath 'replace-broken-symlink
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))