summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-10-31 07:30:35 +0100
committerHans de Graaff <graaff@gentoo.org>2020-10-31 08:59:21 +0100
commit8bbae98de715fae980e2b44f39e69485eb85def3 (patch)
treee07c7bcc49bbc6ac48581308cdbce08391020dd3 /dev-ruby/zeitwerk
parentdev-ruby/sys-uname: add 1.2.2 (diff)
downloadgentoo-8bbae98de715fae980e2b44f39e69485eb85def3.tar.gz
gentoo-8bbae98de715fae980e2b44f39e69485eb85def3.tar.bz2
gentoo-8bbae98de715fae980e2b44f39e69485eb85def3.zip
dev-ruby/zeitwerk: add 2.4.1
Package-Manager: Portage-3.0.8, Repoman-3.0.2 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.4.1.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest
index 3a5dae206b65..81bc3baee544 100644
--- a/dev-ruby/zeitwerk/Manifest
+++ b/dev-ruby/zeitwerk/Manifest
@@ -1,2 +1,3 @@
DIST zeitwerk-2.3.1.tar.gz 97616 BLAKE2B d5b387f9a02c5f0250b709d144bc833a0f20164ab3065483cba177078fc04ada7fda99bbe5efa7c6481ae6c21006b6d9a73a31e18f40b19f9183efcf7f0f76cf SHA512 b0f782afde6f3a60e6dc3440316689ba39542e3c9d57129a433a0ea967869ca32d79ab1c522d84091b29a698e80ced31f94c9d12592f310945c4267d1e72b5f0
DIST zeitwerk-2.4.0.tar.gz 98493 BLAKE2B 60b03153fc90b371d4b1ef59c7f61dd2f577a39ddcf946d8b1a52a2b982164260bc1fe86f79cb9c7937151e93d38a4dfbad7876d384d88b7f43161e1fd66c4e5 SHA512 2538cda71d5e1d381d8d455eba5e6fa115096ec36765d5ad11ee9f33d34d0d08ab594e6788f92053f76d239ec9b52027cb97c07e19d96852f4dc8767dc8e3057
+DIST zeitwerk-2.4.1.tar.gz 98440 BLAKE2B 619673331f866b1e566603727189cac02fb08e856ca10504c97dd6dcc2cff8e24d0b2bb6b462f62dc88696b96beb1df04161f72da691118c0d8414313d2ba290 SHA512 12d513fd16532ce510d83cf32710d734d24002bd5e77e0a37157e6521f3af67d379e915498c61114b5f9943763b59bbf38b7b6b2ea82957858129a6120c756bd
diff --git a/dev-ruby/zeitwerk/zeitwerk-2.4.1.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.4.1.ebuild
new file mode 100644
index 000000000000..827d557e2223
--- /dev/null
+++ b/dev-ruby/zeitwerk/zeitwerk-2.4.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+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 ~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
+}