GNU bug report logs -
#61799
[PATCH] gnu: Add ruby-minima.
Previous Next
Reported by: gemmaro <gemmaro.dev <at> gmail.com>
Date: Sun, 26 Feb 2023 05:04:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 61799-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
gemmaro <gemmaro.dev <at> gmail.com> skribis:
> I added a test by `jekyll build`.
>
> * gnu/packages/ruby.scm (ruby-minima): New variable.
Applied with the changes below. Thanks!
Ludo’.
[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index bdd2686016..f28ad97e11 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5270,15 +5270,16 @@ (define-public ruby-minima
(base32
"1gk7jmriiswda1ykjzpsw9cpiya4m9n0yrh0h6xnrc8zcfy543jj"))))
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "jekyll" "build")
- ;; Without the following, an attempt to remove
- ;; minima-<version>.gem is made during installation,
- ;; which will fail.
- (delete-file ,(string-append "_site/minima-" version
- ".gem")))))))
+ (list #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "jekyll" "build"))
+ ;; Without the following, an attempt to remove
+ ;; minima-<version>.gem is made during installation,
+ ;; which will fail.
+ (delete-file #$(string-append "_site/minima-"
+ version ".gem")))))))
(build-system ruby-build-system)
(propagated-inputs (list jekyll ruby-jekyll-feed ruby-jekyll-seo-tag))
(synopsis "Beautiful, minimal theme for Jekyll")
This bug report was last modified 2 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.