From: Hans de Graaff Date: Sun, 7 Apr 2019 06:47:27 +0000 (+0200) Subject: dev-ruby/zeitwerk: initial import of 1.4.3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c76fce83741eacc65b2f889e033117aca8134b6;p=gentoo.git dev-ruby/zeitwerk: initial import of 1.4.3 Signed-off-by: Hans de Graaff Package-Manager: Portage-2.3.62, Repoman-2.3.11 --- diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest new file mode 100644 index 000000000000..9b05a8017bc3 --- /dev/null +++ b/dev-ruby/zeitwerk/Manifest @@ -0,0 +1 @@ +DIST zeitwerk-1.4.3.tar.gz 84202 BLAKE2B 8e14790f4a5b5122efacbe89a0d1ede5c9933564db40f3b498423b73852e91990e09321b3d2854ada8c57aa914bb596d1381ea697e751bc22d7b9ecf4e5653b8 SHA512 e3ba6dcaf5b85c117278e65f15559e7750062ba204b3cdeba4248eb4f153ad4aa09164db61671f6ea00846a9d89ec218b66338dbcbd2c376f4e7b28364533f55 diff --git a/dev-ruby/zeitwerk/metadata.xml b/dev-ruby/zeitwerk/metadata.xml new file mode 100644 index 000000000000..ac1e76fe49cb --- /dev/null +++ b/dev-ruby/zeitwerk/metadata.xml @@ -0,0 +1,17 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + fxn/zeitwerk + + + Zeitwerk implements constant autoloading with Ruby semantics. Each + gem and application may have their own independent autoloader, + with its own configuration, inflector, and logger. Supports + autoloading, preloading, reloading, and eager loading. + + diff --git a/dev-ruby/zeitwerk/zeitwerk-1.4.3.ebuild b/dev-ruby/zeitwerk/zeitwerk-1.4.3.ebuild new file mode 100644 index 000000000000..4a630717096c --- /dev/null +++ b/dev-ruby/zeitwerk/zeitwerk-1.4.3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +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="1" +KEYWORDS="~amd64" +IUSE="" + +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 +}