diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-12-09 06:59:54 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-12-09 07:10:36 +0100 |
commit | 2eb354bfe5a1a7a56844a73ca88c7c40504085da (patch) | |
tree | 55c1e5ab0fa9753f0d4e8e60dfd78b113e886c65 /dev-ruby/maxitest | |
parent | dev-vcs/bfg: remove old (diff) | |
download | gentoo-2eb354bfe5a1a7a56844a73ca88c7c40504085da.tar.gz gentoo-2eb354bfe5a1a7a56844a73ca88c7c40504085da.tar.bz2 gentoo-2eb354bfe5a1a7a56844a73ca88c7c40504085da.zip |
dev-ruby/maxitest: add 2.4.0
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-ruby/maxitest')
-rw-r--r-- | dev-ruby/maxitest/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/maxitest/maxitest-2.4.0.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest index 1a9a48990708..d36f5ea734b4 100644 --- a/dev-ruby/maxitest/Manifest +++ b/dev-ruby/maxitest/Manifest @@ -1,2 +1,3 @@ DIST maxitest-2.2.0.tar.gz 15147 SHA256 ef9b059f67528b53bc88356aaf77936f3e29373e002fdba44ae0ee20de765b0a SHA512 6b2ba017fed4d18469e1a6db8aacb50145a00fa75aa242926353b6e3765dc0c2db7b14cd5ce9923353f4f2dc6cbfaa24cee384761e131b4ee8cb31c7a004a37a WHIRLPOOL d2fc3c7b2190270c07e773b4ae5d68d4aa71169959cbcba0d586304acd9f8e1678f057401bff6ed41efa37bca4ad97563abc63c5cf2db5031beb486a14467b1f DIST maxitest-2.3.0.tar.gz 15395 SHA256 800806e66a223e3166002296e3a63294619d573d076d405eff66cf619b7730ae SHA512 e07c2aac3beaedfa6a7dca9293d519a63fdb323547ef650436c71f082403a9538b26429e747374c99b8364a68d69ac8a35ff79056196defe283130fb78110995 WHIRLPOOL 0997d96018be680752d09b0149b610048914a2213fba510767b7fa7c96279399be267b5bc23fcda84239a1ee3c62be1d7b326b55c7712e656b887283f97e9602 +DIST maxitest-2.4.0.tar.gz 15370 SHA256 4a67ee0d6120d634cf3baf0f5fa28434ef9a9e63624fa5ffccdd74fd750fe8e9 SHA512 41fc6e8eaaebad76278e19574c48e5192363ef466327e83cfd5a3490b98d157bb736556cde57c01180a353ac383e583fed6433443e24a5a5fb6159ed9821a323 WHIRLPOOL 2e2d2c05e5d5b0b0696dda494284fbfaf1483244355460116fe9bbe746dea63fe2199b058b905bf9f7d95df8e72e0d2796d4ba96486af5a2f7ce91d67624e0c4 diff --git a/dev-ruby/maxitest/maxitest-2.4.0.ebuild b/dev-ruby/maxitest/maxitest-2.4.0.ebuild new file mode 100644 index 000000000000..b4005208567b --- /dev/null +++ b/dev-ruby/maxitest/maxitest-2.4.0.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 ruby23" + +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 ~x86 ~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.11: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 +} |