unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: gemmaro <gemmaro.dev@gmail.com>
To: 71519@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>, Christopher Baines <guix@cbaines.net>
Subject: [bug#71519] [PATCH v2] gnu: Add ruby-prism.
Date: Thu, 27 Jun 2024 22:46:01 +0900	[thread overview]
Message-ID: <46df556821252f48e1f0967dd62b6abfcec12e2d.1719495961.git.gemmaro.dev@gmail.com> (raw)
In-Reply-To: <d6d318e21db7a9baaf228e6bd05638b76d316a76.1718197929.git.gemmaro.dev@gmail.com>

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

Change-Id: I9d51611b005c96884ded4d1892e18b2811c46fe7
---
This adds supported-systems to exclude i686-linux and armhf-linux.

 gnu/packages/ruby.scm | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 9547481caf..1f5a966dff 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>
@@ -7152,6 +7152,41 @@ (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.")
+    ;; 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-progress_bar
   (package
     (name "ruby-progress_bar")

base-commit: c6e6001a10d96b7c8f023e3d9b7022d935d9f2f6
-- 
2.45.2





  reply	other threads:[~2024-06-27 13:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-12 13:12 [bug#71519] [PATCH] gnu: Add ruby-prism gemmaro
2024-06-27 13:46 ` gemmaro [this message]
2024-11-01 12:42 ` gemmaro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46df556821252f48e1f0967dd62b6abfcec12e2d.1719495961.git.gemmaro.dev@gmail.com \
    --to=gemmaro.dev@gmail.com \
    --cc=71519@debbugs.gnu.org \
    --cc=guix@cbaines.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).