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: Sat, 12 Dec 2015 07:35:58
Message-Id: 1449905718.ac7698cf1c00434ccb707e5ee6f175e90e44bb91.graaff@gentoo
1 commit: ac7698cf1c00434ccb707e5ee6f175e90e44bb91
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 12 06:51:06 2015 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 12 07:35:18 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac7698cf
7
8 dev-ruby/json: cleanup
9
10 Package-Manager: portage-2.2.24
11
12 dev-ruby/json/Manifest | 1 -
13 dev-ruby/json/json-1.8.0.ebuild | 68 ----------------------------------------
14 dev-ruby/json/json-1.8.2.ebuild | 69 -----------------------------------------
15 3 files changed, 138 deletions(-)
16
17 diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest
18 index c360581..61fe0cc 100644
19 --- a/dev-ruby/json/Manifest
20 +++ b/dev-ruby/json/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST json-1.8.0.gem 148992 SHA256 87e49cccff3fb2091c53141a605956e8d9a252cda43128714f9fdb51d0ca1729 SHA512 7a8ae0d975e10be06d1026df6c9736e8e724814ea7ef8c92b512c60fd7b4ac18e46a9f44615f57407e58decebc4891e2e97b78a177f7e283cc540619264c4400 WHIRLPOOL 159cd8d1cf95d6f7ca5ed16ec294015f873453a1ec8f9eb3667442c0ca582487e5dfcd78d2106c72c5a3563e1ace5b69f2c256c05a35630f09c3499b95f12505
23 DIST json-1.8.2.gem 152064 SHA256 256f73d107635f54e3dd84daba65da7b08f9d6a6e6aeb046db6a46b98bd8fb7f SHA512 5c94ec2c5378f7f54cd87a2e265b058e80031d2dd29daf14639c80ba0ac285a527ab7961f5a2cd1e483f455fd8f8c88575950822b7b2d431aa7b2b9c8be819c1 WHIRLPOOL dc17e0c011523434ed29e428a2658ebe58d08df8252e7ee8990882b6d17c19354b3e4ba6985a2a45e4b94932ad265698197ba64ef891f38d3be154da4edde8cb
24 DIST json-1.8.3.gem 152064 SHA256 8ca2091e26678fb989d66cdb9f0104f1307bc584b429c2fd783d51e4b3f14bdb SHA512 313f6016aca5eba4d4a14a72b60b3e9c5e863a6681eb9e499cacedb63969694be563990af0a44dae52963f07b6e6c7aa7e0876ab1348b214f53d925bdc5e83ea WHIRLPOOL 8c6dc26a578aedcd4bbc1e6ea95f2a72debe6bdaca5a4c2a4e70b81d9947048c6648b62d5546fa572084d37ba99ce199a177b87838be5cc3f11d8d0fa0f62a63
25
26 diff --git a/dev-ruby/json/json-1.8.0.ebuild b/dev-ruby/json/json-1.8.0.ebuild
27 deleted file mode 100644
28 index 879d13d..0000000
29 --- a/dev-ruby/json/json-1.8.0.ebuild
30 +++ /dev/null
31 @@ -1,68 +0,0 @@
32 -# Copyright 1999-2015 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -# $Id$
35 -
36 -EAPI=5
37 -USE_RUBY="ruby19 ruby20"
38 -
39 -RUBY_FAKEGEM_TASK_DOC="doc"
40 -RUBY_FAKEGEM_EXTRADOC="CHANGES TODO README.rdoc README-json-jruby.markdown"
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="http://json.rubyforge.org/"
49 -LICENSE="|| ( Ruby GPL-2 )"
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="0"
53 -IUSE=""
54 -
55 -RDEPEND="${RDEPEND}"
56 -DEPEND="${DEPEND}
57 - dev-util/ragel"
58 -
59 -ruby_add_bdepend "dev-ruby/rake"
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 '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 '/^unless/,/^end/ d' -e '/^ (if|unless)/,/^ end/ d' ext/json/ext/*/extconf.rb || die
74 -}
75 -
76 -each_ruby_compile() {
77 - # Since 1.5.0 a Java extension is provided but it does not compile.
78 - if [[ $(basename ${RUBY}) != "jruby" ]]; then
79 - ${RUBY} -S rake compile || die "extension compile failed"
80 - fi
81 -}
82 -
83 -each_ruby_test() {
84 - JSON=pure \
85 - ${RUBY} -Iext:lib -S testrb tests/test_*.rb || die "pure ruby tests failed"
86 -
87 - if [[ $(basename ${RUBY}) != "jruby" ]]; then
88 - JSON=ext \
89 - ${RUBY} -Iext:lib -S testrb tests/test_*.rb || die "ext ruby tests failed"
90 - fi
91 -}
92 -
93 -each_ruby_install() {
94 - each_fakegem_install
95 - if [[ $(basename ${RUBY}) != "jruby" ]]; then
96 - ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname)
97 - ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname)
98 - fi
99 -}
100
101 diff --git a/dev-ruby/json/json-1.8.2.ebuild b/dev-ruby/json/json-1.8.2.ebuild
102 deleted file mode 100644
103 index 5cdc5aa..0000000
104 --- a/dev-ruby/json/json-1.8.2.ebuild
105 +++ /dev/null
106 @@ -1,69 +0,0 @@
107 -# Copyright 1999-2015 Gentoo Foundation
108 -# Distributed under the terms of the GNU General Public License v2
109 -# $Id$
110 -
111 -EAPI=5
112 -USE_RUBY="ruby19 ruby20"
113 -
114 -RUBY_FAKEGEM_TASK_DOC="doc"
115 -RUBY_FAKEGEM_EXTRADOC="CHANGES TODO README.rdoc README-json-jruby.markdown"
116 -RUBY_FAKEGEM_DOCDIR="doc"
117 -
118 -RUBY_FAKEGEM_GEMSPEC="json.gemspec"
119 -
120 -inherit multilib ruby-fakegem
121 -
122 -DESCRIPTION="A JSON implementation as a Ruby extension"
123 -HOMEPAGE="https://github.com/flori/json"
124 -LICENSE="|| ( Ruby GPL-2 )"
125 -
126 -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"
127 -SLOT="0"
128 -IUSE=""
129 -
130 -RDEPEND="${RDEPEND}"
131 -DEPEND="${DEPEND}
132 - dev-util/ragel"
133 -
134 -ruby_add_bdepend "dev-ruby/rake"
135 -
136 -all_ruby_prepare() {
137 - # Avoid building the extension twice!
138 - # And use rdoc instead of sdoc which we don't have packaged
139 - # And don't call git to list files. We're using the pregenerated spec anyway.
140 - sed -i \
141 - -e 's| => :compile||' \
142 - -e 's| => :clean||' \
143 - -e 's|sdoc|rdoc|' \
144 - -e 's|`git ls-files`|""|' \
145 - Rakefile || die "rakefile fix failed"
146 -
147 - # Remove hardcoded and broken -O setting.
148 - sed -i -e '/^ \(if\|unless\)/,/^ end/ s:^:#:' \
149 - -e '/^unless/,/^end/ s:^:#:' ext/json/ext/*/extconf.rb || die
150 -}
151 -
152 -each_ruby_compile() {
153 - # Since 1.5.0 a Java extension is provided but it does not compile.
154 - if [[ $(basename ${RUBY}) != "jruby" ]]; then
155 - ${RUBY} -S rake compile || die "extension compile failed"
156 - fi
157 -}
158 -
159 -each_ruby_test() {
160 - JSON=pure \
161 - ${RUBY} -Iext:lib -S testrb tests/test_*.rb || die "pure ruby tests failed"
162 -
163 - if [[ $(basename ${RUBY}) != "jruby" ]]; then
164 - JSON=ext \
165 - ${RUBY} -Iext:lib -S testrb tests/test_*.rb || die "ext ruby tests failed"
166 - fi
167 -}
168 -
169 -each_ruby_install() {
170 - each_fakegem_install
171 - if [[ $(basename ${RUBY}) != "jruby" ]]; then
172 - ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname)
173 - ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname)
174 - fi
175 -}