summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-04-02 10:52:55 +0200
committerHans de Graaff <graaff@gentoo.org>2022-04-02 10:57:47 +0200
commit1a8ddf427823a4f05080492280b68076ec240143 (patch)
tree7a1a2f22384bc013cc29756f969166a6cf9b4e34 /dev-ruby/memo_wise
parentdev-ruby/http-form_data: stabilize 2.3.0 for amd64 (diff)
downloadgentoo-1a8ddf427823a4f05080492280b68076ec240143.tar.gz
gentoo-1a8ddf427823a4f05080492280b68076ec240143.tar.bz2
gentoo-1a8ddf427823a4f05080492280b68076ec240143.zip
dev-ruby/memo_wise: initial import of 1.6.0
New dependency for www-apps/nanoc. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/memo_wise')
-rw-r--r--dev-ruby/memo_wise/Manifest1
-rw-r--r--dev-ruby/memo_wise/memo_wise-1.6.0.ebuild35
-rw-r--r--dev-ruby/memo_wise/metadata.xml11
3 files changed, 47 insertions, 0 deletions
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>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">panorama-ed/memo_wise</remote-id>
+ </upstream>
+</pkgmetadata>