diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-01-27 07:15:24 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-01-27 07:36:33 +0100 |
commit | c394368a5568d36b0cfe8670cc3d68c7c325405c (patch) | |
tree | 0f94500799498ad5a14adcb004fde4b0dde36402 /dev-ruby/maxitest | |
parent | package.mask: drop obsolete mask on Boost versions, that were removed (diff) | |
download | gentoo-c394368a5568d36b0cfe8670cc3d68c7c325405c.tar.gz gentoo-c394368a5568d36b0cfe8670cc3d68c7c325405c.tar.bz2 gentoo-c394368a5568d36b0cfe8670cc3d68c7c325405c.zip |
dev-ruby/maxitest: add 1.5.6
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/maxitest')
-rw-r--r-- | dev-ruby/maxitest/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/maxitest/maxitest-1.5.6.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest index fe3dd2d0edf6..d4df48bda66f 100644 --- a/dev-ruby/maxitest/Manifest +++ b/dev-ruby/maxitest/Manifest @@ -1,2 +1,3 @@ DIST maxitest-1.5.4.tar.gz 13723 SHA256 d03018f2a0d0414b7ce9df7a1326e6b0d615323b109084f3191472027d60a24c SHA512 b2b7c0ac561f7f62f94a86d1f84b1aa4e9dfe65840607ebc1178055e82a759aed74637a721c7eeb234e5efdf52ef6386e36097dcb165bbd001758a96e588d8e6 WHIRLPOOL c3fbc53e5e23da0e85fcdab9578af13b278dca9bea6738ca9ebe6eeecb8e72783e5c147d4e79dbe03185e365856dbdcbadf8a936916393946fd0f9ae5b3bf097 DIST maxitest-1.5.5.tar.gz 13753 SHA256 5b8da0bca9b099da51f2abd14c6490b178debb4d79e545b377ee29cf4110cf31 SHA512 0136597d86a5d760c221e96bf84dfe36ae18b32450d0f955760903a8eb97232bf112e2c11528f9cb293972e6a1e0531fa459c132c8551a2861d57e7de9f5a642 WHIRLPOOL bf99b3402814d04254307b917d19f97ff32d6a43c75a71cef8994ac629f98cd23e909b69a6eb5404cfb707cde9175a8a95efe1aaf1a011952db908c8245a261e +DIST maxitest-1.5.6.tar.gz 13751 SHA256 629e8c27b35158eb4bbbfecb47ac50434f47d13ceb094bcf657df1389bfd2f3d SHA512 7228c0b39a374a1193be63959b827c5657420b9effe451971e46a3d29c80f71fb684801011d531855340c853400250e149ae1cf0d73bda1800facc2ea072c500 WHIRLPOOL 1878bf3069e4debfc317a3b5bb360be96be05ed22e7c9bbbafcb410018d1a2009c964eec16864ab02dd619bbb657e3bc067bc82d0acd5f3962a797fdde6db918 diff --git a/dev-ruby/maxitest/maxitest-1.5.6.ebuild b/dev-ruby/maxitest/maxitest-1.5.6.ebuild new file mode 100644 index 000000000000..d12ee78a2687 --- /dev/null +++ b/dev-ruby/maxitest/maxitest-1.5.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="Readme.md" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit versionator ruby-fakegem + +DESCRIPTION="Minitest + all the features you always wanted" +HOMEPAGE="https://github.com/grosser/maxitest" +SRC_URI="https://github.com/grosser/maxitest/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="1" +KEYWORDS="~amd64 ~arm ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_rdepend "<dev-ruby/minitest-5.9.0:5" + +ruby_add_bdepend "test? ( dev-ruby/bundler )" + +all_ruby_prepare() { + rm -f Gemfile.lock || die + # Remove developer-only gems from the gemspec and avoid git issues + sed -i -e '/\(bump\|wwtd\)/ s:^:#:' \ + -e 's/git ls-files/find/' \ + ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/byebug/ s:^:#:' Gemfile || die + +} + +each_ruby_prepare() { + # Use the correct target + sed -i -e '/sh/ s:ruby:'${RUBY}':' \ + -e '/sh/ s:mtest:'${RUBY}' -S mtest:' \ + spec/maxitest_spec.rb || die +} + +each_ruby_test() { + PATH="${S}/bin:${PATH}" RSPEC_VERSION=3 ruby-ng_rspec spec +} |