[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30689] [PATCH 10/10] gnu: Add ruby-ruby-engine.
From: |
Christopher Baines |
Subject: |
[bug#30689] [PATCH 10/10] gnu: Add ruby-ruby-engine. |
Date: |
Sat, 3 Mar 2018 21:03:08 +0000 |
From: Ben Woodcroft <address@hidden>
* gnu/packages/ruby.scm (ruby-ruby-engine): New variable.
---
gnu/packages/ruby.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c377d2595..05a78843d 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3715,6 +3715,51 @@ 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
+ `(#:tests? #f
+ #: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-rake" ,ruby-rake)
+ ("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")
--
2.16.0
- [bug#30689] [PATCH] Ruby on Rails (web-application framework), Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 01/10] gnu: Add ruby-asciimath., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 05/10] gnu: Add ruby-contest., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 10/10] gnu: Add ruby-ruby-engine.,
Christopher Baines <=
- [bug#30689] [PATCH 07/10] gnu: Add ruby-sporkmonger-rack-mount., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 02/10] gnu: Add ruby-asciidoctor., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 08/10] gnu: Add ruby-erubis., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 04/10] gnu: Add ruby-rack-protection., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 03/10] gnu: Add ruby-rack-test., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 09/10] gnu: Add ruby-rake., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH 06/10] gnu: Add ruby-creole., Christopher Baines, 2018/03/03
- [bug#30689] [PATCH] Ruby on Rails (web-application framework), Gábor Boskovits, 2018/03/03
- [bug#30689] [PATCH] Ruby on Rails (web-application framework), Ludovic Courtès, 2018/03/05