From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCHES] Add ruby-activesupport Date: Sun, 30 Aug 2015 10:33:11 -0400 Message-ID: <87y4gsonh4.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW3fW-0000rk-Og for guix-devel@gnu.org; Sun, 30 Aug 2015 10:33:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZW3fV-0008He-2W for guix-devel@gnu.org; Sun, 30 Aug 2015 10:33:14 -0400 Received: from mail.fsf.org ([208.118.235.13]:59254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW3fU-0008HZ-UW for guix-devel@gnu.org; Sun, 30 Aug 2015 10:33:13 -0400 Received: from c-73-188-137-88.hsd1.de.comcast.net ([73.188.137.88]:54643 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1ZW3fU-0003GU-Fn for guix-devel@gnu.org; Sun, 30 Aug 2015 10:33:12 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Patches for ActiveSupport, the first big component of Rails, and the missing prerequisites. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-ruby-thread-safe.patch >From b92da5830285a9daaba772390472b53a27eb3198 Mon Sep 17 00:00:00 2001 From: David Thompson 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-Add-ruby-tzinfo.patch >From 0bca478f5c5096427343a644d540c1a3c11c86d4 Mon Sep 17 00:00:00 2001 From: David Thompson 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0003-gnu-Add-ruby-json.patch >From 6dd92fc344ff4d54d6044bf6ce72c8c02087798c Mon Sep 17 00:00:00 2001 From: David Thompson 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0004-gnu-Add-ruby-activesupport.patch >From 2830c36b71cf55ef5ebf9bf85ce0e2e61d5b2ec4 Mon Sep 17 00:00:00 2001 From: David Thompson 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 --=-=-= Content-Type: text/plain -- David Thompson GPG Key: 0FF1D807 --=-=-=--