GNU bug report logs - #71519
[PATCH] gnu: Add ruby-prism.

Previous Next

Package: guix-patches;

Reported by: gemmaro <gemmaro.dev <at> gmail.com>

Date: Wed, 12 Jun 2024 13:14:01 UTC

Severity: normal

Tags: patch

Done: gemmaro <gemmaro.dev <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 71519 <at> debbugs.gnu.org (full text, mbox):

From: gemmaro <gemmaro.dev <at> gmail.com>
To: 71519 <at> debbugs.gnu.org
Cc: gemmaro <gemmaro.dev <at> gmail.com>
Subject: [PATCH v4] gnu: Add ruby-prism.
Date: Mon,  4 Nov 2024 15:53:38 +0900
* gnu/packages/ruby.scm (ruby-prism): New variable.

Change-Id: I9a471843c51fd7449fbfa88fbc18e58a05d4f686
---
This removes the modules part of the previous third patch (sorry that its
revision was missing).

 gnu/packages/ruby.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 12c439b3a9..439f52ecbf 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6995,6 +6995,40 @@ (define-public ruby-parser
     (home-page "https://github.com/whitequark/parser")
     (license license:expat)))
 
+(define-public ruby-prism
+  (package
+    (name "ruby-prism")
+    (version "1.2.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 "1h9hsykhkr5hnh04akhv5zkfc7pgq5cpzfvkpfwdhkkmc6jai1lm"))))
+    (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.")
+    ;; Some tests fail on i686-linux and armhf-linux.
+    (supported-systems '("x86_64-linux" "aarch64-linux" "riscv64-linux"
+                         "powerpc64le-linux"))
+    (home-page "https://ruby.github.io/prism/")
+    (license license:expat)))
+
 (define-public ruby-set
   (package
     (name "ruby-set")

base-commit: 547d97180471e90e404a948015f65431961aa273
-- 
2.46.0





This bug report was last modified 63 days ago.

Previous Next


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