summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-04-27 10:03:48 +0200
committerHans de Graaff <graaff@gentoo.org>2016-04-27 13:53:34 +0200
commit239edef9bdce1895ec218926e3f696c33f7baf10 (patch)
treee3ab34654e5170dd802fa82fefac7474c26f9c13 /dev-ruby
parentdev-ruby/flexmock: add 2.1.0 (diff)
downloadgentoo-239edef9bdce1895ec218926e3f696c33f7baf10.tar.gz
gentoo-239edef9bdce1895ec218926e3f696c33f7baf10.tar.bz2
gentoo-239edef9bdce1895ec218926e3f696c33f7baf10.zip
dev-ruby/maxitest: add 1.5.7
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/maxitest/Manifest1
-rw-r--r--dev-ruby/maxitest/maxitest-1.5.7.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest
index 80e3b2911913..64de962c6a88 100644
--- a/dev-ruby/maxitest/Manifest
+++ b/dev-ruby/maxitest/Manifest
@@ -1 +1,2 @@
DIST maxitest-1.5.6.tar.gz 13751 SHA256 629e8c27b35158eb4bbbfecb47ac50434f47d13ceb094bcf657df1389bfd2f3d SHA512 7228c0b39a374a1193be63959b827c5657420b9effe451971e46a3d29c80f71fb684801011d531855340c853400250e149ae1cf0d73bda1800facc2ea072c500 WHIRLPOOL 1878bf3069e4debfc317a3b5bb360be96be05ed22e7c9bbbafcb410018d1a2009c964eec16864ab02dd619bbb657e3bc067bc82d0acd5f3962a797fdde6db918
+DIST maxitest-1.5.7.tar.gz 13880 SHA256 bb36fe20c5d61fc4f2a4f63a390ec4b93e0912e144069ad1699bc85b3152c907 SHA512 89f405e5cba0150a1e019980219a2f3be6af214f57518d665f0bf562e61fac86bfbc34d1476b71387e596d5c58355dd6914ca4abd04e754ceff4b93b6277da7a WHIRLPOOL 4e360a5e0186ba5f78359ecb63438ddbc8aedd26232b9aae8a1aaa2b0c0a0c31a2a7391537abf993b4b7fbcfd329a1b9237980aa381a448c00416100a8278e20
diff --git a/dev-ruby/maxitest/maxitest-1.5.7.ebuild b/dev-ruby/maxitest/maxitest-1.5.7.ebuild
new file mode 100644
index 000000000000..24e7cf92db68
--- /dev/null
+++ b/dev-ruby/maxitest/maxitest-1.5.7.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 ~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.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
+}