summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-01-07 07:11:59 +0100
committerHans de Graaff <graaff@gentoo.org>2016-01-07 07:11:59 +0100
commitc6a6f0087ca4c0517e327993b2c2493d3855768b (patch)
tree255a76b24d5f2262ba06b05c3c5a7ff433dd1be7
parentdev-ruby/childprocess: add 0.5.9 (diff)
downloadgentoo-c6a6f0087ca4c0517e327993b2c2493d3855768b.tar.gz
gentoo-c6a6f0087ca4c0517e327993b2c2493d3855768b.tar.bz2
gentoo-c6a6f0087ca4c0517e327993b2c2493d3855768b.zip
dev-ruby/maxitest: add 1.5.5
Package-Manager: portage-2.2.26
-rw-r--r--dev-ruby/maxitest/Manifest1
-rw-r--r--dev-ruby/maxitest/maxitest-1.5.5.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest
index 42634bc5a94..fe3dd2d0edf 100644
--- a/dev-ruby/maxitest/Manifest
+++ b/dev-ruby/maxitest/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-ruby/maxitest/maxitest-1.5.5.ebuild b/dev-ruby/maxitest/maxitest-1.5.5.ebuild
new file mode 100644
index 00000000000..d837e7313c1
--- /dev/null
+++ b/dev-ruby/maxitest/maxitest-1.5.5.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"
+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
+}