diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-10-21 07:42:01 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-10-21 07:42:35 +0200 |
commit | 1ce70aa5d071685688dd170a5bb0b9437da7ec24 (patch) | |
tree | 78c247559442952a2dc02ac94867aab4fb2876b6 | |
parent | dev-ruby/kpeg: add 1.2.0 (diff) | |
download | gentoo-1ce70aa5d071685688dd170a5bb0b9437da7ec24.tar.gz gentoo-1ce70aa5d071685688dd170a5bb0b9437da7ec24.tar.bz2 gentoo-1ce70aa5d071685688dd170a5bb0b9437da7ec24.zip |
dev-ruby/zeitwerk: add 2.5.1
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-ruby/zeitwerk/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/zeitwerk/zeitwerk-2.5.1.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest index 490b660e389b..8918c49e797a 100644 --- a/dev-ruby/zeitwerk/Manifest +++ b/dev-ruby/zeitwerk/Manifest @@ -1 +1,2 @@ DIST zeitwerk-2.4.2.tar.gz 99974 BLAKE2B 5913561057a6d5cd9bfa4eb549770ca18de3aafa1549a40e5315cd1d71a2dec5f865e7bc79f6ab2a098e515a930c5f8c83b85c91d7dbe441fa8dfb08ffdbdb03 SHA512 774cc17a8732afea0a854ea22ec860fa5bca65e8743aa800017c06a251dfdb1d2c5af8e541cb56d22a4202a9faa42707ed2ad395d9472360cf64f46ce9b907f2 +DIST zeitwerk-2.5.1.tar.gz 107666 BLAKE2B d8049a1adfaa6b278b59298e46d4697b70121d0a599a286f91720b31a06cccd39424367fe9c1ffbb90b0862a9501115f808bcc4fd36f3a09081987ad706f89bd SHA512 4558a63f33d26f2aa05e5f6e417230902f14d4ade5bfb50cbd94d283b33e94e8486158f5b4c677c4dcd7b8bee51af165693593d303d1f07420fb5d4c72f918ea diff --git a/dev-ruby/zeitwerk/zeitwerk-2.5.1.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.5.1.ebuild new file mode 100644 index 000000000000..1186d588ec56 --- /dev/null +++ b/dev-ruby/zeitwerk/zeitwerk-2.5.1.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 +} |