diff options
author | Hans de Graaff <graaff@gentoo.org> | 2012-01-29 09:55:48 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2012-01-29 09:55:48 +0000 |
commit | f92b3cbb4be20e81fc00e234e0dd094530c29893 (patch) | |
tree | 1f1ea6ae3675a7df858f500575bfd9167619bad2 /dev-ruby/bcat | |
parent | Version bump. (diff) | |
download | gentoo-2-f92b3cbb4be20e81fc00e234e0dd094530c29893.tar.gz gentoo-2-f92b3cbb4be20e81fc00e234e0dd094530c29893.tar.bz2 gentoo-2-f92b3cbb4be20e81fc00e234e0dd094530c29893.zip |
Add ruby19. Fix tests.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/bcat')
-rw-r--r-- | dev-ruby/bcat/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ruby/bcat/bcat-0.6.2.ebuild | 17 |
2 files changed, 19 insertions, 5 deletions
diff --git a/dev-ruby/bcat/ChangeLog b/dev-ruby/bcat/ChangeLog index 60c58807b6f6..4ca7bf98b7f4 100644 --- a/dev-ruby/bcat/ChangeLog +++ b/dev-ruby/bcat/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-ruby/bcat -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcat/ChangeLog,v 1.2 2011/09/11 05:51:27 graaff Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcat/ChangeLog,v 1.3 2012/01/29 09:55:48 graaff Exp $ + + 29 Jan 2012; Hans de Graaff <graaff@gentoo.org> bcat-0.6.2.ebuild: + Add ruby19. Fix tests. *bcat-0.6.2 (11 Sep 2011) diff --git a/dev-ruby/bcat/bcat-0.6.2.ebuild b/dev-ruby/bcat/bcat-0.6.2.ebuild index d042db2e6d62..527c0a9924bf 100644 --- a/dev-ruby/bcat/bcat-0.6.2.ebuild +++ b/dev-ruby/bcat/bcat-0.6.2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcat/bcat-0.6.2.ebuild,v 1.1 2011/09/11 05:51:27 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bcat/bcat-0.6.2.ebuild,v 1.2 2012/01/29 09:55:48 graaff Exp $ EAPI=4 -USE_RUBY="ruby18 ree18" +USE_RUBY="ruby18 ruby19 ree18" RUBY_FAKEGEM_TASK_DOC="man" RUBY_FAKEGEM_EXTRADOC="README" @@ -23,6 +23,17 @@ ruby_add_bdepend "test? ( virtual/ruby-test-unit )" ruby_add_rdepend "dev-ruby/rack" +each_ruby_prepare() { + sed -i -e "s/a2h/#{ENV['RUBY']} -S a2h/" test/test_bcat_a2h.rb || die +} + +each_ruby_test() { + # The Rakefile uses weird trickery with load path that causes gems + # not to be found. Run tests directly instead and do the trickery + # here to support popen calls for the bins in this package. + RUBY=${RUBY} RUBYLIB=lib:${RUBYLIB} PATH=bin:${PATH} ${RUBY} -S testrb test/test_*.rb || die +} + all_ruby_install() { all_fakegem_install |