unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#61799] [PATCH] gnu: Add ruby-minima.
@ 2023-02-26  5:02 gemmaro
  2023-04-17 12:44 ` [bug#61799] [PATCH v2] " gemmaro
  2023-05-03  2:37 ` [bug#61799] [PATCH v2] " gemmaro
  0 siblings, 2 replies; 4+ messages in thread
From: gemmaro @ 2023-02-26  5:02 UTC (permalink / raw)
  To: 61799; +Cc: gemmaro, mail

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@philipmcgrath.com>
 ;;; Copyright © 2022 Remco van 't Veer <remco@remworks.net>
 ;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info>
+;;; Copyright © 2023 gemmaro <gemmaro.dev@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





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#61799] [PATCH v2] gnu: Add ruby-minima.
  2023-02-26  5:02 [bug#61799] [PATCH] gnu: Add ruby-minima gemmaro
@ 2023-04-17 12:44 ` gemmaro
  2023-06-08 21:33   ` bug#61799: [PATCH] " Ludovic Courtès
  2023-05-03  2:37 ` [bug#61799] [PATCH v2] " gemmaro
  1 sibling, 1 reply; 4+ messages in thread
From: gemmaro @ 2023-04-17 12:44 UTC (permalink / raw)
  To: 61799; +Cc: gemmaro

I added a test by `jekyll build`.

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

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6c212b9470..62420438fb 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -32,6 +32,7 @@
 ;;; Copyright © 2022 Remco van 't Veer <remco@remworks.net>
 ;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info>
 ;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
+;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5258,6 +5259,35 @@ (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"))))
+    (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")))))))
+    (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: 11ecc5a4f873eaa88c39de0c0c1ac6c165745d8c
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#61799] [PATCH v2] gnu: Add ruby-minima.
  2023-02-26  5:02 [bug#61799] [PATCH] gnu: Add ruby-minima gemmaro
  2023-04-17 12:44 ` [bug#61799] [PATCH v2] " gemmaro
@ 2023-05-03  2:37 ` gemmaro
  1 sibling, 0 replies; 4+ messages in thread
From: gemmaro @ 2023-05-03  2:37 UTC (permalink / raw)
  To: 61799; +Cc: mail

Hello Ruby team,

I'm sorry.  I should have added X-Debbugs-Cc to mention, since this
patch is about ruby.scm.

Regards,
gemmaro.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#61799: [PATCH] gnu: Add ruby-minima.
  2023-04-17 12:44 ` [bug#61799] [PATCH v2] " gemmaro
@ 2023-06-08 21:33   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2023-06-08 21:33 UTC (permalink / raw)
  To: gemmaro; +Cc: 61799-done

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

Hi,

gemmaro <gemmaro.dev@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’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1610 bytes --]

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")

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-08 21:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-26  5:02 [bug#61799] [PATCH] gnu: Add ruby-minima gemmaro
2023-04-17 12:44 ` [bug#61799] [PATCH v2] " gemmaro
2023-06-08 21:33   ` bug#61799: [PATCH] " Ludovic Courtès
2023-05-03  2:37 ` [bug#61799] [PATCH v2] " gemmaro

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).