[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/13: gnu: Add ruby-ruby-engine.
From: |
Ben Woodcroft |
Subject: |
12/13: gnu: Add ruby-ruby-engine. |
Date: |
Wed, 10 Aug 2016 11:57:35 +0000 (UTC) |
benwoodcroft pushed a commit to branch wip-rails
in repository guix.
commit a70daa059b9a7761c125998804745129e3327826
Author: Ben Woodcroft <address@hidden>
Date: Wed Dec 30 16:51:18 2015 +1000
gnu: Add ruby-ruby-engine.
* gnu/packages/ruby.scm (ruby-ruby-engine): New variable.
---
gnu/packages/ruby.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2d50498..87159a1 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3404,6 +3404,49 @@ used to create both network servers and clients.")
(home-page "http://rubyeventmachine.com")
(license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
+(define-public ruby-ruby-engine
+ (package
+ (name "ruby-ruby-engine")
+ (version "1.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ruby_engine" version))
+ (sha256
+ (base32
+ "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'clean-up
+ (lambda _
+ (delete-file "Gemfile.lock")
+ (substitute* "ruby_engine.gemspec"
+ ;; Remove unnecessary imports that would entail further
+ ;; dependencies.
+ ((".*<rdoc.*") "")
+ ((".*<rubygems-tasks.*") "")
+ ;; Remove extraneous .gem file
+ (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") ""))
+ (substitute* "Rakefile"
+ (("require 'rubygems/tasks'") "")
+ (("Gem::Tasks.new") ""))
+ ;; Remove extraneous .gem file that otherwise gets installed.
+ (delete-file "pkg/ruby_engine-1.0.0.gem")
+ #t)))))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-rspec" ,ruby-rspec-2)))
+ (synopsis "Simplifies checking for Ruby implementation")
+ (description
+ "@code{ruby_engine} provides an RubyEngine class that can be used to check
+which implementation of Ruby is in use. It can provide the interpreter name
and
+provides query methods such as @{RubyEngine.mri?}.")
+ (home-page
+ "https://github.com/janlelis/ruby_engine")
+ (license license:expat)))
+
(define-public ruby-turn
(package
(name "ruby-turn")
- branch wip-rails created (now 9a46eda), Ben Woodcroft, 2016/08/10
- 03/13: gnu: ruby-concurrent: Adjust for 'replace-git-ls-files'., Ben Woodcroft, 2016/08/10
- 01/13: guix: ruby-build-system: Build compiled gems reproducibly., Ben Woodcroft, 2016/08/10
- 04/13: gnu: Add ruby-asciimath., Ben Woodcroft, 2016/08/10
- 02/13: guix: ruby-build-system: Add replace-git-ls-files., Ben Woodcroft, 2016/08/10
- 09/13: gnu: Add ruby-creole., Ben Woodcroft, 2016/08/10
- 11/13: gnu: Add ruby-erubis., Ben Woodcroft, 2016/08/10
- 07/13: gnu: Add ruby-rack-protection., Ben Woodcroft, 2016/08/10
- 12/13: gnu: Add ruby-ruby-engine.,
Ben Woodcroft <=
- 06/13: gnu: Add ruby-rack-test., Ben Woodcroft, 2016/08/10
- 10/13: gnu: Add ruby-sporkmonger-rack-mount., Ben Woodcroft, 2016/08/10
- 05/13: gnu: Add ruby-asciidoctor., Ben Woodcroft, 2016/08/10
- 08/13: gnu: Add ruby-contest., Ben Woodcroft, 2016/08/10
- 13/13: gnu: Add ruby-rails, ruby-sinatra and associated packages., Ben Woodcroft, 2016/08/10