summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-04-06 07:48:14 +0200
committerHans de Graaff <graaff@gentoo.org>2022-04-06 07:48:41 +0200
commit40f09bcdbe76938a821a5af2d4c71a7fda21858c (patch)
treee991f16a41c98359895fdd8aec504a1edfaa95fb /dev-ruby/memo_wise
parentdev-ruby/timers: enable ruby30, ruby31 and disable ruby25 (diff)
downloadgentoo-40f09bcdbe76938a821a5af2d4c71a7fda21858c.tar.gz
gentoo-40f09bcdbe76938a821a5af2d4c71a7fda21858c.tar.bz2
gentoo-40f09bcdbe76938a821a5af2d4c71a7fda21858c.zip
dev-ruby/memo_wise: add 1.7.0
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.7.0.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/memo_wise/Manifest b/dev-ruby/memo_wise/Manifest
index dfe88f6b6ca9..c3b906da8bea 100644
--- a/dev-ruby/memo_wise/Manifest
+++ b/dev-ruby/memo_wise/Manifest
@@ -1 +1,2 @@
DIST memo_wise-1.6.0.tar.gz 184843 BLAKE2B 84b9cd5a2f757dc82cfb38359b39d26d60018fabc425c018b5537e61a5620dcdf0caf2863a8165fdf5f7ed5bc85400cae43b6ebbb3911ab7ce47160d7295240e SHA512 8a8a3a3a6c3a7dd9e518efed3b990917ad266e42266d30c80dbed90b279ad793ec795c080a1d080c7a23e2caec7e31e55388df802795ac1e5f7fb5e3ced93c03
+DIST memo_wise-1.7.0.tar.gz 185861 BLAKE2B 49ef04f4ef73ea24ac243c70d9545ed65c0fc8f4c6d9571d7f31c2728e82087cf1676aedd01aa1d0c1994a16ea7215b264a51fa2b8fe957cba3eb9088fd3a414 SHA512 3b87a1a81c060c34d4c91409ab6b2f8aa700e3313233e652e174f62c3dd826b675594d84d00ad21ae1f12dba4c6b0fe59431c54b4bbdf46430895635aa220b5f
diff --git a/dev-ruby/memo_wise/memo_wise-1.7.0.ebuild b/dev-ruby/memo_wise/memo_wise-1.7.0.ebuild
new file mode 100644
index 000000000000..607af09f1301
--- /dev/null
+++ b/dev-ruby/memo_wise/memo_wise-1.7.0.ebuild
@@ -0,0 +1,36 @@
+# 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_BINWRAP=""
+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
+}