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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A8413158088 for ; Mon, 27 Oct 2025 16:30:05 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 92C3B341E5F for ; Mon, 27 Oct 2025 16:30:05 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5E0D71102F2; Mon, 27 Oct 2025 16:30:04 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 54AD91102F2 for ; Mon, 27 Oct 2025 16:30:04 +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 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0DCDE341A11 for ; Mon, 27 Oct 2025 16:30:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6EF0C3A90 for ; Mon, 27 Oct 2025 16:30:02 +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: <1761582589.5a08acf9b0651fea7408bd29da908e2e8b662b62.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.15.2.ebuild X-VCS-Directories: dev-ruby/json/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 5a08acf9b0651fea7408bd29da908e2e8b662b62 X-VCS-Branch: master Date: Mon, 27 Oct 2025 16:30:02 +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: fa7c8846-dba2-4745-b110-6c28a2d2fc2f X-Archives-Hash: 06023147b7375e2b868ae8d5ba15eb3e commit: 5a08acf9b0651fea7408bd29da908e2e8b662b62 Author: Hans de Graaff gentoo org> AuthorDate: Mon Oct 27 12:21:04 2025 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Oct 27 16:29:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a08acf9 dev-ruby/json: add 2.15.2 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/json/Manifest | 1 + dev-ruby/json/json-2.15.2.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest index 2781d46c25f9..34328c04922b 100644 --- a/dev-ruby/json/Manifest +++ b/dev-ruby/json/Manifest @@ -4,3 +4,4 @@ DIST json-2.13.2.tar.gz 851603 BLAKE2B 9770e4892514f370c34c043582e519ba68a077eb2 DIST json-2.14.1.tar.gz 855875 BLAKE2B f989da0cf149f60b2539d36f54ad1b423033c42da140abc375990a43db0a76bb6b9277c4fbae77d524e64f314311b7eeef0eed896f3acaf30cfaf3b4706d3709 SHA512 82aedfce4c838ef177c5fdbc87107787343d22b1f333d44aef8cb77ed586d50d02128be2c8f3eaa8dcc9423ea46cad51667538fd72845566cf89c12229aa1c0e DIST json-2.15.0.tar.gz 856404 BLAKE2B 89a9409b678afa87cdf90da5c37e688d0ec78869c35803c3a31fee74b337b014f5c71fb0bc8b17d5d3f012e103450da17dfd5fa331adbc0d86db217c452eccb4 SHA512 5008c9c548ae60a142afeb852dda062047400fb8a6fcdcf5e50f38ec094d922a20c4197c04587c9de1849d8bb841bb1e9a73c126fbc8b3fb16dfd377876e95a0 DIST json-2.15.1.tar.gz 856795 BLAKE2B 814459f9628b02c6d788cc9ce82c53ce62b6d351100d499e5792cef53822c14d1cfc11882065508930322c0ca32482ad7e2ed64b2d07bf35ae6e6fb8b6ed8b03 SHA512 aa14367863eb79fdbe3bab0a8d69440e1e463663513e2737995ce940d1ae8795489d13026682b1557f0f1d534421a166731dd0172d7f64f3186da4ea7d48c118 +DIST json-2.15.2.tar.gz 857225 BLAKE2B 882854d354524bfa319cd20b8f18f854563323c831ab2d23e698eae8280e2166c7861173934897ea05ce05dff0cb9e0f3f80537278ca0b16d373a070f2e76b58 SHA512 320e5a6e56829fe32c73e6d0bb6a850fb5e9f123bec01f935ace892350c99e7e94f5bca3d98408ae83bc22f2aa96adc150da727dda7372b92877c2d2e6a91b56 diff --git a/dev-ruby/json/json-2.15.2.ebuild b/dev-ruby/json/json-2.15.2.ebuild new file mode 100644 index 000000000000..43b3a77483b8 --- /dev/null +++ b/dev-ruby/json/json-2.15.2.ebuild @@ -0,0 +1,53 @@ +# 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 +}