aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-08-28 17:25:42 +0200
committerRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-08-31 17:01:33 +0200
commitad79eb554d626e5546605d3ad0bccc25d65320f8 (patch)
tree4e154c764871428a71da1dedde7b9e4ade753271 /gnu
parentcf36174ffbcbc2039d1415f800672c2f69c9a7fe (diff)
downloadguix-ad79eb554d626e5546605d3ad0bccc25d65320f8.tar
guix-ad79eb554d626e5546605d3ad0bccc25d65320f8.tar.gz
gnu: Add ruby-rjb.
* gnu/packages/ruby.scm (ruby-rjb): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ruby.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d020cd5bfc..84bfb82e76 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -26,6 +26,7 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages readline)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages java)
#:use-module (gnu packages libffi)
#:use-module (gnu packages gdbm)
#:use-module (gnu packages tls)
@@ -391,6 +392,33 @@ supported: XML Markup and XML Events.")
(home-page "https://github.com/jimweirich/builder")
(license license:expat)))
+(define-public ruby-rjb
+ (package
+ (name "ruby-rjb")
+ (version "1.5.3")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rjb" version))
+ (sha256
+ (base32
+ "0gzs92dagk981s4vrymnqg0vll783b9k564j0cdgp167nc5a2zg4"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:tests? #f ; no rakefile
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'set-java-home
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
+ #t)))))
+ (native-inputs
+ `(("jdk" ,icedtea7 "jdk")))
+ (synopsis "Ruby-to-Java bridge using the Java Native Interface")
+ (description "RJB is a bridge program that connects Ruby and Java via the
+Java Native Interface.")
+ (home-page "http://www.artonx.org/collabo/backyard/?RubyJavaBridge")
+ (license license:lgpl2.1+)))
+
(define-public ruby-useragent
(package
(name "ruby-useragent")