From 49c684dc83002058fe86f949c3fbd4dafeaf834e Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 23 May 2011 17:26:00 +0000 Subject: Add jruby support. (Portage version: 2.1.9.42/cvs/Linux x86_64) --- dev-ruby/rspec-mocks/ChangeLog | 5 ++++- dev-ruby/rspec-mocks/rspec-mocks-2.6.0.ebuild | 14 +++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'dev-ruby/rspec-mocks') 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 rspec-mocks-2.6.0.ebuild: + Add jruby support. 13 May 2011; Hans de Graaff -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. } -- cgit v1.2.3-65-gdbad