From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: [PATCH] gnu: Add ruby 1.8.7 package Date: Mon, 27 Oct 2014 06:30:09 +0100 Message-ID: <20141027053009.GA22678@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xict4-00005V-LL for guix-devel@gnu.org; Mon, 27 Oct 2014 01:30:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xicsz-0002oR-V9 for guix-devel@gnu.org; Mon, 27 Oct 2014 01:30:38 -0400 Received: from mail.thebird.nl ([95.154.246.10]:46711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xicsz-0002oD-Pg for guix-devel@gnu.org; Mon, 27 Oct 2014 01:30:33 -0400 Content-Disposition: inline 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: Mark H Weaver Cc: guix-devel@gnu.org * gnu/packages/ruby.scm: (ruby-1.8): New variable. fixes --- gnu/packages/ruby.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ac751f5..d6f86a5 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -29,6 +29,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix utils) + #:use-module (guix hash) #:use-module (guix build-system gnu) #:use-module (guix build-system ruby)) @@ -89,6 +90,34 @@ a focus on simplicity and productivity.") (home-page "https://ruby-lang.org") (license license:ruby))) +(define-public ruby-1.8 + (package (inherit ruby) + (name "ruby") + (version "1.8.7-p374") + (source + (origin + (method url-fetch) + (uri (string-append "http://cache.ruby-lang.org/pub/ruby/1.8/" + name "-" version ".tar.bz2")) + (sha256 + (base32 + "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl")))) + (native-search-paths '()) + (arguments + `(#:test-target "test" + #:parallel-tests? #f + #:phases + (alist-cons-before + 'configure 'replace-bin-sh + (lambda _ + (substitute* '("Makefile.in" + "ext/pty/pty.c" + "io.c" + "lib/mkmf.rb" + "process.c") + (("/bin/sh") (which "sh")))) + %standard-phases))))) + (define-public ruby-i18n (package (name "ruby-i18n") -- 1.7.10.4