1 |
commit: 09877669be56980bc819dd685fc0cf42a0eebbbb |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 27 05:24:24 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 27 05:24:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09877669 |
7 |
|
8 |
dev-ruby/json: add 2.0.2 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-ruby/json/Manifest | 1 + |
13 |
dev-ruby/json/json-2.0.2.ebuild | 74 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest |
17 |
index dcea2e3..0ce73aa 100644 |
18 |
--- a/dev-ruby/json/Manifest |
19 |
+++ b/dev-ruby/json/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST json-1.8.2.gem 152064 SHA256 256f73d107635f54e3dd84daba65da7b08f9d6a6e6aeb046db6a46b98bd8fb7f SHA512 5c94ec2c5378f7f54cd87a2e265b058e80031d2dd29daf14639c80ba0ac285a527ab7961f5a2cd1e483f455fd8f8c88575950822b7b2d431aa7b2b9c8be819c1 WHIRLPOOL dc17e0c011523434ed29e428a2658ebe58d08df8252e7ee8990882b6d17c19354b3e4ba6985a2a45e4b94932ad265698197ba64ef891f38d3be154da4edde8cb |
22 |
DIST json-1.8.3.gem 152064 SHA256 8ca2091e26678fb989d66cdb9f0104f1307bc584b429c2fd783d51e4b3f14bdb SHA512 313f6016aca5eba4d4a14a72b60b3e9c5e863a6681eb9e499cacedb63969694be563990af0a44dae52963f07b6e6c7aa7e0876ab1348b214f53d925bdc5e83ea WHIRLPOOL 8c6dc26a578aedcd4bbc1e6ea95f2a72debe6bdaca5a4c2a4e70b81d9947048c6648b62d5546fa572084d37ba99ce199a177b87838be5cc3f11d8d0fa0f62a63 |
23 |
DIST json-2.0.1.gem 138240 SHA256 cbea6bfe7bf5162c0fb71f6b0ab2c3108ef05bd0ea7b2f98b1ed6d5a8e75bfee SHA512 957ae157eb4a8c916cc931d397d65c29c7e2036eb407809861a448ba907252bb6ceb9b975c912328aeec846c9318d16eb13f5a4daaa817111fb25d2133c8e065 WHIRLPOOL c2de4df8be59413fe8068d68a3ca00e195ac61c5b100f7c57334e0eefbdb1083fd2f342c41465abbf1bb68e5bf2a6da6b1831d7254363b6c2d283c89130a1227 |
24 |
+DIST json-2.0.2.gem 138752 SHA256 400f60ac8282da80764c5d6fbb04c096390a85950bb488652abc1eb993b411d2 SHA512 88f5d5ad2277e29545dc88850637f5b4eb5919dd1bd5dfeefa79013c0a62ba97f7907e301509fef3d6b503c8a3b6e998f22c3abdcfeda633dbe3edd7d1389279 WHIRLPOOL 9e66182514cf44dc026f8e246bb1121f396f03c264e1e7be4ea16f4fe17367acf8986361687a9b8d4821e5587b4a28cf8c5fc6ad13a1f1c0f3d8f8dc4dae8659 |
25 |
|
26 |
diff --git a/dev-ruby/json/json-2.0.2.ebuild b/dev-ruby/json/json-2.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..6b1f6c5 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/json/json-2.0.2.ebuild |
31 |
@@ -0,0 +1,74 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
38 |
+ |
39 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
40 |
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
41 |
+RUBY_FAKEGEM_DOCDIR="doc" |
42 |
+ |
43 |
+RUBY_FAKEGEM_GEMSPEC="json.gemspec" |
44 |
+ |
45 |
+inherit multilib ruby-fakegem |
46 |
+ |
47 |
+DESCRIPTION="A JSON implementation as a Ruby extension" |
48 |
+HOMEPAGE="https://github.com/flori/json" |
49 |
+LICENSE="Ruby" |
50 |
+ |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
52 |
+SLOT="2" |
53 |
+IUSE="" |
54 |
+ |
55 |
+RDEPEND="${RDEPEND}" |
56 |
+DEPEND="${DEPEND} |
57 |
+ dev-util/ragel" |
58 |
+ |
59 |
+ruby_add_bdepend "dev-ruby/rake |
60 |
+ doc? ( dev-ruby/rdoc )" |
61 |
+ |
62 |
+all_ruby_prepare() { |
63 |
+ # Avoid building the extension twice! |
64 |
+ # And use rdoc instead of sdoc which we don't have packaged |
65 |
+ # And don't call git to list files. We're using the pregenerated spec anyway. |
66 |
+ sed -i \ |
67 |
+ -e '/task :test/ s|:compile,||' \ |
68 |
+ -e 's| => :clean||' \ |
69 |
+ -e 's|sdoc|rdoc|' \ |
70 |
+ -e 's|`git ls-files`|""|' \ |
71 |
+ Rakefile || die "rakefile fix failed" |
72 |
+ |
73 |
+ # Remove hardcoded and broken -O setting. |
74 |
+ sed -i -e '/^ \(if\|unless\)/,/^ end/ s:^:#:' \ |
75 |
+ -e '/^unless/,/^end/ s:^:#:' ext/json/ext/*/extconf.rb || die |
76 |
+ |
77 |
+ # Avoid setting gem since it will not be available yet when installing |
78 |
+ sed -i -e '/gem/ s:^:#:' tests/test_helper.rb || die |
79 |
+} |
80 |
+ |
81 |
+each_ruby_configure() { |
82 |
+ for ext in parser generator ; do |
83 |
+ ${RUBY} -Cext/json/ext/${ext} extconf.rb || die |
84 |
+ done |
85 |
+} |
86 |
+ |
87 |
+each_ruby_compile() { |
88 |
+ for ext in parser generator ; do |
89 |
+ emake V=1 -Cext/json/ext/${ext} |
90 |
+ cp ext/json/ext/${ext}/${ext}$(get_modname) ext/json/ext/ || die |
91 |
+ done |
92 |
+} |
93 |
+ |
94 |
+each_ruby_test() { |
95 |
+ for t in pure ext ; do |
96 |
+ JSON=${T} ${RUBY} -S rake do_test_${t} || die |
97 |
+ done |
98 |
+} |
99 |
+ |
100 |
+each_ruby_install() { |
101 |
+ each_fakegem_install |
102 |
+ |
103 |
+ ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname) |
104 |
+ ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname) |
105 |
+} |