summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-05-23 17:26:00 +0000
committerHans de Graaff <graaff@gentoo.org>2011-05-23 17:26:00 +0000
commit49c684dc83002058fe86f949c3fbd4dafeaf834e (patch)
treed49cb727a7f823ebb360581882e40a5395fb3d60 /dev-ruby/rspec-mocks
parentAdd jruby support. (diff)
downloadgentoo-2-49c684dc83002058fe86f949c3fbd4dafeaf834e.tar.gz
gentoo-2-49c684dc83002058fe86f949c3fbd4dafeaf834e.tar.bz2
gentoo-2-49c684dc83002058fe86f949c3fbd4dafeaf834e.zip
Add jruby support.
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/rspec-mocks')
-rw-r--r--dev-ruby/rspec-mocks/ChangeLog5
-rw-r--r--dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild14
2 files changed, 15 insertions, 4 deletions
diff --git a/dev-ruby/rspec-mocks/ChangeLog b/dev-ruby/rspec-mocks/ChangeLog
index d7a3b91bc7da..c01e78d03050 100644
--- a/dev-ruby/rspec-mocks/ChangeLog
+++ b/dev-ruby/rspec-mocks/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-ruby/rspec-mocks
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/ChangeLog,v 1.10 2011/05/13 10:25:20 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/ChangeLog,v 1.11 2011/05/23 17:26:00 graaff Exp $
+
+ 23 May 2011; Hans de Graaff <graaff@gentoo.org> rspec-mocks-2.6.0.ebuild:
+ Add jruby support.
13 May 2011; Hans de Graaff <graaff@gentoo.org>
-rspec-mocks-2.0.0_beta22.ebuild, -rspec-mocks-2.4.0.ebuild:
diff --git a/dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild
index 23ff9f444077..db52cd6c8cd1 100644
--- a/dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild
+++ b/dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild,v 1.1 2011/05/13 06:45:16 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild,v 1.2 2011/05/23 17:26:00 graaff Exp $
EAPI=2
-USE_RUBY="ruby18 ree18 ruby19"
+USE_RUBY="ruby18 ree18 ruby19 jruby"
RUBY_FAKEGEM_TASK_TEST="none"
@@ -47,7 +47,15 @@ all_ruby_compile() {
}
each_ruby_test() {
- PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die
+ case ${RUBY} in
+ *jruby)
+ # This particular failure is reported to be fixed in jruby 1.6.
+ ewarn "Tests disabled because they crash jruby."
+ ;;
+ *)
+ PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die
+ ;;
+ esac
# There are features but they require aruba which we don't have yet.
}