1 |
commit: 97b8cdfac17a7fd3f36a49248ce7ebd14cdb6560 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 05:01:03 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 05:03:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97b8cdfa |
7 |
|
8 |
dev-ruby/json: add 2.6.2 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
dev-ruby/json/Manifest | 1 + |
13 |
dev-ruby/json/json-2.6.2.ebuild | 50 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest |
17 |
index b454b5921bff..d6608f52e84d 100644 |
18 |
--- a/dev-ruby/json/Manifest |
19 |
+++ b/dev-ruby/json/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST json-2.5.1.tar.gz 131183 BLAKE2B 2ccdf5921ef476b66cb1dbf72cc01763636c82b0eb5d0a5cfc029e14177c7c6766464e7852b11c2424db401f5b931cb64c01d3952929236c9979378a7928ea59 SHA512 4df7ec9b86692376e89c2019c2c1ab3ae9af28fb4742864acc6f985c0551fc10795742cc1124d6435e820617c00d4c5f4aa6c83b21d2fff43ed05cd9d0a89087 |
22 |
DIST json-2.6.1.tar.gz 132705 BLAKE2B 5a8e83b8d11e360402324427de5d2520f39ee1567e2fbf3c92c738546792bb5dec4a9a3c36f3286a3de63161bb5d9f9e7b059c2560f7a3fa50271ce2aa3dc0fc SHA512 e9d0ef77d77ae54a0300b490e3e5c445d0b5aefbce1b160454916bd4f4f8f943131223047e6a7416347cc40d9e7fb1870101c3cbf3a2663a9053f07bdfbd13cf |
23 |
+DIST json-2.6.2.tar.gz 133073 BLAKE2B f81202ee284d3a6afe5c6f3ddccde76655e170b64883e37bc38c47bd63d731f8dca4e8a57da15e275ad64af5e1e967def69590d1105c0069b92f322919782a84 SHA512 9c1c16ef462e7736c0306781573f32b96a0a53368ed24b4d1ae97953df62956b6cd72dcd20ed07708b0e1e3dd71baa61551bde452c87d7efac41267c0ee60b33 |
24 |
|
25 |
diff --git a/dev-ruby/json/json-2.6.2.ebuild b/dev-ruby/json/json-2.6.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..c92a49456688 |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/json/json-2.6.2.ebuild |
30 |
@@ -0,0 +1,50 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+USE_RUBY="ruby26 ruby27 ruby30 ruby31" |
36 |
+ |
37 |
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" |
38 |
+RUBY_FAKEGEM_DOCDIR="doc" |
39 |
+ |
40 |
+RUBY_FAKEGEM_GEMSPEC="json.gemspec" |
41 |
+ |
42 |
+RUBY_FAKEGEM_EXTENSIONS=(ext/json/ext/parser/extconf.rb ext/json/ext/generator/extconf.rb) |
43 |
+ |
44 |
+inherit ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="A JSON implementation as a Ruby extension" |
47 |
+HOMEPAGE="https://github.com/flori/json" |
48 |
+SRC_URI="https://github.com/flori/json/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+LICENSE="Ruby" |
50 |
+ |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-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 |
+ test? ( dev-ruby/test-unit:2 )" |
62 |
+ |
63 |
+all_ruby_prepare() { |
64 |
+ # Avoid building the extension twice! |
65 |
+ # And use rdoc instead of sdoc which we don't have packaged |
66 |
+ # And don't call git to list files. We're using the pregenerated spec anyway. |
67 |
+ sed -i \ |
68 |
+ -e '/task :test/ s|:compile,||' \ |
69 |
+ -e 's| => :clean||' \ |
70 |
+ -e 's|sdoc|rdoc|' \ |
71 |
+ -e 's|`git ls-files`|""|' \ |
72 |
+ Rakefile || die "rakefile fix failed" |
73 |
+ |
74 |
+ # Remove hardcoded and broken -O setting. |
75 |
+ sed -i -e '/^ \(if\|unless\)/,/^ end/ s:^:#:' \ |
76 |
+ -e '/^unless/,/^end/ s:^:#:' ext/json/ext/*/extconf.rb || die |
77 |
+ |
78 |
+ # Avoid setting gem since it will not be available yet when installing |
79 |
+ sed -i -e '/gem/ s:^:#:' tests/test_helper.rb || die |
80 |
+} |