[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/23: gnu: Add ruby-json-pure.
From: |
Ricardo Wurmus |
Subject: |
07/23: gnu: Add ruby-json-pure. |
Date: |
Mon, 14 Dec 2015 13:10:49 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit 763624f56616eae6c974e8d6c1acc257020154dd
Author: Ricardo Wurmus <address@hidden>
Date: Wed Nov 25 15:36:24 2015 +0100
gnu: Add ruby-json-pure.
* gnu/packages/ruby.scm (ruby-json-pure): New variable.
---
gnu/packages/ruby.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2f3e9f3..eb6abbf 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -30,6 +30,7 @@
#:use-module (gnu packages autotools)
#:use-module (gnu packages java)
#:use-module (gnu packages libffi)
+ #:use-module (gnu packages ragel)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
#:use-module (guix packages)
@@ -2089,6 +2090,53 @@ a native C extension.")
(home-page "http://json-jruby.rubyforge.org/")
(license (list license:ruby license:gpl2)))) ; GPL2 only
+(define-public ruby-json-pure
+ (package
+ (name "ruby-json-pure")
+ (version "1.8.3")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "json_pure" version))
+ (sha256
+ (base32
+ "025aykr360x6dr1jmg8pmsrx7gr30pws4p1q686vnb48zyw1sc94"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:modules ((srfi srfi-1)
+ (ice-9 regex)
+ (rnrs io ports)
+ (guix build ruby-build-system)
+ (guix build utils))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'replace-git-ls-files
+ (lambda _
+ ;; The existing gemspec file already contains a nice list of
+ ;; files that belong to the gem. We extract the list from the
+ ;; gemspec file and then replace the file list in the Rakefile to
+ ;; get rid of the call to "git ls-files".
+ (let* ((contents (call-with-input-file "json.gemspec"
get-string-all))
+ ;; Guile is unhappy about the #\nul characters in comments.
+ (filtered (string-filter (lambda (char)
+ (not (equal? #\nul char)))
+ contents))
+ (files (match:substring
+ (string-match " s\\.files = ([^]]+\\])" filtered)
1)))
+ (substitute* "Rakefile"
+ (("FileList\\[`git ls-files`\\.split\\(/\\\\n/\\)\\]")
+ (string-append "FileList" files))))
+ #t)))))
+ (native-inputs
+ `(("ruby-permutation" ,ruby-permutation)
+ ("ruby-utils" ,ruby-utils)
+ ("ragel" ,ragel)
+ ("bundler" ,bundler)))
+ (synopsis "JSON implementation in pure Ruby")
+ (description
+ "This package provides a JSON implementation written in pure Ruby.")
+ (home-page "http://flori.github.com/json")
+ (license license:ruby)))
+
(define-public ruby-listen
(package
(name "ruby-listen")
- branch master updated (9c1c2a7 -> 0c4e762), Ricardo Wurmus, 2015/12/14
- 01/23: gnu: Add ruby-minitest-4., Ricardo Wurmus, 2015/12/14
- 03/23: gnu: Add ruby-minitest-tu-shim., Ricardo Wurmus, 2015/12/14
- 04/23: gnu: Add ruby-term-ansicolor., Ricardo Wurmus, 2015/12/14
- 08/23: gnu: Add ruby-saikuro-treemap., Ricardo Wurmus, 2015/12/14
- 05/23: gnu: Add ruby-pstree., Ricardo Wurmus, 2015/12/14
- 13/23: gnu: Add ruby-unf-ext., Ricardo Wurmus, 2015/12/14
- 12/23: gnu: Add ruby-netrc., Ricardo Wurmus, 2015/12/14
- 06/23: gnu: Add ruby-utils., Ricardo Wurmus, 2015/12/14
- 07/23: gnu: Add ruby-json-pure.,
Ricardo Wurmus <=
- 02/23: gnu: Add ruby-gem-hadar., Ricardo Wurmus, 2015/12/14
- 15/23: gnu: Add ruby-nokogiri-diff., Ricardo Wurmus, 2015/12/14
- 09/23: gnu: Add ruby-rb-fsevent., Ricardo Wurmus, 2015/12/14
- 10/23: gnu: ruby-listen: Add rb-fsevent to inputs., Ricardo Wurmus, 2015/12/14
- 17/23: gnu: Add Gumbo Parser., Ricardo Wurmus, 2015/12/14
- 18/23: gnu: Add ruby-nokogumbo., Ricardo Wurmus, 2015/12/14
- 14/23: gnu: Add ruby-tdiff., Ricardo Wurmus, 2015/12/14
- 11/23: gnu: Add ruby-guard., Ricardo Wurmus, 2015/12/14
- 16/23: gnu: Add ruby-crass., Ricardo Wurmus, 2015/12/14
- 23/23: gnu: Add ruby-redcloth., Ricardo Wurmus, 2015/12/14