1 |
commit: 3aea770f0cad37505150a4389fa8fd65adfb19df |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 28 05:13:37 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 28 05:13:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aea770f |
7 |
|
8 |
dev-ruby/activemodel-serializers-xml: EAPI 7; add ruby27 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
.../activemodel-serializers-xml-1.0.2-r1.ebuild | 41 ++++++++++++++++++++++ |
14 |
1 file changed, 41 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/activemodel-serializers-xml/activemodel-serializers-xml-1.0.2-r1.ebuild b/dev-ruby/activemodel-serializers-xml/activemodel-serializers-xml-1.0.2-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..dd52b160933 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/activemodel-serializers-xml/activemodel-serializers-xml-1.0.2-r1.ebuild |
21 |
@@ -0,0 +1,41 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+USE_RUBY="ruby25 ruby26 ruby27" |
28 |
+ |
29 |
+RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true" |
30 |
+ |
31 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
32 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
33 |
+ |
34 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
35 |
+ |
36 |
+inherit ruby-fakegem |
37 |
+ |
38 |
+DESCRIPTION="XML serialization for your Active Model objects and Active Record models" |
39 |
+HOMEPAGE="https://github.com/rails/activemodel-serializers-xml" |
40 |
+SRC_URI="https://github.com/rails/${PN}/archive/v${PV}.tar.gz -> ${P}.tgz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="$(ver_cut 1-2)" |
44 |
+KEYWORDS="~amd64" |
45 |
+IUSE="" |
46 |
+ |
47 |
+ruby_add_rdepend " |
48 |
+ >=dev-ruby/activesupport-5:* |
49 |
+ >=dev-ruby/activemodel-5:* |
50 |
+ =dev-ruby/builder-3*:* >=dev-ruby/builder-3.1:* |
51 |
+" |
52 |
+ |
53 |
+ruby_add_bdepend "test? ( |
54 |
+ >=dev-ruby/activerecord-5:* |
55 |
+ dev-ruby/sqlite3 |
56 |
+)" |
57 |
+ |
58 |
+all_ruby_prepare() { |
59 |
+ sed -i -e 's/git ls-files -z/find . -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die |
60 |
+ |
61 |
+ sed -i -e '/datetime.*created_at/ s:^:#:' test/helper.rb || die |
62 |
+} |