commit:     02ac170b2f4748fd1be31267184323e9aa465e18
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  5 05:24:14 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Jul  5 05:29:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ac170b

dev-ruby/maxitest: add 5.6.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/maxitest/Manifest              |  1 +
 dev-ruby/maxitest/maxitest-5.6.0.ebuild | 51 +++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest
index a0724376f69b..dcbace3f9edc 100644
--- a/dev-ruby/maxitest/Manifest
+++ b/dev-ruby/maxitest/Manifest
@@ -1,3 +1,4 @@
 DIST maxitest-4.4.1.tar.gz 62757 BLAKE2B 
0023472200643dcc17aa7fc3720ebdaccb988628eedd55d69c47a0702b4700760dcc9178f1d63a29d8b0a461ceb7195f9d13579cf0393a3ca669515bcf77239a
 SHA512 
927c5619541f13b2af064f1adb01670ec43570252a62d32b98674b7d4dd72ebc02594c000f6dfae7b9de275086df23e418f13c4c21595d47f429b86d0941dbc2
 DIST maxitest-5.4.0.tar.gz 64727 BLAKE2B 
99751c419386ab1b2a10233371c151f8d7a55315dca223e65a72ccab5b6aabb655c2e853190dc94c09dacb77542a0cdadc4121f45207d1d756f5d8b0d727f457
 SHA512 
7bdff3081b294fa43fc9a03352eb8c3be4b1a0010de5ea6a3027a9207ffcee09aeb69cec5faf430cba8ed094e76e75e6b46c6ab60f749cde1f4fcfe763ab1242
 DIST maxitest-5.5.0.tar.gz 65102 BLAKE2B 
46c7d0c9bcc794066316cc244f4628771a14224903416c4547b9c6d3f58aabae3597db93034a35f40140ee0bc443419d7e856d7a99f91565e8d6c3bbaa71a86c
 SHA512 
331fd82a069494fbf2d1e2874de1c4bc5fe9b1ee430505e43aab4d1049f2e9dcf9c50bfcee8f8b897b881c2e859dbd7fe66d9d98c13b0cbc637cd8f87715abf7
+DIST maxitest-5.6.0.tar.gz 65326 BLAKE2B 
c1835499216d50f8edce61507b83b7129cdf73ceb9b8226964b7e9da076255515edbcf09dca7618b4c033c97310251f6462bcfdab04f622c49cf507191d18ace
 SHA512 
42345419ee462cc62a18e7f40bc1cf1f2d5aecd6dabd61f1f4b49604bcaf6ba5597055195a3343044401c8574d626a43c0de772bc196ec2e8bd452aeddfef763

diff --git a/dev-ruby/maxitest/maxitest-5.6.0.ebuild 
b/dev-ruby/maxitest/maxitest-5.6.0.ebuild
new file mode 100644
index 000000000000..62888d18a215
--- /dev/null
+++ b/dev-ruby/maxitest/maxitest-5.6.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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="test"
+
+ruby_add_rdepend ">=dev-ruby/minitest-5.14.0:* <dev-ruby/minitest-5.25.0:*"
+
+ruby_add_bdepend "test? ( dev-ruby/bundler >=dev-ruby/minitest-5.21.0 )"
+
+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 -e '/\(debug\|bump\)/ s:^:#:' \
+               -i 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
+}

Reply via email to