GNU bug report logs - #61799
[PATCH] gnu: Add ruby-minima.

Previous Next

Package: guix-patches;

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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: gemmaro <gemmaro.dev <at> gmail.com>
Subject: bug#61799: closed (Re: bug#61799: [PATCH] gnu: Add ruby-minima.)
Date: Thu, 08 Jun 2023 21:34:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#61799: [PATCH] gnu: Add ruby-minima.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 61799 <at> debbugs.gnu.org.

-- 
61799: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61799
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: gemmaro <gemmaro.dev <at> gmail.com>
Cc: 61799-done <at> debbugs.gnu.org
Subject: Re: bug#61799: [PATCH] gnu: Add ruby-minima.
Date: Thu, 08 Jun 2023 23:33:29 +0200
[Message part 3 (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 4 (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")
[Message part 5 (message/rfc822, inline)]
From: gemmaro <gemmaro.dev <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: gemmaro <gemmaro.dev <at> gmail.com>
Subject: [PATCH] gnu: Add ruby-minima.
Date: Sun, 26 Feb 2023 14:02:32 +0900
Hello,

This patch adds the Minima Jekyll theme.
It has no dependents other than itself,
and can be used with jekyll and ruby packages.

Best regards,
gemmaro.

* gnu/packages/ruby.scm (ruby-minima): New variable.
---
 gnu/packages/ruby.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2e8d4038de..6a75e1cb0f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2022 Philip McGrath <philip <at> philipmcgrath.com>
 ;;; Copyright © 2022 Remco van 't Veer <remco <at> remworks.net>
 ;;; Copyright © 2022 Taiju HIGASHI <higashi <at> taiju.info>
+;;; Copyright © 2023 gemmaro <gemmaro.dev <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4320,6 +4321,28 @@ (define-public ruby-net-scp
     (home-page "https://github.com/net-ssh/net-scp")
     (license license:expat)))
 
+(define-public ruby-minima
+  (package
+    (name "ruby-minima")
+    (version "2.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "minima" version))
+              (sha256
+               (base32
+                "1gk7jmriiswda1ykjzpsw9cpiya4m9n0yrh0h6xnrc8zcfy543jj"))))
+    ;; Minima doesn't have tests.
+    (arguments
+     `(#:tests? #f))
+    (build-system ruby-build-system)
+    (propagated-inputs (list jekyll ruby-jekyll-feed ruby-jekyll-seo-tag))
+    (synopsis "Beautiful, minimal theme for Jekyll")
+    (description
+     "Minima is a one-size-fits-all Jekyll theme for writers.  It's Jekyll's
+default (and first) theme.  It's what you get when you run @code{jekyll new}.")
+    (home-page "https://github.com/jekyll/minima")
+    (license license:expat)))
+
 (define-public ruby-minitest
   (package
     (name "ruby-minitest")

base-commit: a7c7363a825e176ae25f5f69cacfff0880b23e80
-- 
2.39.1




This bug report was last modified 1 year and 349 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.