1 |
commit: 2e0d7c53328c1f14e76e7959918fc7130a3649bf |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 27 06:11:50 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 27 06:11:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e0d7c53 |
7 |
|
8 |
dev-ruby/dalli: add 2.7.11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/719344 |
11 |
Closes: https://bugs.gentoo.org/738656 |
12 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
13 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
14 |
|
15 |
dev-ruby/dalli/Manifest | 1 + |
16 |
dev-ruby/dalli/dalli-2.7.11.ebuild | 50 ++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 51 insertions(+) |
18 |
|
19 |
diff --git a/dev-ruby/dalli/Manifest b/dev-ruby/dalli/Manifest |
20 |
index 24785f4f7d1..d41fd82a427 100644 |
21 |
--- a/dev-ruby/dalli/Manifest |
22 |
+++ b/dev-ruby/dalli/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST dalli-2.7.10.tar.gz 52106 BLAKE2B 0531247c1d615acd7d1124b8aceb5635088b55e5a85753f10b8fbd786ec3573f13df096e1537d9a31f3801632406f28d918de5971cb28ec31d6eb8387d0c74f1 SHA512 1b6308ef37d729d85741306c10bf87c9b9733f83f0b4bf089f3eced36c48cddd9a77d2fb44a77778844d1cafaa3cec5110a9c90f6a67dee08a96e163e6ccaf65 |
25 |
+DIST dalli-2.7.11.tar.gz 52341 BLAKE2B 5b3a2bc57f4b0e3a9ac0d24ffa3bba89ea38665ac08ef3d7760fa6ce74db21d323a18e74a4f3009165364332731d7c6890df36c68409afbe21d3ac096275f028 SHA512 8f299a19d95293370564b6337bbdfeb32d928e0a95bf5f5df962ea20b039f4765da1797513ca96cabf93309484575481a02fb1e0c6d227f74c81fc72f95be22a |
26 |
|
27 |
diff --git a/dev-ruby/dalli/dalli-2.7.11.ebuild b/dev-ruby/dalli/dalli-2.7.11.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..a8a2a8ccf9e |
30 |
--- /dev/null |
31 |
+++ b/dev-ruby/dalli/dalli-2.7.11.ebuild |
32 |
@@ -0,0 +1,50 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+USE_RUBY="ruby25 ruby26 ruby27" |
38 |
+ |
39 |
+RUBY_FAKEGEM_TASK_TEST="test" |
40 |
+ |
41 |
+RUBY_FAKEGEM_DOCDIR="doc" |
42 |
+RUBY_FAKEGEM_EXTRADOC="History.md Performance.md README.md" |
43 |
+ |
44 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
45 |
+ |
46 |
+inherit ruby-fakegem |
47 |
+ |
48 |
+DESCRIPTION="A high performance pure Ruby client for accessing memcached servers" |
49 |
+HOMEPAGE="https://github.com/petergoldstein/dalli" |
50 |
+SRC_URI="https://github.com/petergoldstein/dalli/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86" |
54 |
+IUSE="" |
55 |
+ |
56 |
+DEPEND+="${DEPEND} test? ( >=net-misc/memcached-1.5.4 )" |
57 |
+ |
58 |
+ruby_add_bdepend "test? ( |
59 |
+ dev-ruby/minitest:5 |
60 |
+ >=dev-ruby/mocha-0.13 |
61 |
+ dev-ruby/rack |
62 |
+ >=dev-ruby/activesupport-5.2 |
63 |
+ dev-ruby/connection_pool )" |
64 |
+ |
65 |
+all_ruby_prepare() { |
66 |
+ chmod 0755 "${HOME}" || die "Failed to fix permissions on home" |
67 |
+ |
68 |
+ sed -i -e '/\(appraisal\|bundler\)/ s:^:#:' Rakefile || die |
69 |
+ |
70 |
+ sed -i -e '3igem "minitest", "~> 5.0"; gem "activesupport", ">=5.2.0"' \ |
71 |
+ -e '/bundler/ s:^:#:' test/helper.rb || die |
72 |
+ |
73 |
+ # Drop rails dependency which is only used to display the version |
74 |
+ # number, so we only need to depend on activesupport and avoid |
75 |
+ # complicated circular dependencies. |
76 |
+ sed -i -e '/rails/I s:^:#:' \ |
77 |
+ -e '14irequire "active_support"' test/helper.rb || die |
78 |
+ |
79 |
+ # Fix test compatability with memcached 1.5.4 and higher |
80 |
+ # https://github.com/petergoldstein/dalli/pull/672 |
81 |
+ #sed -i -e '/memcached_low_mem_persistent/,/^end/ s/-M/-M -I 512k/' test/memcached_mock.rb || die |
82 |
+} |