diff options
-rw-r--r-- | dev-ruby/test_declarative/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/test_declarative/test_declarative-0.0.6.ebuild | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/test_declarative/Manifest b/dev-ruby/test_declarative/Manifest index 767b650d28d4..e8b052400d8e 100644 --- a/dev-ruby/test_declarative/Manifest +++ b/dev-ruby/test_declarative/Manifest @@ -1 +1,2 @@ DIST test_declarative-0.0.5.tgz 2114 BLAKE2B 6856e3bb734354f75298107e243bc461143176797e98d69f5c67a6d121a6556310d46d4676d32bbc5317d39e0c48fa4f4cff1cbeb3e31ec5834ed406d7cba33b SHA512 69641a56c38403a86a8562910aa5ab433476351cc0e5a1f2a640030bfb4f82b96bf724d911ce46ff75dfe934de50d6549304088ee85d5689990e0ce5d263c160 +DIST test_declarative-0.0.6.tgz 3586 BLAKE2B de8e4b011de9ce0773e2c76887d6cf7d888c2f799a07e6dda024b301594edc37ccf2c386c366c0a13d81a1f0697fe7be92932db7d66e5ed482d529fac4b9ce78 SHA512 f147fef7f3ac912c7b1cb2826cfc7cb5abf4cba92ea4f7accc2b1ba3a4f0775bff5ae06e80370144b7b1e7d03e2f3129e268c5d7056ee2aca9d77047a1b5a1c3 diff --git a/dev-ruby/test_declarative/test_declarative-0.0.6.ebuild b/dev-ruby/test_declarative/test_declarative-0.0.6.ebuild new file mode 100644 index 000000000000..970e137404c4 --- /dev/null +++ b/dev-ruby/test_declarative/test_declarative-0.0.6.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ruby22, ruby23: fails due to minitest incompatabilities. +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit ruby-fakegem + +DESCRIPTION="Simply adds a declarative test method syntax to test/unit" +HOMEPAGE="https://github.com/svenfuchs/test_declarative" +SRC_URI="https://github.com/svenfuchs/test_declarative/tarball/v${PV} -> ${P}.tgz" +RUBY_S="svenfuchs-test_declarative-*" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/minitest:5 )" + +all_ruby_prepare() { + sed -i -e '/rake/ s/12.0.0/12/' Gemfile || die +} + +each_ruby_test() { + # There are other gemfiles but their setup seems broken atm. + for gemfile in Gemfile ; do + einfo "Running tests with ${gemfile}" + BUNDLE_GEMFILE=${gemfile} ${RUBY} -S bundle exec rake test || die + done +} |