diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2015-12-30 16:51:18 +1000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-01-27 13:41:45 +0000 |
commit | bf991e373ff32c1364f3b4bb90af9e9534019486 (patch) | |
tree | ee17bb8d99aa20c9316509c0a71ea70084554e3c | |
parent | ec80796b045209b0fed3029b3f41e89f49441bcd (diff) | |
download | guix-bf991e373ff32c1364f3b4bb90af9e9534019486.tar guix-bf991e373ff32c1364f3b4bb90af9e9534019486.tar.gz |
gnu: Add ruby-ruby-engine.
* gnu/packages/ruby.scm (ruby-ruby-engine): New variable.
-rw-r--r-- | gnu/packages/ruby.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 135879c91e..0f84d79ae6 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3530,6 +3530,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") |