summaryrefslogtreecommitdiff
path: root/dev-ruby/json
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-27 03:04:35 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-10-27 03:04:35 +0000
commit83d9fce566bb89f6976f36f5314bfc88b6d261fa (patch)
tree8d8a18f75ff0a6a98313046fcd757ee0135db98c /dev-ruby/json
parentd0349ca0f4903608beca459a9db2068dab9fa6ea (diff)
gentoo auto-resync : 27:10:2024 - 03:04:35
Diffstat (limited to 'dev-ruby/json')
-rw-r--r--dev-ruby/json/Manifest2
-rw-r--r--dev-ruby/json/json-2.7.4.ebuild51
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/json/Manifest b/dev-ruby/json/Manifest
index 77cc869f903d..26740def3140 100644
--- a/dev-ruby/json/Manifest
+++ b/dev-ruby/json/Manifest
@@ -1,5 +1,7 @@
DIST json-2.7.2.tar.gz 125814 BLAKE2B 450c9495053c762446e77997bdc7e0291f8baf160a4da7e56d04ed18aa5629a11f1309e40bab0849692433392cfba8a19dda905fe5044ab363591a49e6e18b60 SHA512 5c432c293eed69b9810b5d0ca782383ba3f206d561641c354515e357c663ed4a4fb5ae35d3336d48605f9e82156d2f14a7ec6fa26642351214f60d91bac84f0e
DIST json-2.7.3.tar.gz 825781 BLAKE2B 66f2cd428b8bbbdcfa67ed4f7b7f15f296b03e57bd1c8dc1795b4e4d9b0517d7d63daf490749979bdd96e66607ae1976127622d169bb4bc1b62c1894f665bd69 SHA512 b8ccc038ed2f0ccd851333dc849e0682af924d782ba2ec99db1f23e8da9e6780199ef325a367f82541f881f1b01fcd904c46a1d9e22ee2d3e90afceba0afa2d2
+DIST json-2.7.4.tar.gz 825987 BLAKE2B 87d4ffb749994978e74262be17c818e10625d60b60f67fbcf5c82df1cd4b3eb251a74ae216a6e44c56105bc33e26ab047f67023ee6028245aea5a54cf9a146c2 SHA512 1aa9ebfce80d961166a20ed0bf6c02c34b6c9f83432524810a2c076d4befd513672662746ba42cfc2657a13af604fc99da1b5a5ab70202af4e67bdf38ec6b89e
EBUILD json-2.7.2-r1.ebuild 1513 BLAKE2B 1a513f8abdbab09e9774fa51888041a2459adca566ab709806620d4fbe8795bc68ae28c6bc68ca7d5b286cf88cfd59e36a8f7617ae1247f248913218e150e8e7 SHA512 fc8c5b438b3098352e8d099bcaa1ff495d45e23f77603ae5e1b1bc95a0954dfaede47f05bb5da48b2e0179351336792d994c995a839831f6c943aeb3fab0f5c1
EBUILD json-2.7.3.ebuild 1522 BLAKE2B a7daf622b11d40011ef1155e803d307ed336b91f99e6efd12f79093032eae30e69c6ebddf0bb264fe0278153554f23f2f066cf6935adab2183a44565b3dd432c SHA512 b8ca40cba5c60da6a6389ebc7da058c432f1ce2b4a07807604aad69e32f4fd82121bf9045e4f02f1a903338c8697894a1e9940345dd3aa51aa1252df04f9aaef
+EBUILD json-2.7.4.ebuild 1522 BLAKE2B a7daf622b11d40011ef1155e803d307ed336b91f99e6efd12f79093032eae30e69c6ebddf0bb264fe0278153554f23f2f066cf6935adab2183a44565b3dd432c SHA512 b8ca40cba5c60da6a6389ebc7da058c432f1ce2b4a07807604aad69e32f4fd82121bf9045e4f02f1a903338c8697894a1e9940345dd3aa51aa1252df04f9aaef
MISC metadata.xml 384 BLAKE2B 6be81a5f361a533321e25f8fc8444201e318416f9164fc02ffa34e9471fd1da8f1bcab39e8f5bc5945948665769bb67caac0bf8e826e3213bd592e4191e1a788 SHA512 82119cb0bf902f6d3924f8a13db0ae3c5e7881c5d7848790e2614e3d2d2951321519c0bdc6cb942010186e5e1013c102cad328c389cfa2c54d96533bca7ea886
diff --git a/dev-ruby/json/json-2.7.4.ebuild b/dev-ruby/json/json-2.7.4.ebuild
new file mode 100644
index 000000000000..fcb2a51b4bd1
--- /dev/null
+++ b/dev-ruby/json/json-2.7.4.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
+}