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/json/
Date: Mon, 01 May 2017 04:35:33
Message-Id: 1493613307.a79aa7d20029dc90c9a12f433680b4846447b9cf.graaff@gentoo
1 commit: a79aa7d20029dc90c9a12f433680b4846447b9cf
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 1 04:35:07 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Mon May 1 04:35:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a79aa7d2
7
8 dev-ruby/json: add 2.1.0
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-ruby/json/Manifest | 1 +
13 dev-ruby/json/json-2.1.0.ebuild | 73 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest
17 index 20aa44675e1..f7e21a2bc64 100644
18 --- a/dev-ruby/json/Manifest
19 +++ b/dev-ruby/json/Manifest
20 @@ -4,3 +4,4 @@ DIST json-2.0.1.gem 138240 SHA256 cbea6bfe7bf5162c0fb71f6b0ab2c3108ef05bd0ea7b2f
21 DIST json-2.0.2.gem 138752 SHA256 400f60ac8282da80764c5d6fbb04c096390a85950bb488652abc1eb993b411d2 SHA512 88f5d5ad2277e29545dc88850637f5b4eb5919dd1bd5dfeefa79013c0a62ba97f7907e301509fef3d6b503c8a3b6e998f22c3abdcfeda633dbe3edd7d1389279 WHIRLPOOL 9e66182514cf44dc026f8e246bb1121f396f03c264e1e7be4ea16f4fe17367acf8986361687a9b8d4821e5587b4a28cf8c5fc6ad13a1f1c0f3d8f8dc4dae8659
22 DIST json-2.0.3.gem 138752 SHA256 14e75b0de38ca662ef6a8f86ffb30fdf3516ba5cdae60c04369c181a4909fc32 SHA512 9041ebe6abc52db3ae5bc8b309148965e8e04931999685333a59ea85cf3d47c323554e58a10f2ee4e80a1815540d2a93fb49c981e76d4806a9d43842303778c8 WHIRLPOOL 008d7144e753ef38c78750613e7843839bf99306a86a09444ee4bdefa8d81a2d024e208c5998fce3f50deefa45cbb143b4a8c2b6f280b90353063d6eb389369c
23 DIST json-2.0.4.gem 138752 SHA256 ee1361f37fbd9f06d0de3976cd4320a84119aa41fa7f321eb67244404add3114 SHA512 24105aa06c205b6fe1cd835822d71b81299fdc47a45f48dd8f513f68f7fd12cdb51df476bcaef640916737d22be3156848ee4c9922c4a61aed5ca2d4d0d21c86 WHIRLPOOL 179f95dbfe21fbb8c3a8f97281b93892c167c7e3325d6ff182c0d0e4cc9e3a17bcea118311001756937c1e0e4be09ed7f117ffc824c24df18fc5cc5a31db93ce
24 +DIST json-2.1.0.gem 140800 SHA256 b76fd09b881088c6c64a12721a1528f2f747a1c2ee52fab4c1f60db8af946607 SHA512 bffbe462e952bca321d4325ecb9c5e9f61e51cad13758581ecfaa6a038bac4e30dc7db50bd897086a5592f6fc437d0e0909f91e279aaf4dd71cf127100c3550b WHIRLPOOL 94140475051d90e9b207c6d0224483b5ee0c371a27b7a4aafc612bc2e828cffb350afd4001ba20a3b5ddb124561da960cdb0d757bfbfbba031942d6bbb9cc641
25
26 diff --git a/dev-ruby/json/json-2.1.0.ebuild b/dev-ruby/json/json-2.1.0.ebuild
27 new file mode 100644
28 index 00000000000..ef2c8a1174f
29 --- /dev/null
30 +++ b/dev-ruby/json/json-2.1.0.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +USE_RUBY="ruby21 ruby22 ruby23 ruby24"
37 +
38 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
39 +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
40 +RUBY_FAKEGEM_DOCDIR="doc"
41 +
42 +RUBY_FAKEGEM_GEMSPEC="json.gemspec"
43 +
44 +inherit multilib ruby-fakegem
45 +
46 +DESCRIPTION="A JSON implementation as a Ruby extension"
47 +HOMEPAGE="https://github.com/flori/json"
48 +LICENSE="Ruby"
49 +
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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"
51 +SLOT="2"
52 +IUSE=""
53 +
54 +RDEPEND="${RDEPEND}"
55 +DEPEND="${DEPEND}
56 + dev-util/ragel"
57 +
58 +ruby_add_bdepend "dev-ruby/rake
59 + doc? ( dev-ruby/rdoc )"
60 +
61 +all_ruby_prepare() {
62 + # Avoid building the extension twice!
63 + # And use rdoc instead of sdoc which we don't have packaged
64 + # And don't call git to list files. We're using the pregenerated spec anyway.
65 + sed -i \
66 + -e '/task :test/ s|:compile,||' \
67 + -e 's| => :clean||' \
68 + -e 's|sdoc|rdoc|' \
69 + -e 's|`git ls-files`|""|' \
70 + Rakefile || die "rakefile fix failed"
71 +
72 + # Remove hardcoded and broken -O setting.
73 + sed -i -e '/^ \(if\|unless\)/,/^ end/ s:^:#:' \
74 + -e '/^unless/,/^end/ s:^:#:' ext/json/ext/*/extconf.rb || die
75 +
76 + # Avoid setting gem since it will not be available yet when installing
77 + sed -i -e '/gem/ s:^:#:' tests/test_helper.rb || die
78 +}
79 +
80 +each_ruby_configure() {
81 + for ext in parser generator ; do
82 + ${RUBY} -Cext/json/ext/${ext} extconf.rb || die
83 + done
84 +}
85 +
86 +each_ruby_compile() {
87 + for ext in parser generator ; do
88 + emake V=1 -Cext/json/ext/${ext}
89 + cp ext/json/ext/${ext}/${ext}$(get_modname) ext/json/ext/ || die
90 + done
91 +}
92 +
93 +each_ruby_test() {
94 + for t in pure ext ; do
95 + JSON=${T} ${RUBY} -S rake do_test_${t} || die
96 + done
97 +}
98 +
99 +each_ruby_install() {
100 + each_fakegem_install
101 +
102 + ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname)
103 + ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname)
104 +}