dev-ruby/zeitwerk: initial import of 1.4.3
authorHans de Graaff <graaff@gentoo.org>
Sun, 7 Apr 2019 06:47:27 +0000 (08:47 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 7 Apr 2019 06:47:27 +0000 (08:47 +0200)
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

dev-ruby/zeitwerk/Manifest [new file with mode: 0644]
dev-ruby/zeitwerk/metadata.xml [new file with mode: 0644]
dev-ruby/zeitwerk/zeitwerk-1.4.3.ebuild [new file with mode: 0644]

diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest
new file mode 100644 (file)
index 0000000..9b05a80
--- /dev/null
@@ -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 (file)
index 0000000..ac1e76f
--- /dev/null
@@ -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 (file)
index 0000000..4a63071
--- /dev/null
@@ -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
+}