diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-14 22:13:35 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-14 22:13:35 +0000 |
commit | 726f929997736c0627cb53ac73342ec7ecb25c57 (patch) | |
tree | 4ec2f3bd6321d139f11ccd65cc0d7a2a8a615254 /dev-ruby/session/session-2.4.0.ebuild | |
parent | arm stable, bug #294958 (diff) | |
download | gentoo-2-726f929997736c0627cb53ac73342ec7ecb25c57.tar.gz gentoo-2-726f929997736c0627cb53ac73342ec7ecb25c57.tar.bz2 gentoo-2-726f929997736c0627cb53ac73342ec7ecb25c57.zip |
Add a patch for JRuby compatibility by Charles Nutter (headius), and enable for JRuby target.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/session/session-2.4.0.ebuild')
-rw-r--r-- | dev-ruby/session/session-2.4.0.ebuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/dev-ruby/session/session-2.4.0.ebuild b/dev-ruby/session/session-2.4.0.ebuild index 38ca0aead69a..0429ab1777d2 100644 --- a/dev-ruby/session/session-2.4.0.ebuild +++ b/dev-ruby/session/session-2.4.0.ebuild @@ -1,11 +1,10 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/session/session-2.4.0.ebuild,v 1.2 2010/01/11 17:58:07 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/session/session-2.4.0.ebuild,v 1.3 2010/01/14 22:13:34 flameeyes Exp $ EAPI=2 -# jruby → “fork is unsafe and disabled by default on JRuby“ -USE_RUBY="ruby18 ruby19" +USE_RUBY="ruby18 ruby19 jruby" RUBY_FAKEGEM_TASK_TEST="" RUBY_FAKEGEM_TASK_DOC="" @@ -33,6 +32,14 @@ all_ruby_prepare() { sed -i -e 's:TimeoutError:SessionTimeoutError:' test/session.rb || die } +each_ruby_prepare() { + case ${RUBY} in + *jruby) + epatch "${FILESDIR}"/${P}-jruby.patch + ;; + esac +} + each_ruby_test() { ${RUBY} -Ilib test/*.rb || die "tests failed" } |