From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH 1/4] gnu: Add ruby-tzinfo-data. Date: Sun, 5 Jun 2016 23:00:50 +1000 Message-ID: <1465131653-28176-2-git-send-email-donttrustben@gmail.com> References: <1465131653-28176-1-git-send-email-donttrustben@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9Xg6-0003w5-8f for guix-devel@gnu.org; Sun, 05 Jun 2016 09:01:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9Xg1-0000cW-45 for guix-devel@gnu.org; Sun, 05 Jun 2016 09:01:17 -0400 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:36048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9Xg0-0000cS-Ty for guix-devel@gnu.org; Sun, 05 Jun 2016 09:01:13 -0400 Received: by mail-pa0-x22a.google.com with SMTP id te7so23909514pab.3 for ; Sun, 05 Jun 2016 06:01:12 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id 4sm20716239pfz.35.2016.06.05.06.01.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Jun 2016 06:01:10 -0700 (PDT) In-Reply-To: <1465131653-28176-1-git-send-email-donttrustben@gmail.com> 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" To: guix-devel@gnu.org * gnu/packages/ruby.scm (ruby-tzinfo-data): 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 c6b6eed..fa550cb 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2101,6 +2101,47 @@ aware transformations between times in different time zones.") (home-page "http://tzinfo.github.io") (license license:expat))) +(define-public ruby-tzinfo-data + (package + (name "ruby-tzinfo-data") + (version "1.2016.4") + (source + (origin + (method url-fetch) + ;; Download from GitHub because the rubygems version does not contain + ;; Rakefile or tests. + (uri (string-append + "https://github.com/tzinfo/tzinfo-data/archive/v" + version + ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0jnm8i379hn48cq5n39j7wzm08i0mw73kqzx3cqbxpiwlb1hnz80")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Remove the known test failure. + ;; https://github.com/tzinfo/tzinfo-data/issues/10 + ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128 + (add-before 'check 'remove-broken-test + (lambda _ + (substitute* "test/tc_definitions.rb" + (("if utc && local") + (string-append + "if utc && local && !line.match(/Sun Oct 25 01:59:59 2037 UT" + " = Sun Oct 25 02:59:59 2037 WEST isdst=1 gmtoff=3600/)")) + #t)))))) + (propagated-inputs + `(("ruby-tzinfo" ,ruby-tzinfo))) + (synopsis "Data from the IANA Time Zone database") + (description + "This library provides @code{TZInfo::Data}, which contains data from the +IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.") + (home-page "http://tzinfo.github.io") + (license license:expat))) + (define-public ruby-rb-inotify (package (name "ruby-rb-inotify") -- 2.7.4