1 |
commit: 55be5bda98da3ed83aa50ef80dc28d21cd179216 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 10 05:05:13 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 10 05:29:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55be5bda |
7 |
|
8 |
dev-ruby/activerecord: add 5.2.4.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-5.2.4.4.ebuild | 89 +++++++++++++++++++++++ |
15 |
2 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/activerecord/Manifest b/dev-ruby/activerecord/Manifest |
18 |
index 1bbbb8882da..4e5ccfc519b 100644 |
19 |
--- a/dev-ruby/activerecord/Manifest |
20 |
+++ b/dev-ruby/activerecord/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST rails-5.2.4.3.tgz 8824955 BLAKE2B 7db1bdda581e345713b796152c68e13911076c0af752aa91016a559fb380ee33b5f1822576120940995968efa6351165af0e21f97ff2e201bc8250f7e3178089 SHA512 b01b454f38593b50788cecef4f2b25938b0e176d24476bf0a8145b581c7327e0d8572a62fab4256372b51d75a9463431bbd98470a31298a6ff4d5f81f7ff92ce |
23 |
+DIST rails-5.2.4.4.tgz 8825200 BLAKE2B e56f828f46ef72a2ec59006f37410aa53ca33730452d74d8deefc3975a24940500a48864c18523fad1141e025192b8bfc0c050abc04a01a88333fc825640d4b9 SHA512 6ea50009f769e2e2e6df6cd31fb10e8a770c61f28496432cb7a30265f9064fa8e61c8a0c2569fa056baf31d273ab25cc8c9bd02523214a35e3bbd94e4db293e5 |
24 |
DIST rails-6.0.3.2.tgz 18568792 BLAKE2B 574d4b7da1bf0ff308ca1a64369c16e29396c8faddf741bc0f2b7d0c0761e440d64dade6ef67ba4923045c7eab1cd0689d45b6b26f3e3077020157a2b29fb17f SHA512 ea019bef7facc1b8b0d2f181da45d70456a895f2d57eb2410e4a06ba7bea0165dacc0f15fe5080150e4b4ef3c81dacee70b200468232da857fdf60def85b5aec |
25 |
|
26 |
diff --git a/dev-ruby/activerecord/activerecord-5.2.4.4.ebuild b/dev-ruby/activerecord/activerecord-5.2.4.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ade4146d39d |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/activerecord/activerecord-5.2.4.4.ebuild |
31 |
@@ -0,0 +1,89 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+USE_RUBY="ruby24 ruby25 ruby26" |
37 |
+ |
38 |
+# this is not null so that the dependencies will actually be filled |
39 |
+RUBY_FAKEGEM_TASK_TEST="test" |
40 |
+ |
41 |
+RUBY_FAKEGEM_TASK_DOC="" |
42 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" |
43 |
+ |
44 |
+RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec" |
45 |
+ |
46 |
+RUBY_FAKEGEM_BINWRAP="" |
47 |
+ |
48 |
+inherit ruby-fakegem eapi7-ver |
49 |
+ |
50 |
+DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM" |
51 |
+HOMEPAGE="https://github.com/rails/rails/" |
52 |
+SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz" |
53 |
+ |
54 |
+LICENSE="MIT" |
55 |
+SLOT="$(ver_cut 1-2)" |
56 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux" |
57 |
+IUSE="mysql postgres sqlite" |
58 |
+ |
59 |
+RUBY_S="rails-${PV}/${PN}" |
60 |
+ |
61 |
+ruby_add_rdepend "~dev-ruby/activesupport-${PV} |
62 |
+ ~dev-ruby/activemodel-${PV} |
63 |
+ dev-ruby/arel:9.0 |
64 |
+ sqlite? ( >=dev-ruby/sqlite3-1.3.6 ) |
65 |
+ mysql? ( || ( dev-ruby/mysql2:0.5 dev-ruby/mysql2:0.4 ) ) |
66 |
+ postgres? ( >=dev-ruby/pg-0.18.0:* )" |
67 |
+ |
68 |
+ruby_add_bdepend " |
69 |
+ test? ( |
70 |
+ dev-ruby/bundler |
71 |
+ ~dev-ruby/actionpack-${PV} |
72 |
+ ~dev-ruby/actionmailer-${PV} |
73 |
+ >=dev-ruby/sqlite3-1.3.6 |
74 |
+ dev-ruby/mocha |
75 |
+ dev-ruby/minitest:5 |
76 |
+ )" |
77 |
+ |
78 |
+DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )" |
79 |
+ |
80 |
+all_ruby_prepare() { |
81 |
+ # Remove items from the common Gemfile that we don't need for this |
82 |
+ # test run. This also requires handling some gemspecs. |
83 |
+ rm ../Gemfile.lock || die |
84 |
+ 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:^:#:" \ |
85 |
+ -e '/:job/,/end/ s:^:#:' \ |
86 |
+ -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die |
87 |
+ sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die |
88 |
+ sed -e '/bcrypt/ s/3.0.0/3.0/' \ |
89 |
+ -i ../Gemfile || die |
90 |
+ |
91 |
+ # Add back json in the Gemfile because we dropped some dependencies |
92 |
+ # earlier that implicitly required it. |
93 |
+ sed -i -e '$agem "json"' \ |
94 |
+ ../Gemfile || die |
95 |
+ |
96 |
+ sed -e '3i gem "activesupport", "~> 5.2.0"' \ |
97 |
+ -e '3i gem "activerecord", "~> 5.2.0"' \ |
98 |
+ -e '3i gem "activemodel", "~> 5.2.0"' \ |
99 |
+ -i test/cases/helper.rb || die |
100 |
+ |
101 |
+ # Avoid test depending on mysql adapter which we don't support for |
102 |
+ # this Rails version to simplify our dependencies. |
103 |
+ rm test/cases/connection_specification/resolver_test.rb || die |
104 |
+ |
105 |
+ # Avoid single test using mysql dependencies. |
106 |
+ rm test/cases/invalid_connection_test.rb || die |
107 |
+ |
108 |
+ # Avoid failing test that makes bad assumptions on database state. |
109 |
+ sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \ |
110 |
+ test/cases/associations/has_many_associations_test.rb |
111 |
+ |
112 |
+ # Avoid test failing to bind limit length in favor of security release |
113 |
+ sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die |
114 |
+} |
115 |
+ |
116 |
+each_ruby_test() { |
117 |
+ if use sqlite; then |
118 |
+ MT_NO_PLUGINS=true ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed" |
119 |
+ fi |
120 |
+} |