Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/activesupport/
Date: Sun, 22 Nov 2020 09:23:04
Message-Id: 1606036907.94d118840d8735e09c7d17e78360319d64ded8cd.graaff@gentoo
1 commit: 94d118840d8735e09c7d17e78360319d64ded8cd
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 22 09:21:17 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 22 09:21:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94d11884
7
8 dev-ruby/activesupport: update zeitwerk dep
9
10 Closes: https://bugs.gentoo.org/718554
11 Package-Manager: Portage-3.0.9, Repoman-3.0.2
12 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
13
14 .../activesupport/activesupport-6.0.3.4-r1.ebuild | 73 ++++++++++++++++++++++
15 1 file changed, 73 insertions(+)
16
17 diff --git a/dev-ruby/activesupport/activesupport-6.0.3.4-r1.ebuild b/dev-ruby/activesupport/activesupport-6.0.3.4-r1.ebuild
18 new file mode 100644
19 index 00000000000..83895aef0e7
20 --- /dev/null
21 +++ b/dev-ruby/activesupport/activesupport-6.0.3.4-r1.ebuild
22 @@ -0,0 +1,73 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +USE_RUBY="ruby25 ruby26 ruby27"
29 +
30 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
31 +
32 +RUBY_FAKEGEM_GEMSPEC="activesupport.gemspec"
33 +
34 +RUBY_FAKEGEM_BINWRAP=""
35 +
36 +inherit ruby-fakegem
37 +
38 +DESCRIPTION="Utility Classes and Extension to the Standard Library"
39 +HOMEPAGE="https://github.com/rails/rails"
40 +SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
41 +
42 +LICENSE="MIT"
43 +SLOT="$(ver_cut 1-2)"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
45 +IUSE=""
46 +
47 +RUBY_S="rails-${PV}/${PN}"
48 +
49 +ruby_add_rdepend "
50 + >=dev-ruby/concurrent-ruby-1.0.2:1
51 + dev-ruby/i18n:1
52 + >=dev-ruby/tzinfo-1.1:1
53 + >=dev-ruby/minitest-5.1:5
54 + >=dev-ruby/zeitwerk-2.2:2
55 +"
56 +
57 +# memcache-client, nokogiri, builder, and redis are not strictly needed,
58 +# but there are tests using this code.
59 +ruby_add_bdepend "test? (
60 + >=dev-ruby/dalli-2.2.1
61 + >=dev-ruby/nokogiri-1.4.5
62 + >=dev-ruby/builder-3.1.0
63 + >=dev-ruby/listen-3.0.5:3
64 + dev-ruby/rack
65 + dev-ruby/mocha
66 + )"
67 +
68 +all_ruby_prepare() {
69 + # Set the secure permissions that tests expect.
70 + chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
71 +
72 + # Remove items from the common Gemfile that we don't need for this
73 + # test run. This also requires handling some gemspecs.
74 + sed -i -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|execjs\|jquery-rails\|mysql\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|redcarpet\|bcrypt\|uglifier\|minitest\|sprockets\|stackprof\|rack-cache\|redis\|sqlite\)/ s:^:#:" \
75 + -e '/:job/,/end/ s:^:#:' \
76 + -e '/group :doc/,/^end/ s:^:#:' \
77 + -e 's/gemspec/gemspec path: "activesupport"/' \
78 + -e '5igem "builder"; gem "rack"' ../Gemfile || die
79 + rm ../Gemfile.lock || die
80 + sed -i -e '1igem "tzinfo", "~> 1.1"' test/abstract_unit.rb || die
81 +
82 + # Avoid test that depends on timezone
83 + sed -i -e '/test_implicit_coercion/,/^ end/ s:^:#:' test/core_ext/duration_test.rb || die
84 +
85 + # Avoid tests that seem to trigger race conditions.
86 + rm -f test/evented_file_update_checker_test.rb || die
87 +
88 + # Avoid test that generates filename that is too long
89 + sed -i -e '/test_filename_max_size/askip "gentoo"' test/cache/stores/file_store_test.rb || die
90 +
91 + # Avoid tests requiring a live redis running
92 + rm -f test/cache/stores/redis_cache_store_test.rb || die
93 + sed -i -e '/cache_stores:redis/ s:^:#:' Rakefile || die
94 + sed -i -e '/test_redis_cache_store/askip "lacking keywords"' test/cache/cache_store_setting_test.rb || die
95 +}