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/railties/
Date: Sat, 14 May 2022 05:44:00
Message-Id: 1652507029.5e6dab00f85c185cd7caaaa36f44c9d66e1a8444.graaff@gentoo
1 commit: 5e6dab00f85c185cd7caaaa36f44c9d66e1a8444
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 05:43:21 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 05:43:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e6dab00
7
8 dev-ruby/railties: add 5.2.8
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/railties/Manifest | 1 +
13 dev-ruby/railties/railties-5.2.8.ebuild | 71 +++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-ruby/railties/Manifest b/dev-ruby/railties/Manifest
17 index 5794aa721f34..a3a590430e5c 100644
18 --- a/dev-ruby/railties/Manifest
19 +++ b/dev-ruby/railties/Manifest
20 @@ -1,5 +1,6 @@
21 DIST rails-5.2.6.tgz 8841270 BLAKE2B 8e813f376446ef249aa3b48934d3cb5ae125c09c54353cc93557c3bee4f23e47ae7ceffab75d5cbfb691daed85149d9054337b468a0010bc5c7ebb879502396b SHA512 465e017591a9962a2e0dec2eac9669d5f507d0904e9eec50fbc8848d804ba5f1eb3220fd5acc949845f048f59cfc5e43f099707650edf301d6595e70e33888c7
22 DIST rails-5.2.7.1.tgz 8847972 BLAKE2B 13e5f47431a7611c1fe7ed490198a81634670460effdb14e6657bbc3455388da26db6a611f363b93b35e25a6d2693f227ef2be960d432770afd63906a2ca2b4f SHA512 64b155d522a944eed7ba08417423ebc8b3a6d2ecd39940021c37f54ae3af649d0de6dc1794b4b295d4874eb58cb17bf11d285daa146f37113c42c3aed9cc39c6
23 +DIST rails-5.2.8.tgz 8847449 BLAKE2B 11937ee2aeea39cade43829a01430315a997fef070fc73a1e63baaff8b3631f82561c7acdd44cf1981501424be68d814001dd26cbf7678ca987a8311d109d367 SHA512 98e1b36bdd4235e983d0805b6ff9779e3793d1bed486dc6de854215c4294334d5036157a527c1222cc2be4c107754553dadf2bf86e65ce6561dd8152c47ef84a
24 DIST rails-6.0.4.1.tgz 18595307 BLAKE2B 9a950a45cd04c5fe0cbe57fd014a6997074dcbe8f95fcbb2f5d3b6372867ef8bb0931b909ca8eba623787419f5f45504cdcd477729ba3b3a052f5003229121cd SHA512 322cfa6d0ed62f0660ce2f43003b2a745297f3b82dca486d7e4a9821441ad4ec92c202556515645d141fba31c998e17aa00bbe3d8c2106718e6839f94e88c975
25 DIST rails-6.0.4.4.tgz 18594292 BLAKE2B 8f463900db30ffd4850b270aac0ae8c160af36a606e4eddaadbd2a0c086de3438a36665586e20a4b6b8873f8b659f2ecd3e32965a36118a6e63fad2726afa0f5 SHA512 14f7d51ba407589eb4ef1db8a99c21c301198e8cb2fcdf611c76eebd1d52192eb1225bb5d45a2183fbfe103a0b987f3a95c6c5fe6d772ba101da9ed46441441f
26 DIST rails-6.0.4.7.tgz 18596833 BLAKE2B a376bed4a0531147bbeb2c147e6067657313b5e0ffc713b18d07037177eaeeade1516197533b022afd9b0b03a1f2ed130b85600af3ea7d53a7d932db1e6f4342 SHA512 e4220411ed28b2e28002820281923b45d90454ef59a57b57c98bad5e185d39b2af75609e7786566135b5e1b197544cc039ad81df1a663eeebfa10728ae2904d1
27
28 diff --git a/dev-ruby/railties/railties-5.2.8.ebuild b/dev-ruby/railties/railties-5.2.8.ebuild
29 new file mode 100644
30 index 000000000000..656474a80bf1
31 --- /dev/null
32 +++ b/dev-ruby/railties/railties-5.2.8.ebuild
33 @@ -0,0 +1,71 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +USE_RUBY="ruby25 ruby26"
39 +
40 +RUBY_FAKEGEM_TASK_TEST="test:regular"
41 +RUBY_FAKEGEM_TASK_DOC=""
42 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
43 +
44 +RUBY_FAKEGEM_GEMSPEC="railties.gemspec"
45 +
46 +RUBY_FAKEGEM_BINDIR="exe"
47 +RUBY_FAKEGEM_BINWRAP=""
48 +
49 +inherit ruby-fakegem eapi7-ver
50 +
51 +DESCRIPTION="Tools for creating, working with, and running Rails applications"
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 ~ppc ~ppc64 ~x86 ~amd64-linux"
58 +IUSE=""
59 +
60 +RUBY_S="rails-${PV}/${PN}"
61 +
62 +# The test suite has many failures, most likely due to a mismatch in
63 +# exact dependencies or environment specifics. Needs further
64 +# investigation.
65 +RESTRICT="test"
66 +
67 +RDEPEND+=">=app-eselect/eselect-rails-0.24"
68 +
69 +ruby_add_rdepend "
70 + ~dev-ruby/activesupport-${PV}
71 + ~dev-ruby/actionpack-${PV}
72 + dev-ruby/thor:1
73 + >=dev-ruby/rake-0.8.7
74 + dev-ruby/method_source
75 +"
76 +
77 +ruby_add_bdepend "
78 + test? (
79 + ~dev-ruby/actionview-${PV}
80 + dev-ruby/mocha:0.14
81 + )"
82 +
83 +all_ruby_prepare() {
84 + rm "${S}/../Gemfile" || die "Unable to remove Gemfile"
85 + sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths"
86 + sed -i -e '1igem "minitest", "~>4.0"' test/abstract_unit.rb || die
87 +}
88 +
89 +all_ruby_install() {
90 + all_fakegem_install
91 +
92 + ruby_fakegem_binwrapper rails rails-${PV}
93 +}
94 +
95 +pkg_postinst() {
96 + elog "To select between slots of rails, use:"
97 + elog "\teselect rails"
98 +
99 + eselect rails update
100 +}
101 +
102 +pkg_postrm() {
103 + eselect rails update
104 +}