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: Sat, 01 Oct 2022 09:56:39
Message-Id: 1664618192.271062f623751393b40b2ca277c5e33f99c0aac9.graaff@gentoo
1 commit: 271062f623751393b40b2ca277c5e33f99c0aac9
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 09:53:59 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 09:56:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=271062f6
7
8 dev-ruby/activesupport: add 7.0.4
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/activesupport/Manifest | 1 +
13 dev-ruby/activesupport/activesupport-7.0.4.ebuild | 74 +++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-ruby/activesupport/Manifest b/dev-ruby/activesupport/Manifest
17 index 711b4d9a5e50..9f762044e7d8 100644
18 --- a/dev-ruby/activesupport/Manifest
19 +++ b/dev-ruby/activesupport/Manifest
20 @@ -2,3 +2,4 @@ DIST rails-5.2.8.1.tgz 8848345 BLAKE2B 6786359e6c519e98079dc6f87a1ad23a69e7b65d2
21 DIST rails-6.0.5.1.tgz 18607954 BLAKE2B 74f75399a287f1eae199a5764c952b75dd95a02c88899ade69d60acae00a7588b2f3a8ab3b9d2c9224d62f87305c596e16b196a5c32b19731d4415f17a29d38e SHA512 a65c3fab39eadba75e0107486c82a4da212e612ddb2350f77bb00ad887e0b52980edba08d42c02801c4e4fd71d750de3dbd78c820ef050016867737dccc06b36
22 DIST rails-6.1.6.1.tgz 11028264 BLAKE2B 568033eb816613ba0ba5f2df38e6a30158b2e31ef4d4da151f8c0de2934b07736833026793ce9192994d9ef2a2a45b67735a35760c1be8b8a68c1968147cc6db SHA512 04acf9dbf5ee734636aada67be001690899eb13f73ea688455fcaee8cbf4839aedf06943c8adb5eecf13fd9a5f6be1a225310aa481d3a254172fd0ce0402362f
23 DIST rails-7.0.3.1.tgz 11049683 BLAKE2B 31aa9c20b4add7e11b832aff57fcf78284b7f28e71cfc71b5769c65170f1fff3f33d73224bbfa826852a59aac30671ff7c3ef19cbe0aaabc8528a805c6b98e8a SHA512 2ad615df9e019193489d5ce82152fd0ff12d8435401258b2b8a87d1c5da46587cdd45dc483847891f7b8be1d019b09b77a48fa7849d5260ee6fdbbf6df64ef03
24 +DIST rails-7.0.4.tgz 11061225 BLAKE2B 9c520766f936c82ae9ee943c3db0ad575d7fc59aea947fb2790cf511188fbd33166a62332564c4714372203f5fabdde842334103b48f4115c31f5d0fe18375f1 SHA512 118035226054ad5083d2affde55a812917652491f82a9a578380a790770fdda3a14904f6de10f58651bbbab278aa23920b652aa1b34c71441d465c3b7b4be82c
25
26 diff --git a/dev-ruby/activesupport/activesupport-7.0.4.ebuild b/dev-ruby/activesupport/activesupport-7.0.4.ebuild
27 new file mode 100644
28 index 000000000000..1ae44774dde0
29 --- /dev/null
30 +++ b/dev-ruby/activesupport/activesupport-7.0.4.ebuild
31 @@ -0,0 +1,74 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +USE_RUBY="ruby27 ruby30 ruby31"
38 +
39 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
40 +
41 +RUBY_FAKEGEM_GEMSPEC="activesupport.gemspec"
42 +
43 +RUBY_FAKEGEM_BINWRAP=""
44 +
45 +inherit ruby-fakegem
46 +
47 +DESCRIPTION="Utility Classes and Extension to the Standard Library"
48 +HOMEPAGE="https://github.com/rails/rails"
49 +SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
50 +
51 +LICENSE="MIT"
52 +SLOT="$(ver_cut 1-2)"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
54 +IUSE=""
55 +
56 +RUBY_S="rails-${PV}/${PN}"
57 +
58 +ruby_add_rdepend "
59 + >=dev-ruby/concurrent-ruby-1.0.2:1
60 + >=dev-ruby/i18n-1.6:1
61 + dev-ruby/tzinfo:2
62 + >=dev-ruby/minitest-5.1:5
63 +"
64 +
65 +# memcache-client, nokogiri, builder, and redis are not strictly needed,
66 +# but there are tests using this code.
67 +ruby_add_bdepend "test? (
68 + >=dev-ruby/dalli-3.0.1
69 + dev-ruby/connection_pool
70 + >=dev-ruby/nokogiri-1.8.1
71 + >=dev-ruby/builder-3.1.0
72 + >=dev-ruby/listen-3.3:3
73 + dev-ruby/rack
74 + dev-ruby/rexml
75 + dev-ruby/mocha
76 + <dev-ruby/minitest-5.16:5
77 + )"
78 +
79 +all_ruby_prepare() {
80 + # Set the secure permissions that tests expect.
81 + chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
82 +
83 + # Remove items from the common Gemfile that we don't need for this
84 + # test run. This also requires handling some gemspecs.
85 + sed -i -e "/\(system_timer\|pg\|execjs\|jquery-rails\|mysql\|journey\|ruby-prof\|stackprof\|benchmark-ips\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|bcrypt\|uglifier\|minitest\|sprockets\|stackprof\|rack-cache\|sqlite\|websocket-client-simple\|\libxml-ruby\|bootsnap\|aws-sdk\|webmock\|capybara\|sass-rails\|selenium-webdriver\|webpacker\|webrick\|propshaft\|rack-test\|terser\)/ s:^:#:" \
86 + -e '/stimulus-rails/,/tailwindcss-rails/ s:^:#:' \
87 + -e '/group :\(doc\|rubocop\|job\|cable\|storage\|ujs\|test\|view\) do/,/^end/ s:^:#:' \
88 + -e 's/gemspec/gemspec path: "activesupport"/' \
89 + -e '5igem "builder"; gem "rack"' ../Gemfile || die
90 + rm ../Gemfile.lock || die
91 +
92 + # Avoid test that depends on timezone
93 + sed -i -e '/test_implicit_coercion/,/^ end/ s:^:#:' test/core_ext/duration_test.rb || die
94 +
95 + # Avoid tests that seem to trigger race conditions.
96 + rm -f test/evented_file_update_checker_test.rb || die
97 +
98 + # Avoid test that generates filename that is too long
99 + sed -i -e '/test_filename_max_size/askip "gentoo"' test/cache/stores/file_store_test.rb || die
100 +
101 + # Avoid tests requiring a live redis running
102 + rm -f test/cache/stores/redis_cache_store_test.rb || die
103 + sed -i -e '/cache_stores:redis/ s:^:#:' Rakefile || die
104 + sed -i -e '/test_redis_cache_store/askip "lacking keywords"' test/cache/cache_store_setting_test.rb || die
105 +}