forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.3.0
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST maxitest-2.2.0.tar.gz 15147 SHA256 ef9b059f67528b53bc88356aaf77936f3e29373e002fdba44ae0ee20de765b0a SHA512 6b2ba017fed4d18469e1a6db8aacb50145a00fa75aa242926353b6e3765dc0c2db7b14cd5ce9923353f4f2dc6cbfaa24cee384761e131b4ee8cb31c7a004a37a WHIRLPOOL d2fc3c7b2190270c07e773b4ae5d68d4aa71169959cbcba0d586304acd9f8e1678f057401bff6ed41efa37bca4ad97563abc63c5cf2db5031beb486a14467b1f | ||
DIST maxitest-2.3.0.tar.gz 15395 SHA256 800806e66a223e3166002296e3a63294619d573d076d405eff66cf619b7730ae SHA512 e07c2aac3beaedfa6a7dca9293d519a63fdb323547ef650436c71f082403a9538b26429e747374c99b8364a68d69ac8a35ff79056196defe283130fb78110995 WHIRLPOOL 0997d96018be680752d09b0149b610048914a2213fba510767b7fa7c96279399be267b5bc23fcda84239a1ee3c62be1d7b326b55c7712e656b887283f97e9602 | ||
DIST maxitest-2.4.0.tar.gz 15370 SHA256 4a67ee0d6120d634cf3baf0f5fa28434ef9a9e63624fa5ffccdd74fd750fe8e9 SHA512 41fc6e8eaaebad76278e19574c48e5192363ef466327e83cfd5a3490b98d157bb736556cde57c01180a353ac383e583fed6433443e24a5a5fb6159ed9821a323 WHIRLPOOL 2e2d2c05e5d5b0b0696dda494284fbfaf1483244355460116fe9bbe746dea63fe2199b058b905bf9f7d95df8e72e0d2796d4ba96486af5a2f7ce91d67624e0c4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ~x86 ~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.11: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 | ||
} |