commit: 382da9e191989f5c3e7029649497af8a1e38e3eb Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri Sep 19 07:38:49 2025 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Sep 19 08:26:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=382da9e1
dev-ruby/json: add 2.14.1 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/json/Manifest | 1 + dev-ruby/json/json-2.14.1.ebuild | 56 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest index 9ce7d69b4c45..35e00c620dc9 100644 --- a/dev-ruby/json/Manifest +++ b/dev-ruby/json/Manifest @@ -5,3 +5,4 @@ DIST json-2.12.2.tar.gz 848560 BLAKE2B 489660e253a40c4274cc7d1c45a959a32674d2bab DIST json-2.13.0.tar.gz 850890 BLAKE2B 04f8042cf57c3008c835158a270e481786b135247eef499c6c7d5b6c17bdb9a5e34d684098f5fc85c78c6401d94886e8cc3a0f487f16b1c36286008edbe8e8f3 SHA512 ca9512cb6f54c3c912320f0c879cfedd65eded7e75d6914c71d4e9fcb2bfd49f93101933526b33c7ae908485a5a986ccd983b013f9ac2e75bc82dd056c08ee3a DIST json-2.13.1.tar.gz 851179 BLAKE2B bf8710c90572f9808beb478c0114d889416b109f8d2b00210cd05717cac497eb0e696f4abdb56c994efb7341f7ed9d7f2e92d3174654438b4160bc08a6dad430 SHA512 957b97f1940d7b21559348458766b0dd101a487551f88be7735eaa98a2de99329a979193dd17a7d9390f8cf584b2ac2313b338e3a89f0df54e383ee1ce8b3bd8 DIST json-2.13.2.tar.gz 851603 BLAKE2B 9770e4892514f370c34c043582e519ba68a077eb246cd3a7164056572aca1570754362b7cf7cb5e2d39afa0204913d19b1bdb32b6b34253c910736940ac4793d SHA512 62a48257ccd7a34accd9926fe1e6d2ca2599eb86e7bf5239b473603ec4fc00928c56f46b8bae75880b62df3a9a8a4fb9000b61319a1b0a1987cfc9bde1422fa7 +DIST json-2.14.1.tar.gz 855875 BLAKE2B f989da0cf149f60b2539d36f54ad1b423033c42da140abc375990a43db0a76bb6b9277c4fbae77d524e64f314311b7eeef0eed896f3acaf30cfaf3b4706d3709 SHA512 82aedfce4c838ef177c5fdbc87107787343d22b1f333d44aef8cb77ed586d50d02128be2c8f3eaa8dcc9423ea46cad51667538fd72845566cf89c12229aa1c0e diff --git a/dev-ruby/json/json-2.14.1.ebuild b/dev-ruby/json/json-2.14.1.ebuild new file mode 100644 index 000000000000..35899578f2ec --- /dev/null +++ b/dev-ruby/json/json-2.14.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34" + +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_GEMSPEC="json.gemspec" + +RUBY_FAKEGEM_EXTENSIONS=(ext/json/ext/parser/extconf.rb ext/json/ext/generator/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/json/ext + +inherit ruby-fakegem + +DESCRIPTION="A JSON implementation as a Ruby extension" +HOMEPAGE="https://github.com/ruby/json" +SRC_URI="https://github.com/ruby/json/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="|| ( BSD-2 Ruby )" + +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc test" + +DEPEND="dev-util/ragel" + +ruby_add_bdepend "dev-ruby/rake + doc? ( dev-ruby/rdoc ) + test? ( + dev-ruby/test-unit:2 + dev-ruby/test-unit-ruby-core + )" + +all_ruby_prepare() { + # Avoid building the extension twice! + # And use rdoc instead of sdoc which we don't have packaged + # And don't call git to list files. We're using the pregenerated spec anyway. + sed -i \ + -e '/task :test/ s|:compile||' \ + -e 's| => :clean||' \ + -e 's|sdoc|rdoc|' \ + -e 's|`git ls-files`|""|' \ + -e '/extensiontask/I s:^:#:' \ + Rakefile || die "rakefile fix failed" + + sed -e 's/__dir__/"."/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid setting gem since it will not be available yet when installing + sed -i -e '/gem/ s:^:#:' test/json/test_helper.rb || die + + # Fix version number + sed -e 's/2.8.2/2.9.0/' -i lib/json/version.rb || die +}
