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/actionpack-xml_parser/
Date: Wed, 07 Jul 2021 19:15:25
Message-Id: 1625685313.9976c8b748d02801d98fd7d5fb1e69cf737d4095.graaff@gentoo
1 commit: 9976c8b748d02801d98fd7d5fb1e69cf737d4095
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 7 17:42:35 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 7 19:15:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9976c8b7
7
8 dev-ruby/actionpack-xml_parser: add ruby27
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 .../actionpack-xml_parser-2.0.1-r1.ebuild | 31 ++++++++++++++++++++++
14 1 file changed, 31 insertions(+)
15
16 diff --git a/dev-ruby/actionpack-xml_parser/actionpack-xml_parser-2.0.1-r1.ebuild b/dev-ruby/actionpack-xml_parser/actionpack-xml_parser-2.0.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..fd564734e40
19 --- /dev/null
20 +++ b/dev-ruby/actionpack-xml_parser/actionpack-xml_parser-2.0.1-r1.ebuild
21 @@ -0,0 +1,31 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +USE_RUBY="ruby25 ruby26 ruby27"
27 +
28 +inherit ruby-fakegem
29 +
30 +DESCRIPTION="XML parameters parser for Action Pack (removed from core in Rails 4.0)"
31 +HOMEPAGE="https://github.com/rails/actionpack-xml_parser"
32 +SRC_URI="https://github.com/rails/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="MIT"
35 +
36 +KEYWORDS="~amd64"
37 +SLOT="2"
38 +IUSE=""
39 +
40 +ruby_add_rdepend "=dev-ruby/actionpack-6.0*:* =dev-ruby/railties-6.0*:*"
41 +
42 +all_ruby_prepare() {
43 + sed -i -e "/bundler/d" Rakefile test/helper.rb || die
44 + sed -i -e '1igem "actionpack", "~>6.0.0"' test/helper.rb || die
45 +
46 + # Skip test that is not compatible with Rails 5.2
47 + sed -i -e '/occurring a parse error if parsing unsuccessful/askip "rails 5.2"' test/xml_params_parsing_test.rb || die
48 +}
49 +
50 +each_ruby_test() {
51 + MT_NO_PLUGINS=true ${RUBY} -Ilib:.:test -e "Dir['test/*_test.rb'].each{|f| require f}" || die
52 +}