diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-07-03 06:46:01 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-07-03 06:46:01 +0200 |
commit | e9bb8a3194edd6c7407bba0ad9cfaddfbd4d896f (patch) | |
tree | da51e0338f75826c9a554e85c46d22957a1af712 /dev-ruby/simplecov/simplecov-0.17.0.ebuild | |
parent | x11-terms/xfce4-terminal: Bump to 0.8.8 (diff) | |
download | gentoo-e9bb8a3194edd6c7407bba0ad9cfaddfbd4d896f.tar.gz gentoo-e9bb8a3194edd6c7407bba0ad9cfaddfbd4d896f.tar.bz2 gentoo-e9bb8a3194edd6c7407bba0ad9cfaddfbd4d896f.zip |
dev-ruby/simplecov: add 0.17.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/simplecov/simplecov-0.17.0.ebuild')
-rw-r--r-- | dev-ruby/simplecov/simplecov-0.17.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/simplecov/simplecov-0.17.0.ebuild b/dev-ruby/simplecov/simplecov-0.17.0.ebuild new file mode 100644 index 000000000000..b0bba4411b73 --- /dev/null +++ b/dev-ruby/simplecov/simplecov-0.17.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_GEMSPEC="simplecov.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Code coverage with a configuration library and merging across test suites" +HOMEPAGE="https://www.ruby-toolbox.com/projects/simplecov https://github.com/colszowka/simplecov" +SRC_URI="https://github.com/colszowka/simplecov/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +KEYWORDS="~amd64" +SLOT="0.8" +IUSE="doc" + +ruby_add_rdepend "|| ( dev-ruby/json:2 >=dev-ruby/json-1.8:0 ) + dev-ruby/simplecov-html:0.10 + >=dev-ruby/docile-1.1:0" + +ruby_add_bdepend "test? ( + dev-ruby/rspec:3 + dev-ruby/test-unit:2 +)" + +# There are also cucumber tests that require poltergeist and unpackaged phantomjs gem. + +all_ruby_prepare() { + sed -i -e '/[Bb]undler/ s:^:#:' spec/helper.rb features/support/env.rb || die + + # Avoid test depending on spawning ruby and having timing issues + sed -i -e '/blocks other processes/askip "gentoo"' spec/result_merger_spec.rb || die +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec spec/*spec.rb || die + + #${RUBY} -S cucumber features || die +} |