summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-12-30 07:34:13 +0100
committerHans de Graaff <graaff@gentoo.org>2021-12-30 07:34:13 +0100
commit683d93c8e76b3dbc208a28887106726cd5065f27 (patch)
treef3e44033988448adcc51cd5ca2ee9dbfb127ad23 /dev-ruby
parentdev-ruby/rmagick: add 4.2.4 (diff)
downloadgentoo-683d93c8e76b3dbc208a28887106726cd5065f27.tar.gz
gentoo-683d93c8e76b3dbc208a28887106726cd5065f27.tar.bz2
gentoo-683d93c8e76b3dbc208a28887106726cd5065f27.zip
dev-ruby/zeitwerk: add 2.5.2
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/zeitwerk/Manifest1
-rw-r--r--dev-ruby/zeitwerk/zeitwerk-2.5.2.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest
index 8918c49e797a..474c756f26df 100644
--- a/dev-ruby/zeitwerk/Manifest
+++ b/dev-ruby/zeitwerk/Manifest
@@ -1,2 +1,3 @@
DIST zeitwerk-2.4.2.tar.gz 99974 BLAKE2B 5913561057a6d5cd9bfa4eb549770ca18de3aafa1549a40e5315cd1d71a2dec5f865e7bc79f6ab2a098e515a930c5f8c83b85c91d7dbe441fa8dfb08ffdbdb03 SHA512 774cc17a8732afea0a854ea22ec860fa5bca65e8743aa800017c06a251dfdb1d2c5af8e541cb56d22a4202a9faa42707ed2ad395d9472360cf64f46ce9b907f2
DIST zeitwerk-2.5.1.tar.gz 107666 BLAKE2B d8049a1adfaa6b278b59298e46d4697b70121d0a599a286f91720b31a06cccd39424367fe9c1ffbb90b0862a9501115f808bcc4fd36f3a09081987ad706f89bd SHA512 4558a63f33d26f2aa05e5f6e417230902f14d4ade5bfb50cbd94d283b33e94e8486158f5b4c677c4dcd7b8bee51af165693593d303d1f07420fb5d4c72f918ea
+DIST zeitwerk-2.5.2.tar.gz 108139 BLAKE2B d4277dc79729e39bd63b066b12ad4d91d9457e8e7a836c2e24606f6d343c85ce59febaa0425ab10f96d8d327935beede285a5ae52cfeff37210b36b0bcaf22db SHA512 0e8be7500163761a75518b002eb8ca9e41d0d073f0d03443af4a57fef07ee647de3faafaf79791328c4b2b9a6f5898e1038b310b697485a363af486f36509393
diff --git a/dev-ruby/zeitwerk/zeitwerk-2.5.2.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.5.2.ebuild
new file mode 100644
index 000000000000..1186d588ec56
--- /dev/null
+++ b/dev-ruby/zeitwerk/zeitwerk-2.5.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Efficient and thread-safe code loader for Ruby"
+HOMEPAGE="https://github.com/fxn/zeitwerk"
+SRC_URI="https://github.com/fxn/zeitwerk/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/bundler )"
+
+all_ruby_prepare() {
+ rm -f Gemfile.lock || die
+ sed -i -e '/\(focus\|reporters\|Reporters\)/ s:^:#:' Gemfile test/test_helper.rb || die
+
+ sed -i -e 's:require_relative "lib:require "./lib:' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -S bundle exec rake test || die
+}