[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/36: gnu: Add ruby-regexp-parser.
From: |
guix-commits |
Subject: |
25/36: gnu: Add ruby-regexp-parser. |
Date: |
Fri, 17 Jul 2020 23:24:45 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit b6f2a8d164420213c9db223cf818626c8ae1a5ef
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Jul 14 22:36:43 2020 -0400
gnu: Add ruby-regexp-parser.
* gnu/packages/ruby.scm (ruby-regexp-parser): New variable.
---
gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d0c6ccb..f80bba9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6588,6 +6588,47 @@ they match.")
(home-page "https://github.com/jaynetics/regexp_property_values")
(license license:expat)))
+(define-public ruby-regexp-parser
+ (package
+ (name "ruby-regexp-parser")
+ (version "1.7.1")
+ (source
+ (origin
+ (method git-fetch) ;bin/test missing from gem
+ (uri (git-reference
+ (url "https://github.com/ammar/regexp_parser.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0dk9d4vpw31cc06s29fqyr1kq0kipym1mydifkcrnppvpl3pd53r"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:test-target "default"
+ #:phases (modify-phases %standard-phases
+ (add-before 'build 'compile-scanner.rb
+ (lambda _
+ (invoke "rake" "build")
+ ;; XXX: This is needed otherwise the install
+ ;; phase fails to delete the installed cached
+ ;; gem file.
+ (delete-file-recursively "pkg")
+ #t)))))
+ (native-inputs
+ `(("ragel" ,ragel)
+ ("ruby-regexp-property-values" ,ruby-regexp-property-values)
+ ("ruby-rspec" ,ruby-rspec)))
+ (synopsis "A regular expression parser library for Ruby ")
+ (description "A Ruby gem for tokenizing, parsing, and transforming regular
+expressions. It comprises the following components:
+@itemize
+@item A scanner/tokenizer based on Ragel,
+@item A lexer that produces a stream of token objects,
+@item A parser that produces a tree of Expression objects.
+@end itemize")
+ (home-page "https://github.com/ammar/regexp_parser")
+ (license license:expat)))
+
(define-public ruby-rubocop
(package
(name "ruby-rubocop")
- 15/36: gnu: Add ruby-given-core., (continued)
- 15/36: gnu: Add ruby-given-core., guix-commits, 2020/07/17
- 16/36: gnu: Add ruby-rspec-given., guix-commits, 2020/07/17
- 18/36: gnu: ruby-parser: Update to 2.7.1.4., guix-commits, 2020/07/17
- 10/36: gnu: Add ruby-prawn-svg., guix-commits, 2020/07/17
- 13/36: gnu: Add ruby-treetop., guix-commits, 2020/07/17
- 17/36: gnu: ruby-coveralls: Strip exact versions from gemspec file., guix-commits, 2020/07/17
- 20/36: gnu: Add ruby-rubocop-ast., guix-commits, 2020/07/17
- 22/36: gnu: Add ruby-character-set., guix-commits, 2020/07/17
- 23/36: gnu: Add ruby-range-compressor., guix-commits, 2020/07/17
- 24/36: gnu: Add ruby-regexp-property-values., guix-commits, 2020/07/17
- 25/36: gnu: Add ruby-regexp-parser.,
guix-commits <=
- 27/36: gnu: ruby-rubocop: Update to 0.88.0., guix-commits, 2020/07/17
- 28/36: gnu: Add ruby-rubocop-performance., guix-commits, 2020/07/17
- 29/36: gnu: Add ruby-gimme., guix-commits, 2020/07/17
- 30/36: gnu: Add ruby-standard., guix-commits, 2020/07/17
- 34/36: gnu: ruby-rouge: Update to 3.21.0., guix-commits, 2020/07/17
- 12/36: gnu: Add ruby-polyglot., guix-commits, 2020/07/17
- 19/36: gnu: ruby-ast: Update to 2.4.1., guix-commits, 2020/07/17
- 21/36: gnu: Add ruby-rexml., guix-commits, 2020/07/17
- 26/36: gnu: Add ruby-test-queue., guix-commits, 2020/07/17
- 31/36: gnu: Add ruby-chunky-png., guix-commits, 2020/07/17