commit: 8bc426f319867f0840b0e549bdc26308bbcb4a7b Author: Hans de Graaff <hans <AT> degraaff <DOT> org> AuthorDate: Fri Jun 27 09:09:09 2014 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Jun 27 09:09:09 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/graaff.git;a=commit;h=8bc426f3
Add ruby20, ruby21. Add test dependency on mocha and make tests work when newer mocha is installed. Package-Manager: portage-2.2.8-r1 --- dev-ruby/uuid/ChangeLog | 4 ++++ dev-ruby/uuid/uuid-2.3.7.ebuild | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dev-ruby/uuid/ChangeLog b/dev-ruby/uuid/ChangeLog index 177cbd3..9bae0ec 100644 --- a/dev-ruby/uuid/ChangeLog +++ b/dev-ruby/uuid/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 27 Jun 2014; Hans de Graaff <gra...@gentoo.org> uuid-2.3.7.ebuild: + Add ruby20, ruby21. Add test dependency on mocha and make tests work when + newer mocha is installed. + 27 Jun 2014; Hans de Graaff <gra...@gentoo.org> -uuid-2.3.6.ebuild: Cleanup. diff --git a/dev-ruby/uuid/uuid-2.3.7.ebuild b/dev-ruby/uuid/uuid-2.3.7.ebuild index 729e983..bd83dcf 100644 --- a/dev-ruby/uuid/uuid-2.3.7.ebuild +++ b/dev-ruby/uuid/uuid-2.3.7.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 -USE_RUBY="ruby19" +USE_RUBY="ruby19 ruby20 ruby21" RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc" @@ -25,6 +25,11 @@ IUSE="doc" ruby_add_rdepend ">=dev-ruby/macaddr-1.0:0" +ruby_add_bdepend "test? ( dev-ruby/mocha:0.14 )" + all_ruby_prepare() { rm bin/{rake,yard,yri,yardoc} || die + + # Only works with older mocha versions. + sed -e '2igem "mocha", "~>0.14.0"' -i test/test-uuid.rb || die }