From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1686845-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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 D547F158042 for <garchives@archives.gentoo.org>; Tue, 5 Nov 2024 06:51:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E42F9E07A9; Tue, 5 Nov 2024 06:51:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id C8AD1E07A9 for <gentoo-commits@lists.gentoo.org>; Tue, 5 Nov 2024 06:51:36 +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 112C5340754 for <gentoo-commits@lists.gentoo.org>; Tue, 5 Nov 2024 06:51:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6A8B91CA7 for <gentoo-commits@lists.gentoo.org>; Tue, 5 Nov 2024 06:51:34 +0000 (UTC) From: "Hans de Graaff" <graaff@gentoo.org> 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" <graaff@gentoo.org> Message-ID: <1730789457.a36f825c673f2503e545aa70aee6df12bb0007eb.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.7.6.ebuild X-VCS-Directories: dev-ruby/json/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: a36f825c673f2503e545aa70aee6df12bb0007eb X-VCS-Branch: master Date: Tue, 5 Nov 2024 06:51:34 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8e20a3d8-d599-493c-bc2e-7ae75b1ccb71 X-Archives-Hash: 238cfe2c8eb7b06b09b943b6622be3b2 commit: a36f825c673f2503e545aa70aee6df12bb0007eb Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Tue Nov 5 06:50:57 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Tue Nov 5 06:50:57 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a36f825c dev-ruby/json: add 2.7.6 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/json/Manifest | 1 + dev-ruby/json/json-2.7.6.ebuild | 51 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest index c6e522fc327f..8ef9a2bc9d9a 100644 --- a/dev-ruby/json/Manifest +++ b/dev-ruby/json/Manifest @@ -2,3 +2,4 @@ DIST json-2.7.2.tar.gz 125814 BLAKE2B 450c9495053c762446e77997bdc7e0291f8baf160a DIST json-2.7.3.tar.gz 825781 BLAKE2B 66f2cd428b8bbbdcfa67ed4f7b7f15f296b03e57bd1c8dc1795b4e4d9b0517d7d63daf490749979bdd96e66607ae1976127622d169bb4bc1b62c1894f665bd69 SHA512 b8ccc038ed2f0ccd851333dc849e0682af924d782ba2ec99db1f23e8da9e6780199ef325a367f82541f881f1b01fcd904c46a1d9e22ee2d3e90afceba0afa2d2 DIST json-2.7.4.tar.gz 825987 BLAKE2B 87d4ffb749994978e74262be17c818e10625d60b60f67fbcf5c82df1cd4b3eb251a74ae216a6e44c56105bc33e26ab047f67023ee6028245aea5a54cf9a146c2 SHA512 1aa9ebfce80d961166a20ed0bf6c02c34b6c9f83432524810a2c076d4befd513672662746ba42cfc2657a13af604fc99da1b5a5ab70202af4e67bdf38ec6b89e DIST json-2.7.5.tar.gz 826340 BLAKE2B 6078a6496d6b8503e40cdb176516b4a1ad487c1a351d1bc77f98149a7b8380118b8d9d65e125905a5ba53a28bcbf48504b7b27c15893fe551c9ed124405d9096 SHA512 73d542e59669addf5bc514c9945dfbaf800b2b4384f8c673d7844d2712c55a6b22a952fb70541d34dbc9d9ac5e9dd3d7b892002cc1d129947a2b6fdad031879c +DIST json-2.7.6.tar.gz 827356 BLAKE2B f2768102750dbd3e05410bf406a259efbc539feb18afc1684ad13f2c8fc2ac58e20ba0b722c0a411de7b04dc14be4fc0a9441901f28d442450e5c5f25aa42141 SHA512 d1f9c6c36a3c7ae8adb7f3900c0d8b5ca43a398837bc7eb6c8e915c1039f65fd575a863343e2af1887101439c88b074545f588bfb19cd11c629493b1a50689fc diff --git a/dev-ruby/json/json-2.7.6.ebuild b/dev-ruby/json/json-2.7.6.ebuild new file mode 100644 index 000000000000..fcb2a51b4bd1 --- /dev/null +++ b/dev-ruby/json/json-2.7.6.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +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`|""|' \ + 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 +}