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/activerecord/
Date: Thu, 08 Oct 2020 05:17:54
Message-Id: 1602134207.2d6ab3f5010f8dc466b5700bc21de4221dc97396.graaff@gentoo
1 commit: 2d6ab3f5010f8dc466b5700bc21de4221dc97396
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 8 05:16:47 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 8 05:16:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d6ab3f5
7
8 dev-ruby/activerecord: add 6.0.3.4
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/activerecord/Manifest | 1 +
14 dev-ruby/activerecord/activerecord-6.0.3.4.ebuild | 86 +++++++++++++++++++++++
15 2 files changed, 87 insertions(+)
16
17 diff --git a/dev-ruby/activerecord/Manifest b/dev-ruby/activerecord/Manifest
18 index 81f2b131690..fddc7b5d96a 100644
19 --- a/dev-ruby/activerecord/Manifest
20 +++ b/dev-ruby/activerecord/Manifest
21 @@ -2,3 +2,4 @@ DIST rails-5.2.4.3.tgz 8824955 BLAKE2B 7db1bdda581e345713b796152c68e13911076c0af
22 DIST rails-5.2.4.4.tgz 8825200 BLAKE2B e56f828f46ef72a2ec59006f37410aa53ca33730452d74d8deefc3975a24940500a48864c18523fad1141e025192b8bfc0c050abc04a01a88333fc825640d4b9 SHA512 6ea50009f769e2e2e6df6cd31fb10e8a770c61f28496432cb7a30265f9064fa8e61c8a0c2569fa056baf31d273ab25cc8c9bd02523214a35e3bbd94e4db293e5
23 DIST rails-6.0.3.2.tgz 18568792 BLAKE2B 574d4b7da1bf0ff308ca1a64369c16e29396c8faddf741bc0f2b7d0c0761e440d64dade6ef67ba4923045c7eab1cd0689d45b6b26f3e3077020157a2b29fb17f SHA512 ea019bef7facc1b8b0d2f181da45d70456a895f2d57eb2410e4a06ba7bea0165dacc0f15fe5080150e4b4ef3c81dacee70b200468232da857fdf60def85b5aec
24 DIST rails-6.0.3.3.tgz 18569231 BLAKE2B 6e3e90433d655768a8d4da7824178e61bfeeb4645ae77f5e50c0e4859bcbad1f9cbc9391d3ab78ca15be096372abae1085e3e68ea9065cb76ec3c8fa0b12f50b SHA512 750a66613dce04058bb787479be2794b5e20879170640862d1ae3ac12faf3e2b6d7e9b536bdd1e94a2f4934f759228179c4e6f21dfccf6d7461fce9d9bd13892
25 +DIST rails-6.0.3.4.tgz 18568864 BLAKE2B 8f554a25ce02e4752c1a964257836a5cb0a6c01c3453ff11cd8423a9153e90ab833a32cadfe939a34e094cefd553f5514abd7817004b464b054889ab7dc05b76 SHA512 147f76792ce2d2484071fe247c8f1541c9ca27dcc405ff7a780771e3436a9acf3d326bbfd7c6dceca510b6f4d5209ee0a0859867174b8291d796ffd519fa2ba9
26
27 diff --git a/dev-ruby/activerecord/activerecord-6.0.3.4.ebuild b/dev-ruby/activerecord/activerecord-6.0.3.4.ebuild
28 new file mode 100644
29 index 00000000000..1194b35b480
30 --- /dev/null
31 +++ b/dev-ruby/activerecord/activerecord-6.0.3.4.ebuild
32 @@ -0,0 +1,86 @@
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 +# this is not null so that the dependencies will actually be filled
40 +RUBY_FAKEGEM_TASK_TEST="test"
41 +
42 +RUBY_FAKEGEM_RECIPE_DOC="none"
43 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
44 +
45 +RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
46 +
47 +RUBY_FAKEGEM_BINWRAP=""
48 +
49 +inherit ruby-fakegem
50 +
51 +DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
52 +HOMEPAGE="https://github.com/rails/rails/"
53 +SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
54 +
55 +LICENSE="MIT"
56 +SLOT="$(ver_cut 1-2)"
57 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
58 +IUSE="mysql postgres sqlite"
59 +
60 +RUBY_S="rails-${PV}/${PN}"
61 +
62 +ruby_add_rdepend "~dev-ruby/activesupport-${PV}
63 + ~dev-ruby/activemodel-${PV}
64 + sqlite? ( >=dev-ruby/sqlite3-1.4 )
65 + mysql? ( dev-ruby/mysql2:0.5 )
66 + postgres? ( || ( dev-ruby/pg:1 >=dev-ruby/pg-0.18.0:0 ) )"
67 +
68 +ruby_add_bdepend "
69 + test? (
70 + dev-ruby/bundler
71 + ~dev-ruby/actionpack-${PV}
72 + >=dev-ruby/sqlite3-1.4.0
73 + dev-ruby/mocha
74 + dev-ruby/minitest:5
75 + )"
76 +
77 +DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )"
78 +
79 +all_ruby_prepare() {
80 + # Remove items from the common Gemfile that we don't need for this
81 + # test run. This also requires handling some gemspecs.
82 + rm ../Gemfile.lock || die
83 + sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|execjs\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\|sprockets\|stackprof\)/ s:^:#:" \
84 + -e '/:job/,/end/ s:^:#:' \
85 + -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
86 + sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
87 + sed -e '/bcrypt/ s/3.0.0/3.0/' \
88 + -i ../Gemfile || die
89 +
90 + # Add back json in the Gemfile because we dropped some dependencies
91 + # earlier that implicitly required it.
92 + sed -i -e '$agem "json"' ../Gemfile || die
93 +
94 + # Avoid test depending on mysql adapter which we don't support for
95 + # this Rails version to simplify our dependencies.
96 + rm test/cases/connection_specification/resolver_test.rb || die
97 +
98 + # Avoid single tests using mysql or postgres dependencies.
99 + rm test/cases/invalid_connection_test.rb || die
100 + sed -e '/test_switching_connections_with_database_url/askip "postgres"' \
101 + -i test/cases/connection_adapters/connection_handlers_multi_db_test.rb || die
102 +
103 + # Avoid failing test that makes bad assumptions on database state.
104 + sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \
105 + test/cases/associations/has_many_associations_test.rb
106 +
107 + # Avoid test failing to bind limit length in favor of security release
108 + sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die
109 +
110 + # Avoid test failing related to rubygems
111 + sed -i -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' test/cases/tasks/sqlite_rake_test.rb || die
112 +}
113 +
114 +each_ruby_test() {
115 + if use sqlite; then
116 + ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed"
117 + fi
118 +}