Add support for Rubinius (rbx) target.
authorHans de Graaff <graaff@gentoo.org>
Fri, 21 Oct 2011 06:48:24 +0000 (06:48 +0000)
committerHans de Graaff <graaff@gentoo.org>
Fri, 21 Oct 2011 06:48:24 +0000 (06:48 +0000)
eclass/ruby-ng.eclass

index 7d47ecdf64e1d87ec390f1fa74fe09ad16a8fa98..87b9ca915b924f3f691ee33aea8e1a65e1452e74 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.40 2011/10/05 17:46:20 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.41 2011/10/21 06:48:24 graaff Exp $
 
 # @ECLASS: ruby-ng.eclass
 # @MAINTAINER:
@@ -19,6 +19,7 @@
 #  * ruby19 - Ruby (MRI) 1.9.x
 #  * ree18  - Ruby Enterprise Edition 1.8.x
 #  * jruby  - JRuby
+#  * rbx    - Rubinius
 #
 # This eclass does not define the implementation of the configure,
 # compile, test, or install phases. Instead, the default phases are
@@ -115,6 +116,10 @@ ruby_implementation_depend() {
                        rubypn="dev-java/jruby"
                        rubyslot=""
                        ;;
+               rbx)
+                       rubypn="dev-lang/rubinius"
+                       rubyslot=""
+                       ;;
                *) die "$1: unknown Ruby implementation"
        esac
 
@@ -611,6 +616,9 @@ ruby_get_implementation() {
                *jruby*)
                        echo "jruby"
                        ;;
+               *rubinius*)
+                       echo "rbx"
+                       ;;
                *)
                        echo "mri"
                        ;;