summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-10-21 06:48:24 +0000
committerHans de Graaff <graaff@gentoo.org>2011-10-21 06:48:24 +0000
commit8661ac1126a3d711a4c2b75027d7d49812862aa0 (patch)
tree9092c1b05a35ee454bb719c846cd614520babf49 /eclass
parentInitial import (bug #76017). (diff)
downloadgentoo-2-8661ac1126a3d711a4c2b75027d7d49812862aa0.tar.gz
gentoo-2-8661ac1126a3d711a4c2b75027d7d49812862aa0.tar.bz2
gentoo-2-8661ac1126a3d711a4c2b75027d7d49812862aa0.zip
Add support for Rubinius (rbx) target.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-ng.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 7d47ecdf64e1..87b9ca915b92 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -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"
;;