dev-ruby/simplecov: add 0.17.0
authorHans de Graaff <graaff@gentoo.org>
Wed, 3 Jul 2019 04:46:01 +0000 (06:46 +0200)
committerHans de Graaff <graaff@gentoo.org>
Wed, 3 Jul 2019 04:46:01 +0000 (06:46 +0200)
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

dev-ruby/simplecov/Manifest
dev-ruby/simplecov/simplecov-0.17.0.ebuild [new file with mode: 0644]

index a6fd24164029cc7634cf707ddeb47a27013eda06..b6bdc3d5fc085ff6edb4d10630192c396b617077 100644 (file)
@@ -1 +1,2 @@
 DIST simplecov-0.16.1.tar.gz 62296 BLAKE2B f9ebe2c7ec3d8b5bb80f642be3e9803210f9af334a2e7eacc2d1339567750027bf0505106e9fd641c42b3ad41e5e74ebbe730d8ff80947b1ec2ff23f6ee8fef1 SHA512 5b3c16bcdcbfcbd5282bd91375d1593292ad421a73b88cbdf18fc8f57364e20e1eec44bb084be3619684f9871612ca81f790eea8eec98b61cf523bf38b4a997f
+DIST simplecov-0.17.0.tar.gz 64354 BLAKE2B 640d2b312dd8202ddc13c2f33bfbd325441d4fd6502d8c738c15386fbac90a233043de1386c3bc57649b84a699187b71211c1b529071bae387451a16e5604ad9 SHA512 b477c215bfccafe0f24245078a211d6f7355098fc862b6dddf9c44cfaf9a352157535c628d31da4049323c5c7469be2e33566f381de5bbbb690a430d5d5cf5b6
diff --git a/dev-ruby/simplecov/simplecov-0.17.0.ebuild b/dev-ruby/simplecov/simplecov-0.17.0.ebuild
new file mode 100644 (file)
index 0000000..b0bba44
--- /dev/null
@@ -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
+}