1 |
commit: 048e91e5c957d66155b48ecb315d6a04b2e24ae3 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 11 05:59:36 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 11 15:01:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=048e91e5 |
7 |
|
8 |
dev-ruby/json: cleanup |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/json/Manifest | 1 - |
14 |
dev-ruby/json/json-2.3.1.ebuild | 73 ----------------------------------------- |
15 |
dev-ruby/json/json-2.5.1.ebuild | 68 -------------------------------------- |
16 |
3 files changed, 142 deletions(-) |
17 |
|
18 |
diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest |
19 |
index f1761ddf79a..a5e364879cc 100644 |
20 |
--- a/dev-ruby/json/Manifest |
21 |
+++ b/dev-ruby/json/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
DIST json-2.3.0.gem 114176 BLAKE2B 329f1305a0cae3d44c74cc7475c7340e86b8447d5e4ffdd5854620669ee4ef5bba0ed7dbc617b0beffb7bfd8b3d79d46ce26feef37685413a4a5a9c230d0ce0c SHA512 9086a64b664f2d774439c0c9f10c2c1cd897684050eb60f8e3ad9256e0b9541deec3bd22fab0bdcf66e3d5bc795720c6923d514b6edb824c9962fc22f162b332 |
24 |
-DIST json-2.3.1.gem 118784 BLAKE2B 6852f5d1733fd5d596b44d095c37d11a129b02fc61dc81afa90aef3623eefdb5515f6755dce42f055954baf2ac45e87620940ccd7c2c839501945923dbe62d18 SHA512 a9a0c54ac1faacc412ad708b630c8bad8c6f99db6862e8fc80c46207f0f0972433fbfe51d0c93a5d91b91c59b1fef5ad8e64e36cc49e32b3e51ff390a380a2a9 |
25 |
DIST json-2.5.1.tar.gz 131183 BLAKE2B 2ccdf5921ef476b66cb1dbf72cc01763636c82b0eb5d0a5cfc029e14177c7c6766464e7852b11c2424db401f5b931cb64c01d3952929236c9979378a7928ea59 SHA512 4df7ec9b86692376e89c2019c2c1ab3ae9af28fb4742864acc6f985c0551fc10795742cc1124d6435e820617c00d4c5f4aa6c83b21d2fff43ed05cd9d0a89087 |
26 |
|
27 |
diff --git a/dev-ruby/json/json-2.3.1.ebuild b/dev-ruby/json/json-2.3.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index a71902f0775..00000000000 |
30 |
--- a/dev-ruby/json/json-2.3.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,73 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
-USE_RUBY="ruby25 ruby26 ruby27" |
38 |
- |
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 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-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 |
- test? ( dev-ruby/test-unit:2 )" |
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 |
-} |
106 |
|
107 |
diff --git a/dev-ruby/json/json-2.5.1.ebuild b/dev-ruby/json/json-2.5.1.ebuild |
108 |
deleted file mode 100644 |
109 |
index ad69f8dec5d..00000000000 |
110 |
--- a/dev-ruby/json/json-2.5.1.ebuild |
111 |
+++ /dev/null |
112 |
@@ -1,68 +0,0 @@ |
113 |
-# Copyright 1999-2021 Gentoo Authors |
114 |
-# Distributed under the terms of the GNU General Public License v2 |
115 |
- |
116 |
-EAPI=7 |
117 |
-USE_RUBY="ruby25 ruby26 ruby27 ruby30" |
118 |
- |
119 |
-RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
120 |
-RUBY_FAKEGEM_DOCDIR="doc" |
121 |
- |
122 |
-RUBY_FAKEGEM_GEMSPEC="json.gemspec" |
123 |
- |
124 |
-inherit multilib ruby-fakegem |
125 |
- |
126 |
-DESCRIPTION="A JSON implementation as a Ruby extension" |
127 |
-HOMEPAGE="https://github.com/flori/json" |
128 |
-SRC_URI="https://github.com/flori/json/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
129 |
-LICENSE="Ruby" |
130 |
- |
131 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
132 |
-SLOT="2" |
133 |
-IUSE="" |
134 |
- |
135 |
-RDEPEND="${RDEPEND}" |
136 |
-DEPEND="${DEPEND} |
137 |
- dev-util/ragel" |
138 |
- |
139 |
-ruby_add_bdepend "dev-ruby/rake |
140 |
- doc? ( dev-ruby/rdoc ) |
141 |
- test? ( dev-ruby/test-unit:2 )" |
142 |
- |
143 |
-all_ruby_prepare() { |
144 |
- # Avoid building the extension twice! |
145 |
- # And use rdoc instead of sdoc which we don't have packaged |
146 |
- # And don't call git to list files. We're using the pregenerated spec anyway. |
147 |
- sed -i \ |
148 |
- -e '/task :test/ s|:compile,||' \ |
149 |
- -e 's| => :clean||' \ |
150 |
- -e 's|sdoc|rdoc|' \ |
151 |
- -e 's|`git ls-files`|""|' \ |
152 |
- Rakefile || die "rakefile fix failed" |
153 |
- |
154 |
- # Remove hardcoded and broken -O setting. |
155 |
- sed -i -e '/^ \(if\|unless\)/,/^ end/ s:^:#:' \ |
156 |
- -e '/^unless/,/^end/ s:^:#:' ext/json/ext/*/extconf.rb || die |
157 |
- |
158 |
- # Avoid setting gem since it will not be available yet when installing |
159 |
- sed -i -e '/gem/ s:^:#:' tests/test_helper.rb || die |
160 |
-} |
161 |
- |
162 |
-each_ruby_configure() { |
163 |
- for ext in parser generator ; do |
164 |
- ${RUBY} -Cext/json/ext/${ext} extconf.rb || die |
165 |
- done |
166 |
-} |
167 |
- |
168 |
-each_ruby_compile() { |
169 |
- for ext in parser generator ; do |
170 |
- emake V=1 -Cext/json/ext/${ext} |
171 |
- cp ext/json/ext/${ext}/${ext}$(get_modname) ext/json/ext/ || die |
172 |
- done |
173 |
-} |
174 |
- |
175 |
-each_ruby_install() { |
176 |
- each_fakegem_install |
177 |
- |
178 |
- ruby_fakegem_newins ext/json/ext/generator$(get_modname) lib/json/ext/generator$(get_modname) |
179 |
- ruby_fakegem_newins ext/json/ext/parser$(get_modname) lib/json/ext/parser$(get_modname) |
180 |
-} |