unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#71519] [PATCH] gnu: Add ruby-prism.
@ 2024-06-12 13:12 gemmaro
  2024-06-27 13:46 ` [bug#71519] [PATCH v2] " gemmaro
  2024-11-01 12:42 ` [bug#71519] [PATCH] " gemmaro
  0 siblings, 2 replies; 3+ messages in thread
From: gemmaro @ 2024-06-12 13:12 UTC (permalink / raw)
  To: 71519; +Cc: gemmaro, Christopher Baines

* gnu/packages/ruby.scm (ruby-prism): New variable.

Change-Id: I9d51611b005c96884ded4d1892e18b2811c46fe7
---
 gnu/packages/ruby.scm | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5c1e666bb0..04868d80d9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -32,7 +32,7 @@
 ;;; Copyright © 2022-2024 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>
+;;; Copyright © 2023, 2024 gemmaro <gemmaro.dev@gmail.com>
 ;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2023, 2024 Hartmut Goebel <h.goebel@crazy-compilers.com>
@@ -7138,6 +7138,38 @@ (define-public ruby-prawn-manual-builder
     (home-page "https://github.com/prawnpdf/prawn-manual_builder")
     (license %prawn-project-licenses)))
 
+(define-public ruby-prism
+  (package
+    (name "ruby-prism")
+    (version "0.30.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ruby/prism")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "13izycs2i2rxg22r75n70q25q308g4aga9vza529g7pk0f0zl2xm"))
+       (modules '((guix build utils)))))
+    (build-system ruby-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (add-before 'build 'compile
+                     (lambda _
+                       (setenv "CC"
+                               #$(cc-for-target))
+                       (invoke "rake" "compile"))))))
+    (native-inputs (list ruby-rake-compiler ruby-ffi))
+    (synopsis "Parser for the Ruby programming language")
+    (description
+     "Prism is a parser for the Ruby programming language.  It is designed
+to be portable, error tolerant, and maintainable.  It is written in
+C99 and has no dependencies.")
+    (home-page "https://ruby.github.io/prism/")
+    (license license:expat)))
+
 (define-public ruby-progress_bar
   (package
     (name "ruby-progress_bar")

base-commit: bb73faea028cc9a15af62cb8ade15d58da51bea2
-- 
2.45.1





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

end of thread, other threads:[~2024-11-01 12:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-12 13:12 [bug#71519] [PATCH] gnu: Add ruby-prism gemmaro
2024-06-27 13:46 ` [bug#71519] [PATCH v2] " gemmaro
2024-11-01 12:42 ` [bug#71519] [PATCH] " 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).