summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-11-15 08:53:35 +0100
committerHans de Graaff <graaff@gentoo.org>2015-11-15 08:53:51 +0100
commit2362b48eac8bc0967d35c138f05ade3f8aa74959 (patch)
tree21928f8c5e4c47c590bd9fc770800e8ad840409f /dev-ruby/maxitest
parentnet-misc/spice-gtk: version bump to 0.30 (diff)
downloadgentoo-2362b48eac8bc0967d35c138f05ade3f8aa74959.tar.gz
gentoo-2362b48eac8bc0967d35c138f05ade3f8aa74959.tar.bz2
gentoo-2362b48eac8bc0967d35c138f05ade3f8aa74959.zip
dev-ruby/maxitest: initial import of 1.5.4
New test dependency for dev-ruby/rack-cache. Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/maxitest')
-rw-r--r--dev-ruby/maxitest/Manifest1
-rw-r--r--dev-ruby/maxitest/maxitest-1.5.4.ebuild49
-rw-r--r--dev-ruby/maxitest/metadata.xml8
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest
new file mode 100644
index 000000000000..42634bc5a940
--- /dev/null
+++ b/dev-ruby/maxitest/Manifest
@@ -0,0 +1 @@
+DIST maxitest-1.5.4.tar.gz 13723 SHA256 d03018f2a0d0414b7ce9df7a1326e6b0d615323b109084f3191472027d60a24c SHA512 b2b7c0ac561f7f62f94a86d1f84b1aa4e9dfe65840607ebc1178055e82a759aed74637a721c7eeb234e5efdf52ef6386e36097dcb165bbd001758a96e588d8e6 WHIRLPOOL c3fbc53e5e23da0e85fcdab9578af13b278dca9bea6738ca9ebe6eeecb8e72783e5c147d4e79dbe03185e365856dbdcbadf8a936916393946fd0f9ae5b3bf097
diff --git a/dev-ruby/maxitest/maxitest-1.5.4.ebuild b/dev-ruby/maxitest/maxitest-1.5.4.ebuild
new file mode 100644
index 000000000000..4003ed7ccaf9
--- /dev/null
+++ b/dev-ruby/maxitest/maxitest-1.5.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 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"
+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
+}
diff --git a/dev-ruby/maxitest/metadata.xml b/dev-ruby/maxitest/metadata.xml
new file mode 100644
index 000000000000..b4d509e7e61e
--- /dev/null
+++ b/dev-ruby/maxitest/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ruby</herd>
+ <upstream>
+ <remote-id type="github">grosser/maxitest</remote-id>
+ </upstream>
+</pkgmetadata>