diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-10-21 07:08:29 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-10-21 07:08:29 +0200 |
commit | cc3653096419cc8fa71b817b45232a9c8727b21d (patch) | |
tree | 18ff7bd8fa6adff458c9f56b6eaa7b27af535e27 /dev-ruby/maxitest | |
parent | dev-ruby/irb: add 1.8.3 (diff) | |
download | gentoo-cc3653096419cc8fa71b817b45232a9c8727b21d.tar.gz gentoo-cc3653096419cc8fa71b817b45232a9c8727b21d.tar.bz2 gentoo-cc3653096419cc8fa71b817b45232a9c8727b21d.zip |
dev-ruby/maxitest: add 5.3.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/maxitest')
-rw-r--r-- | dev-ruby/maxitest/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/maxitest/maxitest-5.3.1.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest index d95eb4049ea1..70da69864011 100644 --- a/dev-ruby/maxitest/Manifest +++ b/dev-ruby/maxitest/Manifest @@ -1,2 +1,3 @@ DIST maxitest-4.4.1.tar.gz 62757 BLAKE2B 0023472200643dcc17aa7fc3720ebdaccb988628eedd55d69c47a0702b4700760dcc9178f1d63a29d8b0a461ceb7195f9d13579cf0393a3ca669515bcf77239a SHA512 927c5619541f13b2af064f1adb01670ec43570252a62d32b98674b7d4dd72ebc02594c000f6dfae7b9de275086df23e418f13c4c21595d47f429b86d0941dbc2 DIST maxitest-5.2.0.tar.gz 63610 BLAKE2B 98efc803f43d02cfdec0431279446e555650928442593be436e0ebfcb0d21e505e69b9e26fd8560b12c4feb2ce307d9d46954ff8a82a80b328c2d0442c451f5a SHA512 10251961613a6a014c868c3fd2a8c4c51253b2dee058561450e88ef628de25b6042b17d04d7338afd400ca30e8c3c12923f0976ec28578b726630699d2a0d5b5 +DIST maxitest-5.3.1.tar.gz 64755 BLAKE2B 8de322902638a284dadcf269fc16d82ee70a4b5fe4211c1859ce832a8b424c98347b005f103e9a2342df8384591ff98b23171bf2f61285177aa3bf1a0520bac9 SHA512 a287f880a1eb8695e716654c3921ffcf27430657285ec29002834145f87db620ae481f9dd5c023edec0473ce947c366eaeb78ddbbf556d26e08605f0b9341f69 diff --git a/dev-ruby/maxitest/maxitest-5.3.1.ebuild b/dev-ruby/maxitest/maxitest-5.3.1.ebuild new file mode 100644 index 000000000000..254679bd2a01 --- /dev/null +++ b/dev-ruby/maxitest/maxitest-5.3.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit 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 ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/minitest-5.14.0:* <dev-ruby/minitest-5.20.0:*" + +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 -e 's:_relative ": "./:' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/\(debug\|bump\)/ s:^:#:' Gemfile || die + + sed -e '/shows backtrace for/askip' \ + -e '/describe.*line/ s/describe/xdescribe/' \ + -e '/describe.*color/ s/describe/xdescribe/' \ + -i spec/maxitest_spec.rb || die +} + +each_ruby_prepare() { + # Use the correct target + sed -e '/\(run_cmd\|sh\)/ s:ruby:'${RUBY}':' \ + -e '/\(run_cmd\|sh\)/ s:mtest:'${RUBY}' -S bin/mtest:' \ + -i spec/maxitest_spec.rb || die +} + +each_ruby_test() { + PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" RSPEC_VERSION=3 ruby-ng_rspec spec +} |