guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCHES] Add ruby-activesupport


From: David Thompson
Subject: [PATCHES] Add ruby-activesupport
Date: Sun, 30 Aug 2015 10:33:11 -0400
User-agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu)

Patches for ActiveSupport, the first big component of Rails, and the
missing prerequisites.

>From b92da5830285a9daaba772390472b53a27eb3198 Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Sun, 30 Aug 2015 09:21:23 -0400
Subject: [PATCH 1/4] gnu: Add ruby-thread-safe.

* gnu/packages/ruby.scm (ruby-thread-safe): New variable.
---
 gnu/packages/ruby.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 4759f46..d11f53f 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -801,3 +801,23 @@ Ruby.  It features syntax highlighting, a plugin 
architecture, runtime
 invocation, and source and documentation browsing.")
     (home-page "http://pryrepl.org";)
     (license license:expat)))
+
+(define-public ruby-thread-safe
+  (package
+    (name "ruby-thread-safe")
+    (version "0.3.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "thread_safe" version))
+       (sha256
+        (base32
+         "1hq46wqsyylx5afkp6jmcihdpv4ynzzq9ygb6z2pb1cbz5js0gcr"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:tests? #f)) ; needs simplecov, among others
+    (synopsis "Thread-safe utilities for Ruby")
+    (description "The thread_safe library provides thread-safe collections and
+utilities for Ruby.")
+    (home-page "https://github.com/ruby-concurrency/thread_safe";)
+    (license license:asl2.0)))
-- 
2.5.0

>From 0bca478f5c5096427343a644d540c1a3c11c86d4 Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Sun, 30 Aug 2015 09:21:46 -0400
Subject: [PATCH 2/4] gnu: Add ruby-tzinfo.

* gnu/packages/ruby.scm (ruby-tzinfo): New variable.
---
 gnu/packages/ruby.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d11f53f..721785e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -821,3 +821,23 @@ invocation, and source and documentation browsing.")
 utilities for Ruby.")
     (home-page "https://github.com/ruby-concurrency/thread_safe";)
     (license license:asl2.0)))
+
+(define-public ruby-tzinfo
+  (package
+    (name "ruby-tzinfo")
+    (version "1.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "tzinfo" version))
+       (sha256
+        (base32
+         "1c01p3kg6xvy1cgjnzdfq45fggbwish8krd0h864jvbpybyx7cgx"))))
+    (build-system ruby-build-system)
+    (propagated-inputs
+     `(("ruby-thread-safe" ,ruby-thread-safe)))
+    (synopsis "Time zone library for Ruby")
+    (description "TZInfo is a Ruby library that provides daylight savings
+aware transformations between times in different time zones.")
+    (home-page "http://tzinfo.github.io";)
+    (license license:expat)))
-- 
2.5.0

>From 6dd92fc344ff4d54d6044bf6ce72c8c02087798c Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Sun, 30 Aug 2015 09:22:12 -0400
Subject: [PATCH 3/4] gnu: Add ruby-json.

* gnu/packages/ruby.scm (ruby-json): New variable.
---
 gnu/packages/ruby.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 721785e..a0308c7 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -841,3 +841,22 @@ utilities for Ruby.")
 aware transformations between times in different time zones.")
     (home-page "http://tzinfo.github.io";)
     (license license:expat)))
+
+(define-public ruby-json
+  (package
+    (name "ruby-json")
+    (version "1.8.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "json" version))
+       (sha256
+        (base32
+         "1nsby6ry8l9xg3yw4adlhk2pnc7i0h0rznvcss4vk3v74qg0k8lc"))))
+    (build-system ruby-build-system)
+    (arguments '(#:tests? #f)) ; dependency cycle with sdoc
+    (synopsis "JSON library for Ruby")
+    (description "This Ruby library provides a JSON implementation written as
+a native C extension.")
+    (home-page "http://json-jruby.rubyforge.org/";)
+    (license (list license:ruby license:gpl2)))) ; GPL2 only
-- 
2.5.0

>From 2830c36b71cf55ef5ebf9bf85ce0e2e61d5b2ec4 Mon Sep 17 00:00:00 2001
From: David Thompson <address@hidden>
Date: Sun, 30 Aug 2015 09:22:50 -0400
Subject: [PATCH 4/4] gnu: Add ruby-activesupport.

* gnu/packages/ruby.scm (ruby-activesupport): New variable.
---
 gnu/packages/ruby.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a0308c7..8159e47 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -860,3 +860,30 @@ aware transformations between times in different time 
zones.")
 a native C extension.")
     (home-page "http://json-jruby.rubyforge.org/";)
     (license (list license:ruby license:gpl2)))) ; GPL2 only
+
+(define-public ruby-activesupport
+  (package
+    (name "ruby-activesupport")
+    (version "4.2.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "activesupport" version))
+       (sha256
+        (base32
+         "19n38rj6r1gyxgka18qvcxyla0fwan8a5p3ghq0pp8aj93sbmr6f"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:tests? #f)) ; no tests
+    (propagated-inputs
+     `(("ruby-i18n" ,ruby-i18n)
+       ("ruby-json" ,ruby-json)
+       ("ruby-minitest" ,ruby-minitest)
+       ("ruby-thread-safe" ,ruby-thread-safe)
+       ("ruby-tzinfo" ,ruby-tzinfo)))
+    (synopsis "Rails utility library")
+    (description "ActiveSupport is a toolkit of support libraries and Ruby
+core extensions extracted from the Rails framework.  It includes support for
+multibyte strings, internationalization, time zones, and testing.")
+    (home-page "http://www.rubyonrails.org";)
+    (license license:expat)))
-- 
2.5.0

-- 
David Thompson
GPG Key: 0FF1D807

reply via email to

[Prev in Thread] Current Thread [Next in Thread]