diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-12-01 08:44:01 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-12-01 08:44:01 +0100 |
commit | 0d51d33ecc238f96de5fac7b23b7c7b1eb85f027 (patch) | |
tree | b5a9d3e557f38a3719f56701bdde7248d8df4a49 /dev-ruby | |
parent | dev-ruby/maxitest: cleanup (diff) | |
download | gentoo-0d51d33ecc238f96de5fac7b23b7c7b1eb85f027.tar.gz gentoo-0d51d33ecc238f96de5fac7b23b7c7b1eb85f027.tar.bz2 gentoo-0d51d33ecc238f96de5fac7b23b7c7b1eb85f027.zip |
dev-ruby/maxitest: add 2.3.0
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/maxitest/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/maxitest/maxitest-2.3.0.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest index fb5f0e2c0213..1a9a48990708 100644 --- a/dev-ruby/maxitest/Manifest +++ b/dev-ruby/maxitest/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-ruby/maxitest/maxitest-2.3.0.ebuild b/dev-ruby/maxitest/maxitest-2.3.0.ebuild new file mode 100644 index 000000000000..b4005208567b --- /dev/null +++ b/dev-ruby/maxitest/maxitest-2.3.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 +} |