summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-04-07 08:47:27 +0200
committerHans de Graaff <graaff@gentoo.org>2019-04-07 08:47:27 +0200
commit7c76fce83741eacc65b2f889e033117aca8134b6 (patch)
treedf6896794d28ef1beb72b7243877ad78d74db64c /dev-ruby/zeitwerk
parentdev-ruby/backports: add 3.13.0 (diff)
downloadgentoo-7c76fce83741eacc65b2f889e033117aca8134b6.tar.gz
gentoo-7c76fce83741eacc65b2f889e033117aca8134b6.tar.bz2
gentoo-7c76fce83741eacc65b2f889e033117aca8134b6.zip
dev-ruby/zeitwerk: initial import of 1.4.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/zeitwerk')
-rw-r--r--dev-ruby/zeitwerk/Manifest1
-rw-r--r--dev-ruby/zeitwerk/metadata.xml17
-rw-r--r--dev-ruby/zeitwerk/zeitwerk-1.4.3.ebuild32
3 files changed, 50 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fxn/zeitwerk</remote-id>
+ </upstream>
+ <longdescription>
+ 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.
+ </longdescription>
+</pkgmetadata>
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
+}