From a54395d1d97dbd1f25986b6352979773e94660b9 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 27 Sep 2015 08:02:55 +0200 Subject: [PATCH] dev-ruby/test-unit: version bump Package-Manager: portage-2.2.20.1 --- dev-ruby/test-unit/Manifest | 1 + dev-ruby/test-unit/test-unit-3.1.4.ebuild | 60 +++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 dev-ruby/test-unit/test-unit-3.1.4.ebuild diff --git a/dev-ruby/test-unit/Manifest b/dev-ruby/test-unit/Manifest index 6698e2d69a2d..dbb4696d865c 100644 --- a/dev-ruby/test-unit/Manifest +++ b/dev-ruby/test-unit/Manifest @@ -4,3 +4,4 @@ DIST test-unit-3.0.9.gem 120320 SHA256 6be67fd305a9c6be94f4ce74c63df48528ef1e2dd DIST test-unit-3.1.1.gem 121344 SHA256 ae45c2dc8c509e2af783a7aa6f5b883ebedf40af5e6742e895ae83dedce2161e SHA512 be0cb93d8dae6f0ca0159007723d8da56e6d0e17f31cb79a9a45f860ea2e51499e0a130a36bac2dadae8475dd988ebf8f0c23c5d7e158dd928001304f4e0501e WHIRLPOOL 49de0131ce9bacbff69aabc91b89f18637c47b922447e3c94122ad746ab9ac43154ce08b327db8df76226cfa479cf8a9e4ac6f7dddc6e33d5b4b63903262d2c7 DIST test-unit-3.1.2.gem 122368 SHA256 dc3d8d257b02e85cfc98b7ab31d563cf767db901d8eb2193cf2691ace3e7d078 SHA512 6eccff095c130517e6f770e0a92216a4dbf5510eebf98f07ce74999464a3df6b8c2b2a7c1774ac5a67f4d0a51b45282f93ad022d4f0afc907f6dd27ba71a89b1 WHIRLPOOL 4748e4a50e529db44eebcf181dbe3bedd418c98be93523d84075b5d6ea0acabf4f8c893efcf477098115b003168a71c980838d8263b67996c5c3b7e3eeee6597 DIST test-unit-3.1.3.gem 121856 SHA256 b34ed36148329b1f4df9b3385259172c5435457f0da3d5494e3fcd0ae1f33d79 SHA512 3b2ab5e74940c9e02ca345212858ace4fec2266137da896efed50d87f53fb6076be11dcc05603b294bfe48a68ac2458c2b6bd437ddcf45ea7b0b1959b3c7fb89 WHIRLPOOL baba9eba099c6a599c8237dccef9749075b32a187041080c5230ad36f9354f175d9c96d7d2a02f7fcc4b18bb21cf628f0e3f06bc530914fd68cd4565e6a369ab +DIST test-unit-3.1.4.gem 122368 SHA256 9af970e9106b57672cccf917af6bc252e18ceef500d026eac360559f4560c4af SHA512 9e7b3d1a83b5d296d082281cf0f177ce6ab4347351cb358c199924bfc6bc2c56ed2c9a0701aac7dc056bede29087b91389a3e51c04e7f31852bfa6d90bac6b16 WHIRLPOOL 84911bbf8427d7575456257f4ac0f2fe6cb1862a4c9e68507e185529a65c4cca6fc1980b795a813bd886c3c7a4d389ca2435393539a13eb447d4515b45e72410 diff --git a/dev-ruby/test-unit/test-unit-3.1.4.ebuild b/dev-ruby/test-unit/test-unit-3.1.4.ebuild new file mode 100644 index 000000000000..85d1f67e8902 --- /dev/null +++ b/dev-ruby/test-unit/test-unit-3.1.4.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby19 ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.md doc/text/news.md" + +inherit ruby-fakegem + +# Assume for now that ruby22 is not eselected yet and only depend on +# yard for the other ruby implementations. Without this assumption +# bootstrapping ruby22 won't be possible due to the yard dependency +# tree. +#USE_RUBY="${USE_RUBY/ruby22/}" ruby_add_bdepend "doc? ( dev-ruby/yard )" +ruby_add_bdepend "doc? ( dev-ruby/yard )" + +DESCRIPTION="An xUnit family unit testing framework for Ruby" +HOMEPAGE="https://rubygems.org/gems/test-unit" + +LICENSE="|| ( Ruby GPL-2 ) PSF-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc test" + +# power_assert does not work with ruby19 but is not needed for backward +# compatibility: +# https://github.com/k-tsj/power_assert/issues/8#issuecomment-71363455 +USE_RUBY="${USE_RUBY/ruby19/}" ruby_add_rdepend "dev-ruby/power_assert" + +each_ruby_prepare() { + case ${RUBY} in + *ruby19) + # Remove metadata to avoid registering the unsupported + # power_assert dependency. + rm -f ../metadata || die + ;; + esac +} + +all_ruby_compile() { + all_fakegem_compile + + if use doc; then + yard doc --title ${PN} || die + fi +} + +each_ruby_test() { + ${RUBY} test/run-test.rb || die "testsuite failed" +} + +all_ruby_install() { + all_fakegem_install + + newbin "${FILESDIR}"/testrb-3 testrb-2 +} -- 2.26.2