diff options
Diffstat (limited to 'dev-ruby')
26 files changed, 270 insertions, 451 deletions
diff --git a/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch b/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch deleted file mode 100644 index a44820c51a1f..000000000000 --- a/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 67bdba4e63cad218c02dbb3171ddd53353cc0b48 Mon Sep 17 00:00:00 2001 -From: Javier Jimenez <javiyu7@gmail.com> -Date: Thu, 5 Jan 2023 21:34:37 +0100 -Subject: [PATCH] Backports ruby 3.2 compatibility fixes for rails 6.1 - ---- - actionmailer/lib/action_mailer/base.rb | 2 +- - actionmailer/lib/action_mailer/rescuable.rb | 12 ++++++++---- - actionpack/lib/abstract_controller/base.rb | 10 +++++++--- - actionpack/lib/abstract_controller/callbacks.rb | 6 +++++- - actionview/lib/action_view/rendering.rb | 6 +++++- - activemodel/lib/active_model/attribute_methods.rb | 2 +- - activerecord/lib/active_record/relation.rb | 8 ++++++-- - 7 files changed, 33 insertions(+), 13 deletions(-) - -diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb -index 365b338d17af3..0c401f7aeb4d9 100644 ---- a/lib/active_model/attribute_methods.rb -+++ b/lib/active_model/attribute_methods.rb -@@ -478,6 +478,7 @@ def method_missing(method, *args, &block) - def attribute_missing(match, *args, &block) - __send__(match.target, match.attr_name, *args, &block) - end -+ ruby2_keywords(:attribute_missing) if respond_to?(:ruby2_keywords, true) - - # A +Person+ instance with a +name+ attribute can ask - # <tt>person.respond_to?(:name)</tt>, <tt>person.respond_to?(:name=)</tt>, diff --git a/dev-ruby/async/files/async-1.31.0-improve-robustness-test.patch b/dev-ruby/async/files/async-1.31.0-improve-robustness-test.patch deleted file mode 100644 index 240fe060e224..000000000000 --- a/dev-ruby/async/files/async-1.31.0-improve-robustness-test.patch +++ /dev/null @@ -1,49 +0,0 @@ -https://github.com/socketry/async/commit/8f590415c08943372e0227f01d3c32e92dbcbed0 -https://github.com/socketry/async/issues/218 - -From 8f590415c08943372e0227f01d3c32e92dbcbed0 Mon Sep 17 00:00:00 2001 -From: Samuel Williams <samuel.williams@oriontransfer.co.nz> -Date: Sun, 12 Mar 2023 20:33:48 +1300 -Subject: [PATCH] Improve robustness of test, fixes #218. - ---- a/spec/async/semaphore_spec.rb -+++ b/spec/async/semaphore_spec.rb -@@ -62,7 +62,7 @@ - 3.times.map do |i| - semaphore.async do |task| - order << i -- task.sleep(0.1) -+ task.yield - order << i - end - end.collect(&:result) -@@ -72,17 +72,22 @@ - - it 'allows tasks to execute concurrently' do - semaphore = Async::Semaphore.new(3) -- order = [] -+ concurrency = 0 -+ latch = Async::Condition.new - - 3.times.map do |i| - semaphore.async do |task| -- order << i -- task.sleep(0.1) -- order << i -+ concurrency += 1 -+ -+ if concurrency == 3 -+ latch.signal -+ else -+ latch.wait -+ end - end -- end.collect(&:result) -+ end.each(&:wait) - -- expect(order).to be == [0, 1, 2, 0, 1, 2] -+ expect(concurrency).to be == 3 - end - end - - diff --git a/dev-ruby/bcrypt_pbkdf/Manifest b/dev-ruby/bcrypt_pbkdf/Manifest index c20baab2eef8..f36c669a1cea 100644 --- a/dev-ruby/bcrypt_pbkdf/Manifest +++ b/dev-ruby/bcrypt_pbkdf/Manifest @@ -1 +1,2 @@ DIST bcrypt_pbkdf-1.1.1.gem 26112 BLAKE2B b61805dbee6c5b1d2e3fbc337cd6c618e7975fe2a6e8c5ec711efb9af35e996a4907a1c3d2d2a57feaed3820068b9e763f3748fc34fcc19562d85a72391ca73d SHA512 98a8590bdfd78f858ce1492da3d857d3cf411c84a51d6c52f12d37e88a7cb215ad576bc1ce4a16d059148eb18b361c180a14d9bb3a9b7ccd1b1a7bb9a6de8682 +DIST bcrypt_pbkdf-1.1.2.gem 26112 BLAKE2B a2c2c00b09c1b66107e4f7648671826d30b60c9fc2eade3b98d06071062b8629128150649afb0bcdd9712e03feaacfcb62bfb4499820e612bff09124a33e0917 SHA512 f24f247bce942cc836abbf14adcfabbcbde64b13dedda05f12279142f7e2725d138499cd29035d6084bb3e4a0f44a99a0f3326c76a2139466f70d2e796972e01 diff --git a/dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.1.2.ebuild b/dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.1.2.ebuild new file mode 100644 index 000000000000..12e2a1f367d5 --- /dev/null +++ b/dev-ruby/bcrypt_pbkdf/bcrypt_pbkdf-1.1.2.ebuild @@ -0,0 +1,42 @@ +# 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="CHANGELOG.md README.md" + +RUBY_FAKEGEM_EXTENSIONS=(ext/mri/extconf.rb) + +inherit ruby-fakegem + +DESCRIPTION="Implements bcrypt_pdkfd (a variant of PBKDF2 with bcrypt-based PRF)" +HOMEPAGE="https://github.com/net-ssh/bcrypt_pbkdf-ruby" + +LICENSE="MIT" +SLOT="1" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="test" + +ruby_add_bdepend "test? ( dev-ruby/minitest:5 virtual/ruby-ssl )" + +all_ruby_prepare() { + # Don't use a ruby-bundled version of libsodium + sed -i -e '/rbnacl\/libsodium/ s:^:#:' test/bcrypt_pnkdf/engine_test.rb || die + + # Avoid unneeded rake-compiler dependency + sed -e '/extensiontask/ s:^:#:' -e '/ExtensionTask/,/^end/ s:^:#:' \ + -e '/bundler/ s:^:#:' \ + -e '/rake_compiler_dock/ s:^:#:' \ + -i Rakefile || die + + sed -i -e 's/git ls-files/find * -print/' bcrypt_pbkdf.gemspec || die +} + +each_ruby_configure() { + each_fakegem_configure + # Some methods may not be inlined on x86 but they are not defined either, bug 629164 + + sed -i -e 's:-Wl,--no-undefined::' ext/mri/Makefile || die +} diff --git a/dev-ruby/contracts/files/contracts-0.17-ruby32.patch b/dev-ruby/contracts/files/contracts-0.17-ruby32.patch deleted file mode 100644 index 0f28e763ddac..000000000000 --- a/dev-ruby/contracts/files/contracts-0.17-ruby32.patch +++ /dev/null @@ -1,120 +0,0 @@ -https://github.com/egonSchiele/contracts.ruby/issues/300 -https://github.com/egonSchiele/contracts.ruby/commit/88fd1d841615e59c873d7da64d050d3a251634dd - -From 88fd1d841615e59c873d7da64d050d3a251634dd Mon Sep 17 00:00:00 2001 -From: PikachuEXE <pikachuexe@gmail.com> -Date: Wed, 5 Oct 2022 10:27:41 +0800 -Subject: [PATCH] * Update all references to Fixnum to Integer - -Deprecated in ruby 2.4 ---- a/lib/contracts/builtin_contracts.rb -+++ b/lib/contracts/builtin_contracts.rb -@@ -95,7 +95,7 @@ def self.[](*vals) - - # Takes a variable number of contracts. - # The contract passes if any of the contracts pass. -- # Example: <tt>Or[Fixnum, Float]</tt> -+ # Example: <tt>Or[Integer, Float]</tt> - class Or < CallableClass - def initialize(*vals) - super() -@@ -120,7 +120,7 @@ def to_s - - # Takes a variable number of contracts. - # The contract passes if exactly one of those contracts pass. -- # Example: <tt>Xor[Fixnum, Float]</tt> -+ # Example: <tt>Xor[Integer, Float]</tt> - class Xor < CallableClass - def initialize(*vals) - super() -@@ -146,7 +146,7 @@ def to_s - - # Takes a variable number of contracts. - # The contract passes if all contracts pass. -- # Example: <tt>And[Fixnum, Float]</tt> -+ # Example: <tt>And[Integer, Float]</tt> - class And < CallableClass - def initialize(*vals) - super() ---- a/spec/builtin_contracts_spec.rb -+++ b/spec/builtin_contracts_spec.rb -@@ -30,7 +30,7 @@ def passes(&some) - end - - describe "Num:" do -- it "should pass for Fixnums" do -+ it "should pass for Integers" do - passes { @o.double(2) } - end - ---- a/spec/fixtures/fixtures.rb -+++ b/spec/fixtures/fixtures.rb -@@ -100,11 +100,11 @@ def sum_three(vals) - end - end - -- Contract ({ :name => String, :age => Fixnum }) => nil -+ Contract ({ :name => String, :age => Integer }) => nil - def person(data) - end - -- Contract C::StrictHash[{ :name => String, :age => Fixnum }] => nil -+ Contract C::StrictHash[{ :name => String, :age => Integer }] => nil - def strict_person(data) - end - -@@ -119,7 +119,7 @@ def hash_complex_contracts(data) - def nested_hash_complex_contracts(data) - end - -- Contract C::KeywordArgs[:name => String, :age => Fixnum] => nil -+ Contract C::KeywordArgs[:name => String, :age => Integer] => nil - def person_keywordargs(name: "name", age: 10) - end - -@@ -529,30 +529,30 @@ def initialize(day, month) - @month = month - end - -- Contract C::None => Fixnum -+ Contract C::None => Integer - def silly_next_day! - self.day += 1 - end - -- Contract C::None => Fixnum -+ Contract C::None => Integer - def silly_next_month! - self.month += 1 - end - -- Contract C::None => Fixnum -+ Contract C::None => Integer - def clever_next_day! - return clever_next_month! if day == 31 - self.day += 1 - end - -- Contract C::None => Fixnum -+ Contract C::None => Integer - def clever_next_month! - return next_year! if month == 12 - self.month += 1 - self.day = 1 - end - -- Contract C::None => Fixnum -+ Contract C::None => Integer - def next_year! - self.month = 1 - self.day = 1 -@@ -610,7 +610,7 @@ def on_response(status, body) - body + "!" - end - -- Contract Fixnum, String => String -+ Contract Integer, String => String - def on_response(status, body) - "error #{status}: #{body}" - end - diff --git a/dev-ruby/grpc/files/grpc-1.66.0-c99.patch b/dev-ruby/grpc/files/grpc-1.66.0-c99.patch deleted file mode 100644 index 63997a4070d3..000000000000 --- a/dev-ruby/grpc/files/grpc-1.66.0-c99.patch +++ /dev/null @@ -1,22 +0,0 @@ -https://bugs.gentoo.org/939544 -https://github.com/grpc/grpc/issues/37731 -https://github.com/grpc/grpc/pull/37741 - -From 18a89be44d54e8c8bd614f1cee626d1db598a45a Mon Sep 17 00:00:00 2001 -From: alto-ruby <altorubys@gmail.com> -Date: Mon, 16 Sep 2024 17:33:04 -0700 -Subject: [PATCH] fix incompatible pointer type of - grpc_compression_algorithm_name - ---- a/src/ruby/ext/grpc/rb_compression_options.c -+++ b/src/ruby/ext/grpc/rb_compression_options.c -@@ -296,7 +296,7 @@ VALUE grpc_rb_compression_options_level_value_to_name_internal( - * Fails if the enum value is invalid. */ - VALUE grpc_rb_compression_options_algorithm_value_to_name_internal( - grpc_compression_algorithm internal_value) { -- char* algorithm_name = NULL; -+ const char* algorithm_name = NULL; - - if (!grpc_compression_algorithm_name(internal_value, &algorithm_name)) { - rb_raise(rb_eArgError, "Failed to convert algorithm value to name"); - diff --git a/dev-ruby/io-event/files/io-event-1.6.5-update-test-hooks.patch b/dev-ruby/io-event/files/io-event-1.6.5-update-test-hooks.patch deleted file mode 100644 index 09e2f96a2223..000000000000 --- a/dev-ruby/io-event/files/io-event-1.6.5-update-test-hooks.patch +++ /dev/null @@ -1,157 +0,0 @@ -From c2ffc28e97a08534e003eaf25abfa35279274263 Mon Sep 17 00:00:00 2001 -From: Samuel Williams <samuel.williams@oriontransfer.co.nz> -Date: Wed, 4 Sep 2024 20:53:04 +1200 -Subject: [PATCH] Update test before/after hooks. - ---- - test/io/event/selector.rb | 12 ++++-------- - test/io/event/selector/buffered_io.rb | 4 ++-- - test/io/event/selector/cancellable.rb | 7 +++---- - test/io/event/selector/file_io.rb | 4 ++-- - test/io/event/selector/process_io.rb | 4 ++-- - test/io/event/selector/queue.rb | 4 ++-- - 6 files changed, 15 insertions(+), 20 deletions(-) - -diff --git a/test/io/event/selector.rb b/test/io/event/selector.rb -index 760369a6..ee1a53f8 100644 ---- a/test/io/event/selector.rb -+++ b/test/io/event/selector.rb -@@ -622,14 +622,12 @@ def transfer - end - - with 'an instance' do -- def before -+ before do - @loop = Fiber.current - @selector = subject.new(@loop) -- super - end - -- def after -- super -+ after do - @selector&.close - end - -@@ -642,14 +640,12 @@ def after - end - - describe IO::Event::Debug::Selector do -- def before -+ before do - @loop = Fiber.current - @selector = subject.new(IO::Event::Selector.new(loop)) -- super - end - -- def after -- super -+ after do - @selector&.close - end - -diff --git a/test/io/event/selector/buffered_io.rb b/test/io/event/selector/buffered_io.rb -index 3659d717..3b74d569 100644 ---- a/test/io/event/selector/buffered_io.rb -+++ b/test/io/event/selector/buffered_io.rb -@@ -80,12 +80,12 @@ - next unless klass.instance_methods.include?(:io_read) - - describe(klass, unique: name) do -- def before -+ before do - @loop = Fiber.current - @selector = subject.new(@loop) - end - -- def after -+ after do - @selector&.close - end - -diff --git a/test/io/event/selector/cancellable.rb b/test/io/event/selector/cancellable.rb -index 2dfa2bae..cb6c1f2a 100644 ---- a/test/io/event/selector/cancellable.rb -+++ b/test/io/event/selector/cancellable.rb -@@ -15,8 +15,7 @@ - let(:input) {pipe.first} - let(:output) {pipe.last} - -- def after -- super -+ after do - input.close - output.close - end -@@ -70,12 +69,12 @@ def after - next unless klass.instance_methods.include?(:io_read) - - describe(klass, unique: name) do -- def before -+ before do - @loop = Fiber.current - @selector = subject.new(@loop) - end - -- def after -+ after do - @selector&.close - end - -diff --git a/test/io/event/selector/file_io.rb b/test/io/event/selector/file_io.rb -index 70a2c962..395a45e3 100644 ---- a/test/io/event/selector/file_io.rb -+++ b/test/io/event/selector/file_io.rb -@@ -49,12 +49,12 @@ - next unless klass.instance_methods.include?(:io_read) - - describe(klass, unique: name) do -- def before -+ before do - @loop = Fiber.current - @selector = subject.new(@loop) - end - -- def after -+ after do - @selector&.close - end - -diff --git a/test/io/event/selector/process_io.rb b/test/io/event/selector/process_io.rb -index cb8c73de..1ccff956 100644 ---- a/test/io/event/selector/process_io.rb -+++ b/test/io/event/selector/process_io.rb -@@ -43,12 +43,12 @@ - klass = IO::Event::Selector.const_get(name) - - describe(klass, unique: name) do -- def before -+ before do - @loop = Fiber.current - @selector = subject.new(@loop) - end - -- def after -+ after do - @selector&.close - end - -diff --git a/test/io/event/selector/queue.rb b/test/io/event/selector/queue.rb -index e62af5c4..8017dc36 100644 ---- a/test/io/event/selector/queue.rb -+++ b/test/io/event/selector/queue.rb -@@ -198,12 +198,12 @@ def object.transfer - klass = IO::Event::Selector.const_get(name) - - describe(klass, unique: name) do -- def before -+ before do - @loop = Fiber.current - @selector = subject.new(@loop) - end - -- def after -+ after do - @selector&.close - end - diff --git a/dev-ruby/ptools/Manifest b/dev-ruby/ptools/Manifest index 37a92028caee..1252f0a95b6a 100644 --- a/dev-ruby/ptools/Manifest +++ b/dev-ruby/ptools/Manifest @@ -1 +1,2 @@ DIST ptools-1.5.0.gem 53760 BLAKE2B 49de9513c33dc2840138a88cfc3ab85639426f731138a62c746612715509b6426032e72d59f7789deb3a932de88e81fd0762f744a7abc5be09e782b68eb22647 SHA512 e79b069dc50796ba979c34028d11e65804b398c60328edb349ef6dec6c133166aecc1255fe583bdb06f7b2a7d835de77dd7ec38180d3b23e3f7d321d7e0724e9 +DIST ptools-1.5.2.gem 53760 BLAKE2B 713c2ef8e51e5c865f120b4dc92e03303fe2d00048ee6ea180b328e0cf2d73704c9a6f399eab7de60477f54ec229e61c9b48d45f8c74c0e9e0610d65d23cebf5 SHA512 accb9d4e72296e4a6f34fa8afd9500f92e743aa9d4a3a05068d4d2d16ada69fe78035f8bdf5378b48578b9d61fd748694307dc59101be0e7d608baa8d6016adf diff --git a/dev-ruby/ptools/ptools-1.5.2.ebuild b/dev-ruby/ptools/ptools-1.5.2.ebuild new file mode 100644 index 000000000000..7b9aaf9723f5 --- /dev/null +++ b/dev-ruby/ptools/ptools-1.5.2.ebuild @@ -0,0 +1,20 @@ +# 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_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="Several handy methods to Ruby's core File class" +HOMEPAGE="https://github.com/djberg96/ptools" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" diff --git a/dev-ruby/rackup/Manifest b/dev-ruby/rackup/Manifest index fb1b82a8c29a..42f2c8f8e7e9 100644 --- a/dev-ruby/rackup/Manifest +++ b/dev-ruby/rackup/Manifest @@ -1 +1,2 @@ DIST rackup-2.2.1.tar.gz 26659 BLAKE2B 07c8d58d151ee7cc925ee648f8bd998986af492b656abd57f4fd469c8209936b3d6869560245cff25cd887f5eef3c378fc3219e4af13f99d70dce7a79073fec3 SHA512 4419725aa7181a17ad5d925b25b5c890013706dc442552c5b985a61d543f2a219048a9a5e1591342822957232543b0a58c0cb3135916062e997d73b386b92439 +DIST rackup-2.3.1.tar.gz 27457 BLAKE2B 1bcbca1d9710be6fa9e1459229d6d31b08b928aa344adadc2379d03a4f6a9448c249e061854df0e0bc16c9067ea994f82e8ccde353406e991a60c207416b3bc7 SHA512 3a2dafff8304eb188b969b51985fd09c227e869a32b245b2d739bdd12a95065f87fac2dd4ab360f98313553f7e9ace83d4fdd15460a11dbfbd85ef95135c10af diff --git a/dev-ruby/rackup/rackup-2.3.1.ebuild b/dev-ruby/rackup/rackup-2.3.1.ebuild new file mode 100644 index 000000000000..0f32916bfcbd --- /dev/null +++ b/dev-ruby/rackup/rackup-2.3.1.ebuild @@ -0,0 +1,40 @@ +# 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="readme.md security.md" + +RUBY_FAKEGEM_GEMSPEC="rackup.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A general server command for Rack applications" +HOMEPAGE="https://github.com/rack/rackup" +SRC_URI="https://github.com/rack/rackup/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test" + +ruby_add_rdepend " + || ( dev-ruby/rack:3.2 dev-ruby/rack:3.1 dev-ruby/rack:3.0 ) + virtual/ruby-ssl +" + +ruby_add_bdepend "test? ( + dev-ruby/minitest:5 + dev-ruby/minitest-global_expectations + >=dev-ruby/webrick-1.8:0 +)" + +all_ruby_prepare() { + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + MT_NO_PLUGINS=true ${RUBY} -Ilib:test:. -e "Dir['test/spec_*.rb'].each{ require _1 }" || die +} diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest index de41a4413a99..a196d05b49be 100644 --- a/dev-ruby/rdoc/Manifest +++ b/dev-ruby/rdoc/Manifest @@ -5,4 +5,5 @@ DIST rdoc-6.14.1.tar.gz 802344 BLAKE2B fa79a82092abf883f09ce88e7409cccacaea877cb DIST rdoc-6.14.2.tar.gz 802779 BLAKE2B e4e45ce0d2089575bc3192dbc16689c624daca94b27f0c2d9c111310699d4a3b494d9fc3f5f3229347a66a5c1836782429ffac7feed1222d7724f3ef91ca52e1 SHA512 2f76c380b91d9809e97c4185a93756a07d062f26ca44260a7f26337fbb05b5b46094aaf402e225ea8b75e5a5a222eb9943f129c96e6f63882198a7463588868c DIST rdoc-6.15.0.tar.gz 861759 BLAKE2B 67a837fe53de406e3d3bbf2040a06f251c1236c4d129d4eb03d3c83053a3c9942e20c2e7856d8b7baed94ecdc63bc5d3cb8b6599486a25ca2e7229033c01efb0 SHA512 f2659f5ba3b68d5aa41c3c53f3c5045dbc59410e8252e11eb093f7259641d43206c29a0c752b32bc67d05692aa8493d5738f7137d00b94835a73c30c12bc9b85 DIST rdoc-6.15.1.tar.gz 866723 BLAKE2B d3f1a4f24a568df491662887fb0c889f81cb4e5151fef861f17f9b16e19419c95ed90cc5278d5a2be70369a86aa6e9b2057f7e620191426beef5d177fc08b80f SHA512 62eb6fa773270616d77c6793df3bbb49fa2935673ef19278d53f2f9bfae1001b1a35478c2d7ce122d717ebfe759c22220735768bff323ee4cddb72de9d32d6ba +DIST rdoc-6.16.1.tar.gz 912501 BLAKE2B f50a06eacd8200ddb38b78fb5cafb6d6c3e4f453ed96673923c77714f372f21386a7668824ab950ac2d9929e4c5ae19d8c256fc497bebafb4e0ef3da5d60c684 SHA512 0c62fc5f66d62925dacab83280b55ad2fd6d073612b3482d52d68762410a8d61c2c085e7118ced3244621eec5c134255338cf818c49d73f68caccd0bad970c11 DIST rdoc-6.8.1.tar.gz 794457 BLAKE2B d239d482e6f06604ceee39e493bf3151b44895c774c3f23dee2858acb012196e0ec6837bc22da5ad854d28b20043392a4e0cbab3cff7dddfaab3c13d03f94e23 SHA512 b355b79c010d2918701b5bb52a326b6e7e10e33c457db3ac9d07592b8b0ef7fa01257a590dbbc1d22f0bec585f02a995b05c3c348cd081dbd75af87da4e0d7d1 diff --git a/dev-ruby/rdoc/rdoc-6.16.1.ebuild b/dev-ruby/rdoc/rdoc-6.16.1.ebuild new file mode 100644 index 000000000000..f03b67a77962 --- /dev/null +++ b/dev-ruby/rdoc/rdoc-6.16.1.ebuild @@ -0,0 +1,111 @@ +# 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_RECIPE_DOC="" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="History.rdoc README.md RI.md TODO.rdoc" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_BINDIR="exe" + +RUBY_FAKEGEM_GEMSPEC="rdoc.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="An extended version of the RDoc library from Ruby 1.8" +HOMEPAGE="https://github.com/ruby/rdoc/" +SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( GPL-2 Ruby-BSD )" +SLOT="0" +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" + +RDEPEND=">=app-eselect/eselect-ruby-20181225" + +ruby_add_rdepend " + dev-ruby/erb + >=dev-ruby/psych-4.0.0 + dev-ruby/tsort +" + +ruby_add_bdepend " + >=dev-ruby/kpeg-1.1.0-r1 + >dev-ruby/racc-1.4.10 + dev-ruby/rake + test? ( + dev-ruby/bundler + dev-ruby/prism + >=dev-ruby/minitest-5.8:5 + dev-ruby/test-unit-ruby-core + )" + +all_ruby_prepare() { + # Other packages also have use for a nonexistent directory, bug 321059 + sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/rdoc/rdoc*test.rb || die + + # Avoid unneeded dependency on bundler, bug 603696 + sed -e '/bundler/ s:^:#:' \ + -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \ + -e "/require 'rubocop'/,/])/ s:^:#:" \ + -i Rakefile || die + + # Skip rubygems tests since the rubygems test case code is no longer installed by rubygems. + sed -i -e '/^task/ s/, :rubygems_test//' Rakefile || die + + # Remove test that is depending on the locale, which we can't garantuee. + sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/rdoc/rdoc_options_test.rb || die + + # Remove test depending on FEATURES=userpriv, bug 361959 + sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/rdoc/rdoc_options_test.rb || die + + sed -e 's:_relative ": "./:' \ + -e 's/__dir__/"."/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_prepare() { + sed -e "/sh/ s:\"bundle\", \"exec\", :\"${RUBY}\", \"-S\", :" \ + -i Rakefile || die +} + +all_ruby_compile() { + all_fakegem_compile + + if use doc ; then + ruby -S exe/rdoc --force-output || die + rm -f doc/js/*.gz || die + fi +} + +each_ruby_compile() { + export LANG=C.UTF-8 + ${RUBY} -S rake generate || die +} + +all_ruby_install() { + all_fakegem_install + + for bin in rdoc ri; do + ruby_fakegem_binwrapper $bin /usr/bin/$bin-2 + + for version in $(ruby_get_use_implementations); do + version=`echo ${version} | cut -c 5-` + if use ruby_targets_ruby${version}; then + ruby_fakegem_binwrapper $bin /usr/bin/${bin}${version} + sed -i -e "1s/env ruby/ruby${version}/" \ + "${ED}/usr/bin/${bin}${version}" || die + fi + done + done +} + +pkg_postinst() { + if [[ ! -n $(readlink "${ROOT}"/usr/bin/rdoc) ]] ; then + eselect ruby set $(eselect --brief --colour=no ruby show | head -n1) + fi +} diff --git a/dev-ruby/recog/Manifest b/dev-ruby/recog/Manifest index 665ec119c4d6..d4923e8946d1 100644 --- a/dev-ruby/recog/Manifest +++ b/dev-ruby/recog/Manifest @@ -1,4 +1,3 @@ -DIST recog-3.1.17.gem 394240 BLAKE2B 1de75f6af852c21405e69e0280a119c01a27a9777ce3ec8eff2f0c906d652b3c03c383a3c44478d8db369bc0c14589188e826d5176677e6d29257422884d7018 SHA512 443a58103432963fd23933f0aa3a53609917e7fa35f653f9858cb0e786f230acdee581c61aac03b523e3b634da572e0fdf3d063044af1d163b6edd280c40e42d -DIST recog-3.1.18.gem 394240 BLAKE2B ed301963e925d9bfae42e5f665730762a69618c68ec159d50c33632f4c8b4b9f9b5d511625773924896dee7b0fea30db91388c083c920fc7bea6ca569d739d1d SHA512 6f732a27b8e5c8d51d1acaa56a4b003b5af1c2f67d8235d8604039f6d4de4e99a9bade8df90473f6abcc12ead1f9a334e1a88fef69783da0e149b02404005352 DIST recog-3.1.21.gem 394240 BLAKE2B 15a7ccf12db3b98d5d3cfb2604d2318fee7c8c144b434d00ab4908969393d481b933898088e6cccbd4cd05096ddddafeb5d587e36138fc87033041fd299aa815 SHA512 bd4a275790997a63f1e30681bcf024e138dedc52e014bf4979920448485e486058e511c3e87636999726155fc48f348056609868663128715a566bc31735b8fb DIST recog-3.1.23.gem 394240 BLAKE2B 4b359d6f96eec6163fed9ea1ff929ef0cd4396ad6927b17e6bcf884a9a165bf761ff4a0caa1d1683141ca08f0445dfeb69756eb858e5ca6ddf9f43887d7d5f94 SHA512 93466e176a4f53fd4062f7e9d96053c5b8624ea7ce406a42fa4744e6e6ddc528f76b904e784f6b4d3e40c873735698202dde12d349c6b166c4e83735e1f75797 +DIST recog-3.1.24.gem 394752 BLAKE2B efc9a7fdad0d69a6d9722b30a056925f75ee6a67f00268094e57b36ee5f61b8614c8c92115409a93b568e65aef53747c2c5bd7eeb3b64ab3c4eaf74038720063 SHA512 b97d3f03154fcdb4fd2becef906cd2bbb91e06c290dfe307d81acbdc00bdf217dbf7509cdc1fcf3e3d4394966037b597094b6fb49c9540c3953ea7e41da7803c diff --git a/dev-ruby/recog/recog-3.1.18.ebuild b/dev-ruby/recog/recog-3.1.18.ebuild deleted file mode 100644 index 4611e83e5970..000000000000 --- a/dev-ruby/recog/recog-3.1.18.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -USE_RUBY="ruby32 ruby33" - -RUBY_FAKEGEM_BINWRAP="" -RUBY_FAKEGEM_EXTRADOC="README.md" - -RUBY_FAKEGEM_EXTRAINSTALL="recog" -RUBY_FAKEGEM_RECIPE_TEST="rspec3" - -inherit ruby-fakegem - -DESCRIPTION="Pattern recognition for hosts, services, and content" -HOMEPAGE="https://github.com/rapid7/recog" - -LICENSE="BSD-2" -SLOT="$(ver_cut 1)" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="test" - -ruby_add_rdepend "dev-ruby/nokogiri" - -ruby_add_bdepend "test? ( - dev-ruby/regexp_parser -)" - -all_ruby_prepare() { - sed -i -e '/simplecov/I s:^:#:' spec/spec_helper.rb || die -} diff --git a/dev-ruby/recog/recog-3.1.17.ebuild b/dev-ruby/recog/recog-3.1.24.ebuild index 4611e83e5970..4611e83e5970 100644 --- a/dev-ruby/recog/recog-3.1.17.ebuild +++ b/dev-ruby/recog/recog-3.1.24.ebuild diff --git a/dev-ruby/stringio/Manifest b/dev-ruby/stringio/Manifest index d5e71626c3c9..1fdc0c2bef05 100644 --- a/dev-ruby/stringio/Manifest +++ b/dev-ruby/stringio/Manifest @@ -1,4 +1,4 @@ -DIST stringio-3.1.5.tar.gz 40084 BLAKE2B 4112866dc792b2919b7c3755c31305c48821c19f09d83c281b8402b0cfdd418dc390e73cce3357f346c7b6f8b2e5ccc6ed76410921776511af2f83c331bac10f SHA512 f02b7c41c2ea02ec0220d61c81be68330573efd738023bb7eae8295bcb116ae157dc82ab68775fbea587cc74b515c082211ca6f59a0b446c95c95c980bd57493 DIST stringio-3.1.6.tar.gz 40290 BLAKE2B 7f768edd55bbb759fe5a96f59fa829367674a54ebd48e10c8e8d45e56deb8e70a92e9cd430e420d648e789def2e14432d7f5ec4ec8ad0aacf19115daac213576 SHA512 9b77c1f631215acf6bdc5da62da20f0bf09b6ae4407aa9130cc46154788e2e656bd5d51635ef17e80e12faaccf6834df567624959fcbf089131543666fa92ebb DIST stringio-3.1.7.tar.gz 40428 BLAKE2B 550429733ee34daa92106f874f8a25b995811a13516faa5663a133b8c3eaab3496d5fabf0f86e2221dc142c67a942c9a487eb5897cf6141e78a4c9a8149037f4 SHA512 be0849467cc3a490dff9a4e1ef82d33a1c1593859bdddb79ec8d6e945048a4e5d0ffa74eeae54aff4d2a5d8bbe663afdc8d2fae2d574818adff8c8ac8d3a91be DIST stringio-3.1.8.tar.gz 44910 BLAKE2B 9dc552db2343d5701d1a52743474d7ffc748f74f0a623465e1979770e8487e8f357d25fea05a3bfb686de2c1c59e01e6c97d67a0cea45fa6e03e7827c672abf1 SHA512 accb7d5f00b69d7004c86fcebb141f3bbd706895d3b1860570e447f9930a5a10956195f0193c988b29a0cf81b9d22401dbd23896e077c026fbd09325e93a816b +DIST stringio-3.1.9.tar.gz 45003 BLAKE2B 370f7c83e220138ef823bd4ad3dfedac78934b3f4b3b9f57b6abe0930619796dd78d138312ce04d5d7bb92c41ef2c8bff62138ce23e0e95096146271266ff15d SHA512 a8989d7530715a543c8e59045640bdf680fdbb84cedab2707f64072261f1e9f874f3f0f15ff4a121c3f3b6acf056a5406c4afc74eca6f0f6fa3ed9713c7f9358 diff --git a/dev-ruby/stringio/stringio-3.1.7.ebuild b/dev-ruby/stringio/stringio-3.1.7.ebuild index 4b345654e9fe..4c71f242b571 100644 --- a/dev-ruby/stringio/stringio-3.1.7.ebuild +++ b/dev-ruby/stringio/stringio-3.1.7.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://github.com/ruby/stringio/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" -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" +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="test" ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )" diff --git a/dev-ruby/stringio/stringio-3.1.5.ebuild b/dev-ruby/stringio/stringio-3.1.9.ebuild index db8c0099f631..eacf527d23fa 100644 --- a/dev-ruby/stringio/stringio-3.1.5.ebuild +++ b/dev-ruby/stringio/stringio-3.1.9.ebuild @@ -2,7 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32 ruby33 ruby34" + +USE_RUBY="ruby32 ruby33 ruby34" RUBY_FAKEGEM_EXTRADOC="README.md" RUBY_FAKEGEM_EXTENSIONS=(ext/stringio/ex |
