commit:     1a8ddf427823a4f05080492280b68076ec240143
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  2 08:52:55 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Apr  2 08:57:47 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a8ddf42

dev-ruby/memo_wise: initial import of 1.6.0

New dependency for www-apps/nanoc.

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/memo_wise/Manifest               |  1 +
 dev-ruby/memo_wise/memo_wise-1.6.0.ebuild | 35 +++++++++++++++++++++++++++++++
 dev-ruby/memo_wise/metadata.xml           | 11 ++++++++++
 3 files changed, 47 insertions(+)

diff --git a/dev-ruby/memo_wise/Manifest b/dev-ruby/memo_wise/Manifest
new file mode 100644
index 000000000000..dfe88f6b6ca9
--- /dev/null
+++ b/dev-ruby/memo_wise/Manifest
@@ -0,0 +1 @@
+DIST memo_wise-1.6.0.tar.gz 184843 BLAKE2B 
84b9cd5a2f757dc82cfb38359b39d26d60018fabc425c018b5537e61a5620dcdf0caf2863a8165fdf5f7ed5bc85400cae43b6ebbb3911ab7ce47160d7295240e
 SHA512 
8a8a3a3a6c3a7dd9e518efed3b990917ad266e42266d30c80dbed90b279ad793ec795c080a1d080c7a23e2caec7e31e55388df802795ac1e5f7fb5e3ced93c03

diff --git a/dev-ruby/memo_wise/memo_wise-1.6.0.ebuild 
b/dev-ruby/memo_wise/memo_wise-1.6.0.ebuild
new file mode 100644
index 000000000000..90f908079563
--- /dev/null
+++ b/dev-ruby/memo_wise/memo_wise-1.6.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+RUBY_FAKEGEM_GEMSPEC="memo_wise.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="The wise choice for Ruby memoization"
+HOMEPAGE="https://github.com/panorama-ed/memo_wise";
+SRC_URI="https://github.com/panorama-ed/memo_wise/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+all_ruby_prepare() {
+       sed -i -e '/bundler/ s:^:#:' spec/spec_helper.rb || die
+
+       # Avoid specs for an unmaintained package with old dependencies that is 
optional.
+       sed -e '/require.*values/ s:^:#:' \
+               -e '/when the class is a Value class/,/^      end/ s:^:#:' \
+               -i spec/memo_wise_spec.rb || die
+
+       sed -e 's:_relative ": "./:' \
+               -e 's/__dir__/"."/' \
+               -e 's/git ls-files -z/find * -print0/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}

diff --git a/dev-ruby/memo_wise/metadata.xml b/dev-ruby/memo_wise/metadata.xml
new file mode 100644
index 000000000000..81df83f8cd67
--- /dev/null
+++ b/dev-ruby/memo_wise/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo Ruby Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">panorama-ed/memo_wise</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to