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
This commit is contained in:
Sharlatan Hellseher 2025-02-17 10:39:47 +00:00 committed by Andreas Enge
parent fb0a632fc8
commit 3ba49ab322
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -12446,8 +12446,8 @@ ruby with support for changing priority using pairing heap data structure")
(method git-fetch) (method git-fetch)
;; Fetch from github so tests are included. ;; Fetch from github so tests are included.
(uri (git-reference (uri (git-reference
(url "https://github.com/rubyworks/ae") (url "https://github.com/rubyworks/ae")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
@ -12457,7 +12457,9 @@ ruby with support for changing priority using pairing heap data structure")
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (invoke "qed"))) (lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "qed"))))
(add-before 'validate-runpath 'replace-broken-symlink (add-before 'validate-runpath 'replace-broken-symlink
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))