summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-06-14 07:04:04 +0200
committerHans de Graaff <graaff@gentoo.org>2022-06-14 07:04:04 +0200
commit9ee1ea81dd1178590fb394131585c2d3552e48fc (patch)
tree0b4b5cdebe91f2b5d139134913c91044907aaded /dev-ruby/zeitwerk
parentdev-ruby/sqlite3: add 1.4.3 (diff)
downloadgentoo-9ee1ea81dd1178590fb394131585c2d3552e48fc.tar.gz
gentoo-9ee1ea81dd1178590fb394131585c2d3552e48fc.tar.bz2
gentoo-9ee1ea81dd1178590fb394131585c2d3552e48fc.zip
dev-ruby/zeitwerk: add 2.6.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/zeitwerk')
-rw-r--r--dev-ruby/zeitwerk/Manifest1
-rw-r--r--dev-ruby/zeitwerk/zeitwerk-2.6.0.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest
index 8126e14808a4..f3a671bf1644 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.4.tar.gz 109202 BLAKE2B 4c1302bdb6ac30afbb23ea06ef2ac2ecea9c8139c36f1b766ec6f62bb6a77faf1efa3f670cb31b5073a6dc36d6a0bd8d66a937d8b84b12438411a7f2df29eeed SHA512 f7a4b88c030b2eeae5ba07c6e01900fa66312a58e5c9da3d13a293d0959d67bbcfb385de5790e1764188752dfc9de161c202b35e0e35ed6e0cca7bbc2c2f6c83
+DIST zeitwerk-2.6.0.tar.gz 112854 BLAKE2B 5549624fdf793fa37bd8c45679246e0297ba96d95175a63f0cb7093fae85804d1eac9506ad539a256e9b3237816ec0ef29ecd4461bdfbef52bfbd1c6964d2f8d SHA512 750aade9b995b3e889d15bd4d6bd6bf267999ee1fd4b44bd9a32db083f19e86d0ce12f673f84f2b79629e1fee409f587fb2829e76ac23a23898dbb18cbb58b0b
diff --git a/dev-ruby/zeitwerk/zeitwerk-2.6.0.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.6.0.ebuild
new file mode 100644
index 000000000000..4f75e8c49b53
--- /dev/null
+++ b/dev-ruby/zeitwerk/zeitwerk-2.6.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+
+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 ~loong ~ppc ~ppc64 ~riscv ~s390 ~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
+}