From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: [PATCH] ruby-rake-compiler Date: Sat, 4 Jul 2015 15:08:29 +0200 Message-ID: <20150704130829.GA14470@thebird.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBNCD-0000lJ-Jn for guix-devel@gnu.org; Sat, 04 Jul 2015 09:09:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBNCA-0004DL-7w for guix-devel@gnu.org; Sat, 04 Jul 2015 09:09:29 -0400 Received: from mail.thebird.nl ([95.154.246.10]:39601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBNCA-00044j-1Z for guix-devel@gnu.org; Sat, 04 Jul 2015 09:09:26 -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: guix-devel@gnu.org --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached a Ruby module in preparation of Nokogiri support. (I am pretty close as described in https://github.com/pjotrp/guix-notes/blob/master/RUBYGEMS-Nokogiri.org). Cucumber support comes later (it depends on Nokogiri itself). David: there are quite a few modules now that build gems through 'rake gem'. Would it be an idea to try that by default when there is no gemspec file? Pj. --TB36FDmn/VVEgNH/ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-Add-Ruby-rake-compiler.patch" >From e54bb659ccc3a91072214b00e5bdb6b9fbe448e5 Mon Sep 17 00:00:00 2001 From: pjotrp Date: Sat, 4 Jul 2015 15:00:09 +0200 Subject: [PATCH] gnu: Add Ruby rake-compiler. * gnu/packages/ruby.scm (ruby-rake-compiler): New variable. --- gnu/packages/ruby.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index af87cf5..8c86a14 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -177,6 +177,42 @@ announcement.") (home-page "http://www.zenspider.com/projects/hoe.html") (license license:expat))) +(define-public ruby-rake-compiler + (package + (name "ruby-rake-compiler") + (version "0.9.5") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/rake-compiler/rake-compiler/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07lk1vl0jqcaqwjjhmg0qshqwcxdyr5kscc9xxm13m03835xgpf3")) + (snippet + '(begin + ;; Remove cucumber test file (dependencies do not resolve right now) + (delete-file "tasks/cucumber.rake"))))) + (build-system ruby-build-system) + (arguments + '( + #:tests? #f + #:phases (alist-replace + 'build + (lambda _ (zero? (system* "rake" "gem"))) + %standard-phases)) + + ) + (native-inputs + `(("ruby-rspec" ,ruby-rspec))) + (synopsis "Building and packaging helper for Ruby extensions") + (description "A productivity tool for Ruby developers. Its goal is +to make the busy developer's life easier by simplifying the building +and packaging of Ruby extensions by simplifying code and reducing +duplication.") + (home-page "https://github.com/rake-compiler/rake-compiler") + (license license:x11))) + (define-public ruby-i18n (package (name "ruby-i18n") -- 1.7.10.4 --TB36FDmn/VVEgNH/--