From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6635A15808A for ; Tue, 29 Jul 2025 05:49:48 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 4898D341E80 for ; Tue, 29 Jul 2025 05:49:48 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 227FD1102A2; Tue, 29 Jul 2025 05:49:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 16E481102A2 for ; Tue, 29 Jul 2025 05:49:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B8A00341E78 for ; Tue, 29 Jul 2025 05:49:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57D692868 for ; Tue, 29 Jul 2025 05:49:45 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1753768176.b7dba5a121bc16482ab6f7fbd67f4dffad908f27.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/json/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/json/Manifest dev-ruby/json/json-2.13.2.ebuild X-VCS-Directories: dev-ruby/json/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: b7dba5a121bc16482ab6f7fbd67f4dffad908f27 X-VCS-Branch: master Date: Tue, 29 Jul 2025 05:49:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c3720fb9-6149-49bd-8eba-6ac2c377d24f X-Archives-Hash: 899e7b041bd0bb96a24c5d8063cf4d67 commit: b7dba5a121bc16482ab6f7fbd67f4dffad908f27 Author: Hans de Graaff gentoo org> AuthorDate: Tue Jul 29 05:41:43 2025 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Tue Jul 29 05:49:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7dba5a1 dev-ruby/json: add 2.13.2 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/json/Manifest | 1 + dev-ruby/json/json-2.13.2.ebuild | 56 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest index 74205fbfe9d3..a412ca3391ac 100644 --- a/dev-ruby/json/Manifest +++ b/dev-ruby/json/Manifest @@ -4,4 +4,5 @@ DIST json-2.12.0.tar.gz 846422 BLAKE2B 7beaa7974f34804865e21729af95ef5f3283a9eae DIST json-2.12.2.tar.gz 848560 BLAKE2B 489660e253a40c4274cc7d1c45a959a32674d2bab32fc9d16820744d6acdd0ef07cddafa586e7b1266815d68c5dc3b8a50a75242cd18d6f0503cfa6ad065bb0a SHA512 ccaf9813fb51f735d0961b97ccb6f71d9c0124d3b179dc936664b502dd2136fe48df16cc0b2384bbb46d514f29ef0241ee7bcbea5677e608935a63c8a9dacf6e 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.7.2.tar.gz 125814 BLAKE2B 450c9495053c762446e77997bdc7e0291f8baf160a4da7e56d04ed18aa5629a11f1309e40bab0849692433392cfba8a19dda905fe5044ab363591a49e6e18b60 SHA512 5c432c293eed69b9810b5d0ca782383ba3f206d561641c354515e357c663ed4a4fb5ae35d3336d48605f9e82156d2f14a7ec6fa26642351214f60d91bac84f0e diff --git a/dev-ruby/json/json-2.13.2.ebuild b/dev-ruby/json/json-2.13.2.ebuild new file mode 100644 index 000000000000..35899578f2ec --- /dev/null +++ b/dev-ruby/json/json-2.13.2.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 +}