diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-03-18 13:34:47 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-03-18 13:34:47 +0000 |
| commit | 22131c3ce564e32d43d8544d3aaf29697db30d66 (patch) | |
| tree | 154f815148b922e4471afa9019b193dd3997ab95 /dev-ruby | |
| parent | 153653e86282c72463ab06ab3a3eadd8c78c3bad (diff) | |
| download | baldeagleos-repo-22131c3ce564e32d43d8544d3aaf29697db30d66.tar.gz baldeagleos-repo-22131c3ce564e32d43d8544d3aaf29697db30d66.tar.xz baldeagleos-repo-22131c3ce564e32d43d8544d3aaf29697db30d66.zip | |
Adding metadata
Diffstat (limited to 'dev-ruby')
50 files changed, 723 insertions, 50 deletions
diff --git a/dev-ruby/actionmailbox/actionmailbox-7.0.4.3.ebuild b/dev-ruby/actionmailbox/actionmailbox-7.0.4.3.ebuild index 6e15a4288416..322d9c753310 100644 --- a/dev-ruby/actionmailbox/actionmailbox-7.0.4.3.ebuild +++ b/dev-ruby/actionmailbox/actionmailbox-7.0.4.3.ebuild @@ -20,7 +20,7 @@ SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz LICENSE="MIT" SLOT="$(ver_cut 1-2)" -KEYWORDS="~amd64 ~ppc64 ~riscv" +KEYWORDS="~amd64 ~ppc64 ~riscv ~x86" IUSE="" RUBY_S="rails-${PV}/${PN}" diff --git a/dev-ruby/actiontext/actiontext-7.0.4.3.ebuild b/dev-ruby/actiontext/actiontext-7.0.4.3.ebuild index c0eeb02f7a0f..95712f61479c 100644 --- a/dev-ruby/actiontext/actiontext-7.0.4.3.ebuild +++ b/dev-ruby/actiontext/actiontext-7.0.4.3.ebuild @@ -20,7 +20,7 @@ SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz LICENSE="MIT" SLOT="$(ver_cut 1-2)" -KEYWORDS="~amd64 ~ppc64 ~riscv" +KEYWORDS="~amd64 ~ppc64 ~riscv ~x86" IUSE="" RUBY_S="rails-${PV}/${PN}" diff --git a/dev-ruby/activesupport/activesupport-6.0.6.1.ebuild b/dev-ruby/activesupport/activesupport-6.0.6.1.ebuild index 469c7ac0a8ce..473970606372 100644 --- a/dev-ruby/activesupport/activesupport-6.0.6.1.ebuild +++ b/dev-ruby/activesupport/activesupport-6.0.6.1.ebuild @@ -21,7 +21,7 @@ SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz LICENSE="MIT" SLOT="$(ver_cut 1-2)" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" IUSE="" RUBY_S="rails-${PV}/${PN}" diff --git a/dev-ruby/activesupport/activesupport-6.1.7.2.ebuild b/dev-ruby/activesupport/activesupport-6.1.7.2.ebuild index 019a5ee151fb..99169f856a6d 100644 --- a/dev-ruby/activesupport/activesupport-6.1.7.2.ebuild +++ b/dev-ruby/activesupport/activesupport-6.1.7.2.ebuild @@ -19,7 +19,7 @@ SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz LICENSE="MIT" SLOT="$(ver_cut 1-2)" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" IUSE="" RUBY_S="rails-${PV}/${PN}" diff --git a/dev-ruby/addressable/addressable-2.8.1.ebuild b/dev-ruby/addressable/addressable-2.8.1.ebuild index c6684e1001c0..f81a5ff2c1a3 100644 --- a/dev-ruby/addressable/addressable-2.8.1.ebuild +++ b/dev-ruby/addressable/addressable-2.8.1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/blankslate/blankslate-3.1.3-r1.ebuild b/dev-ruby/blankslate/blankslate-3.1.3-r1.ebuild index 5e339b253e06..bb9980f49d04 100644 --- a/dev-ruby/blankslate/blankslate-3.1.3-r1.ebuild +++ b/dev-ruby/blankslate/blankslate-3.1.3-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby26 ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README" diff --git a/dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild b/dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild index ec7769a1319e..87119e53cc5e 100644 --- a/dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild +++ b/dev-ruby/childlabor/childlabor-0.0.3-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby26 ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_TASK_TEST="" diff --git a/dev-ruby/crack/crack-0.4.4-r3.ebuild b/dev-ruby/crack/crack-0.4.4-r3.ebuild index 7f44edcffee6..2716426caefb 100644 --- a/dev-ruby/crack/crack-0.4.4-r3.ebuild +++ b/dev-ruby/crack/crack-0.4.4-r3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md History" diff --git a/dev-ruby/hashdiff/hashdiff-1.0.1.ebuild b/dev-ruby/hashdiff/hashdiff-1.0.1.ebuild index 11bde422f59f..04b6789a1cb6 100644 --- a/dev-ruby/hashdiff/hashdiff-1.0.1.ebuild +++ b/dev-ruby/hashdiff/hashdiff-1.0.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/image_processing/image_processing-1.12.2.ebuild b/dev-ruby/image_processing/image_processing-1.12.2.ebuild index 6ec97c2adf74..a0f33f90f515 100644 --- a/dev-ruby/image_processing/image_processing-1.12.2.ebuild +++ b/dev-ruby/image_processing/image_processing-1.12.2.ebuild @@ -20,7 +20,7 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" IUSE="" -DEPEND+=" test? ( media-gfx/imagemagick[jpeg,png,tiff] )" +DEPEND+=" test? ( media-gfx/imagemagick[jpeg,png,tiff,xml] )" ruby_add_rdepend " >=dev-ruby/mini_magick-4.9.5:0 diff --git a/dev-ruby/introspection/introspection-0.0.4-r1.ebuild b/dev-ruby/introspection/introspection-0.0.4-r1.ebuild index 56ba9a418c29..cc23dac3ff8f 100644 --- a/dev-ruby/introspection/introspection-0.0.4-r1.ebuild +++ b/dev-ruby/introspection/introspection-0.0.4-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" # No documentation task RUBY_FAKEGEM_TASK_DOC="" diff --git a/dev-ruby/libusb/libusb-0.6.4-r2.ebuild b/dev-ruby/libusb/libusb-0.6.4-r2.ebuild new file mode 100644 index 000000000000..335703d18ed0 --- /dev/null +++ b/dev-ruby/libusb/libusb-0.6.4-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_EXTRADOC="History.md README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="binding that gives Ruby programmers access to arbitrary USB devices" +HOMEPAGE="https://github.com/larskanis/libusb" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND+="virtual/libusb:1" +RDEPEND+="${DEPEND}" + +ruby_add_rdepend "dev-ruby/ffi:0" +ruby_add_bdepend "test? ( dev-ruby/eventmachine )" + +all_ruby_prepare() { + sed -e '/mini_portile2/d' \ + -e 's/git ls-files --/find/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid tests that try to open devices or depend on specific hardware + rm -f test/test_libusb_{bos,descriptors}.rb || die +} + +each_ruby_test() { + ${RUBY} -I.:lib -e "Dir['test/test_*.rb'].each{|f| require f}" || die +} + +each_ruby_install() { + each_fakegem_install + + # This gem includes an extension that does not actually do anything + # when using the system libusb, but newer rubygems versions still + # require the marker to be present. + ruby_fakegem_extensions_installed +} diff --git a/dev-ruby/method_source/method_source-1.0.0.ebuild b/dev-ruby/method_source/method_source-1.0.0.ebuild index 2380cbb77230..a3930b32229b 100644 --- a/dev-ruby/method_source/method_source-1.0.0.ebuild +++ b/dev-ruby/method_source/method_source-1.0.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" RUBY_FAKEGEM_EXTRADOC="README.markdown" diff --git a/dev-ruby/mocha/files/mocha-1.16.0-ruby32.patch b/dev-ruby/mocha/files/mocha-1.16.0-ruby32.patch new file mode 100644 index 000000000000..a4f6b8c2fd7a --- /dev/null +++ b/dev-ruby/mocha/files/mocha-1.16.0-ruby32.patch @@ -0,0 +1,53 @@ +https://github.com/freerange/mocha/commit/ae9fed4a9f2ef6267302494ae0edf515d4a8a921 +https://github.com/freerange/mocha/commit/26b106a540ad57cd73401461451aa2711c541e9d + +From ae9fed4a9f2ef6267302494ae0edf515d4a8a921 Mon Sep 17 00:00:00 2001 +From: James Mead <james@floehopper.org> +Date: Thu, 24 Nov 2022 13:26:15 +0000 +Subject: [PATCH] DRY up regexp_matches test + +--- a/test/unit/parameter_matchers/regexp_matches_test.rb ++++ b/test/unit/parameter_matchers/regexp_matches_test.rb +@@ -32,14 +32,18 @@ def test_should_not_match_on_empty_arguments + end + + def test_should_not_raise_error_on_argument_that_does_not_respond_to_equals_tilde +- object_not_responding_to_equals_tilde = Class.new { undef =~ }.new + matcher = regexp_matches(/oo/) + assert_nothing_raised { matcher.matches?([object_not_responding_to_equals_tilde]) } + end + + def test_should_not_match_on_argument_that_does_not_respond_to_equals_tilde +- object_not_responding_to_equals_tilde = Class.new { undef =~ }.new + matcher = regexp_matches(/oo/) + assert !matcher.matches?([object_not_responding_to_equals_tilde]) + end ++ ++ private ++ ++ def object_not_responding_to_equals_tilde ++ Class.new { undef =~ }.new ++ end + end + +From 26b106a540ad57cd73401461451aa2711c541e9d Mon Sep 17 00:00:00 2001 +From: James Mead <james@floehopper.org> +Date: Fri, 25 Nov 2022 09:04:43 +0000 +Subject: [PATCH] Fix regexp_matches tests in Ruby v3.2 + +Object#~= has been removed from Ruby v3.2 [1]. + +Closes #590. + +[1]: https://bugs.ruby-lang.org/issues/15231 +--- a/test/unit/parameter_matchers/regexp_matches_test.rb ++++ b/test/unit/parameter_matchers/regexp_matches_test.rb +@@ -44,6 +44,6 @@ def test_should_not_match_on_argument_that_does_not_respond_to_equals_tilde + private + + def object_not_responding_to_equals_tilde +- Class.new { undef =~ }.new ++ Class.new { undef =~ if respond_to?(:=~) }.new + end + end + diff --git a/dev-ruby/mocha/mocha-1.16.0.ebuild b/dev-ruby/mocha/mocha-1.16.0.ebuild index 5f825dc0d59e..ea8837619e17 100644 --- a/dev-ruby/mocha/mocha-1.16.0.ebuild +++ b/dev-ruby/mocha/mocha-1.16.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_TEST="test:units test:acceptance" @@ -26,6 +26,10 @@ IUSE="" ruby_add_bdepend " test? ( >=dev-ruby/test-unit-2.5.1-r1 dev-ruby/introspection )" +PATCHES=( + "${FILESDIR}"/mocha-1.16.0-ruby32.patch +) + all_ruby_prepare() { sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die diff --git a/dev-ruby/mocha/mocha-2.0.2.ebuild b/dev-ruby/mocha/mocha-2.0.2.ebuild index 8b9904e74ec0..7200023417c0 100644 --- a/dev-ruby/mocha/mocha-2.0.2.ebuild +++ b/dev-ruby/mocha/mocha-2.0.2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_TEST="test:units test:acceptance" @@ -26,6 +26,10 @@ ruby_add_rdepend ">=dev-ruby/ruby2_keywords-0.0.5" ruby_add_bdepend " test? ( >=dev-ruby/test-unit-2.5.1-r1 dev-ruby/introspection )" +PATCHES=( + "${FILESDIR}"/${PN}-1.16.0-ruby32.patch +) + all_ruby_prepare() { sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die diff --git a/dev-ruby/open4/open4-1.3.4-r1.ebuild b/dev-ruby/open4/open4-1.3.4-r1.ebuild index ab3cea05047d..4817885e95ad 100644 --- a/dev-ruby/open4/open4-1.3.4-r1.ebuild +++ b/dev-ruby/open4/open4-1.3.4-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="README" diff --git a/dev-ruby/pastel/pastel-0.8.0.ebuild b/dev-ruby/pastel/pastel-0.8.0.ebuild index cb69ad547087..1729283a9c9f 100644 --- a/dev-ruby/pastel/pastel-0.8.0.ebuild +++ b/dev-ruby/pastel/pastel-0.8.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/pg/Manifest b/dev-ruby/pg/Manifest index 8affaac9a5a8..1dd177b37229 100644 --- a/dev-ruby/pg/Manifest +++ b/dev-ruby/pg/Manifest @@ -1,2 +1,3 @@ DIST pg-1.3.5.tar.gz 256197 BLAKE2B 8a8cd0135eb7dcf8389d2b0afa174059d12f542b1e2897fba0e292fd16f31508293ca90f64f731db9bc14e55e9ba2c740ccf744a5fe30c449d64344264e409e1 SHA512 44e8ad97a6f4136d49641c5a59a70a489d766d1c1e511f5a6f003c2ae2900466b02a2504dc0fb26c872ce3fcb56ac83ac5299a829cca99d9c02c4b7ce0f0ac75 DIST pg-1.4.1.tar.gz 258388 BLAKE2B d2f2c81b51fb159a95990382cce316938b97d8ecb1c9590c4a70be741f4806bc47dc99423c1d54e939bc156e287cc7cba28d854dc68900501c10fbaf15cb3076 SHA512 e8e0ad7b6df4a98d8ac6dfa8006044f7fbfc45713e1aa866e80a83061be5a6a1a57456cc2ffc14d976c2d108ce526c6fa9d4ce59222a9d9bb3ef676e9dec8da9 +DIST pg-1.4.6.tar.gz 282608 BLAKE2B 73616b6ba0373ae81394188fd96d7ca37144b76e5e89d0267e076ea39b9e33d19851d3881e70d9d5934ea26671c07635a22e7e530dd0094a243de8e9d9793fb5 SHA512 5cde5441f9864f89e7f44fd72d8becc60c223ba90793812c4756764f9807610d393ecca5ba05187e8aefb0d3530d67a7525b4e2c638160161410b369937e912a diff --git a/dev-ruby/pg/pg-1.4.6.ebuild b/dev-ruby/pg/pg-1.4.6.ebuild new file mode 100644 index 000000000000..e47f01c5b83e --- /dev/null +++ b/dev-ruby/pg/pg-1.4.6.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_GEMSPEC="pg.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="Contributors.rdoc README.md History.md" + +RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) + +inherit ruby-fakegem + +DESCRIPTION="Ruby extension library providing an API to PostgreSQL" +HOMEPAGE="https://github.com/ged/ruby-pg" +SRC_URI="https://github.com/ged/ruby-pg/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="ruby-${P}" + +LICENSE="|| ( BSD-2 Ruby-BSD )" +SLOT="1" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND+=" dev-db/postgresql:*" +DEPEND+=" dev-db/postgresql + test? ( >=dev-db/postgresql-9.4[server(+),threads] )" + +all_ruby_prepare() { + # hack the Rakefile to make it sure that it doesn't load + # rake-compiler (so that we don't have to depend on it and it + # actually works when building with USE=doc). + sed -i \ + -e '/Rakefile.cross/s:^:#:' \ + -e '/ExtensionTask/,/^end$/ s:^:#:' \ + Rakefile || die + + sed -e 's/git ls-files -z/find * -print0/' \ + -e "s:_relative ': './:" \ + -e 's/__dir__/"."/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid tests that assume IPv4 + sed -i -e '/expect.*hostaddr/ s:^:#:' spec/pg/connection_spec.rb || die + + # Fails with network-sandbox + sed -i -e '/connects using without host but envirinment variables/askip "gentoo"' spec/pg/scheduler_spec.rb || die + + # Avoid test that only works with bundled pg + sed -i -e '/tells about the libpq library path/askip "gentoo"' spec/pg_spec.rb || die +} + +each_ruby_test() { + if [[ "${EUID}" -ne "0" ]]; then + # Make the rspec call explicit, this way we don't have to depend + # on rake-compiler (nor rubygems) _and_ we don't have to rebuild + # the whole extension from scratch. + RSPEC_VERSION=3 ruby-ng_rspec + else + ewarn "The userpriv feature must be enabled to run tests." + eerror "Testsuite will not be run." + fi +} diff --git a/dev-ruby/propshaft/propshaft-0.7.0.ebuild b/dev-ruby/propshaft/propshaft-0.7.0.ebuild index 6f3faa84c6cc..d353b50f112c 100644 --- a/dev-ruby/propshaft/propshaft-0.7.0.ebuild +++ b/dev-ruby/propshaft/propshaft-0.7.0.ebuild @@ -17,7 +17,7 @@ SRC_URI="https://github.com/rails/propshaft/archive/v${PV}.tar.gz -> ${P}-git.tg LICENSE="MIT" SLOT="$(ver_cut 1)" -KEYWORDS="~amd64 ~ppc64 ~riscv" +KEYWORDS="~amd64 ~ppc64 ~riscv ~x86" IUSE="" diff --git a/dev-ruby/pry/pry-0.14.2.ebuild b/dev-ruby/pry/pry-0.14.2.ebuild index 1ac6df00cb29..5833368c6da8 100644 --- a/dev-ruby/pry/pry-0.14.2.ebuild +++ b/dev-ruby/pry/pry-0.14.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_DOC="yard" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/public_suffix/public_suffix-4.0.7.ebuild b/dev-ruby/public_suffix/public_suffix-4.0.7.ebuild index 6b42d2313e8a..8705c4505304 100644 --- a/dev-ruby/public_suffix/public_suffix-4.0.7.ebuild +++ b/dev-ruby/public_suffix/public_suffix-4.0.7.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby26 ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRAINSTALL="data" diff --git a/dev-ruby/public_suffix/public_suffix-5.0.1.ebuild b/dev-ruby/public_suffix/public_suffix-5.0.1.ebuild index 0e54e7908148..a00f35560339 100644 --- a/dev-ruby/public_suffix/public_suffix-5.0.1.ebuild +++ b/dev-ruby/public_suffix/public_suffix-5.0.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRAINSTALL="data" diff --git a/dev-ruby/rack/rack-3.0.4.2.ebuild b/dev-ruby/rack/rack-3.0.4.2.ebuild index 7aee70d2e0f0..e01ec370183d 100644 --- a/dev-ruby/rack/rack-3.0.4.2.ebuild +++ b/dev-ruby/rack/rack-3.0.4.2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_DOCDIR="doc" RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md SECURITY.md SPEC.rdoc UPGRADE-GUIDE.md" diff --git a/dev-ruby/rails/rails-7.0.4.3.ebuild b/dev-ruby/rails/rails-7.0.4.3.ebuild index d2388f935a73..09b8ede734f2 100644 --- a/dev-ruby/rails/rails-7.0.4.3.ebuild +++ b/dev-ruby/rails/rails-7.0.4.3.ebuild @@ -17,7 +17,7 @@ HOMEPAGE="https://rubyonrails.org" LICENSE="MIT" SLOT="$(ver_cut 1-2)" -KEYWORDS="~amd64 ~ppc64 ~riscv" +KEYWORDS="~amd64 ~ppc64 ~riscv ~x86" IUSE="" diff --git a/dev-ruby/ruby-atk/Manifest b/dev-ruby/ruby-atk/Manifest index 7f70af3b2295..c4c74d117a84 100644 --- a/dev-ruby/ruby-atk/Manifest +++ b/dev-ruby/ruby-atk/Manifest @@ -1 +1,2 @@ DIST ruby-gnome2-3.4.3.tar.gz 3136727 BLAKE2B 3b85136b90e7a9de14f38fbdb55d9c143719e697ff60fdd4c09921b5d0c6363cf27b7b2da55d93a95d302e62879c321df20e729d4a3d9d2e8d1f2a4afb8c6e49 SHA512 ac4614647c20080eb850d47938b00eb69730aef6672a35cf290619a5c3e01007ac59e75995e36398a0ddaed61db2f4ccdf9d26d2453fff9d5160073ee73081b8 +DIST ruby-gnome2-3.5.1.tar.gz 2613400 BLAKE2B ab9b7e3b6322b5b89a6bf4d529d5b5abdfbe50b1e099cfba67f089bab3abd39c2a96b57305b13311e9c34957c57107e31708cc76ffa4c20d84af2294f7bf7bb4 SHA512 9423c18587c11b6c317a58ec817e886c99ab37b29271b1684d7c793655a121c8b20c9630347d5f248e687843fd888e2137dca5d3d232121d87565ee2707f2f21 diff --git a/dev-ruby/ruby-atk/ruby-atk-3.5.1.ebuild b/dev-ruby/ruby-atk/ruby-atk-3.5.1.ebuild new file mode 100644 index 000000000000..3882ef4588e0 --- /dev/null +++ b/dev-ruby/ruby-atk/ruby-atk-3.5.1.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby27 ruby30 ruby31" + +inherit ruby-ng-gnome2 + +DESCRIPTION="Ruby Atk bindings" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="" +DEPEND+=" dev-libs/atk[introspection]" +RDEPEND+=" dev-libs/atk[introspection]" + +ruby_add_rdepend "~dev-ruby/ruby-glib2-${PV} + ~dev-ruby/ruby-gobject-introspection-${PV}" diff --git a/dev-ruby/ruby-gdkpixbuf2/Manifest b/dev-ruby/ruby-gdkpixbuf2/Manifest index 7f70af3b2295..c4c74d117a84 100644 --- a/dev-ruby/ruby-gdkpixbuf2/Manifest +++ b/dev-ruby/ruby-gdkpixbuf2/Manifest @@ -1 +1,2 @@ DIST ruby-gnome2-3.4.3.tar.gz 3136727 BLAKE2B 3b85136b90e7a9de14f38fbdb55d9c143719e697ff60fdd4c09921b5d0c6363cf27b7b2da55d93a95d302e62879c321df20e729d4a3d9d2e8d1f2a4afb8c6e49 SHA512 ac4614647c20080eb850d47938b00eb69730aef6672a35cf290619a5c3e01007ac59e75995e36398a0ddaed61db2f4ccdf9d26d2453fff9d5160073ee73081b8 +DIST ruby-gnome2-3.5.1.tar.gz 2613400 BLAKE2B ab9b7e3b6322b5b89a6bf4d529d5b5abdfbe50b1e099cfba67f089bab3abd39c2a96b57305b13311e9c34957c57107e31708cc76ffa4c20d84af2294f7bf7bb4 SHA512 9423c18587c11b6c317a58ec817e886c99ab37b29271b1684d7c793655a121c8b20c9630347d5f248e687843fd888e2137dca5d3d232121d87565ee2707f2f21 diff --git a/dev-ruby/ruby-gdkpixbuf2/ruby-gdkpixbuf2-3.5.1.ebuild b/dev-ruby/ruby-gdkpixbuf2/ruby-gdkpixbuf2-3.5.1.ebuild new file mode 100644 index 000000000000..2b414c0e5c6c --- /dev/null +++ b/dev-ruby/ruby-gdkpixbuf2/ruby-gdkpixbuf2-3.5.1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_NAME="gdk_pixbuf2" + +inherit ruby-ng-gnome2 + +RUBY_S=ruby-gnome-${PV}/gdk_pixbuf2 + +DESCRIPTION="Ruby GdkPixbuf2 bindings" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="" + +DEPEND+=" test? ( x11-libs/gdk-pixbuf[jpeg] )" +RDEPEND+=" x11-libs/gdk-pixbuf[introspection]" + +ruby_add_rdepend "~dev-ruby/ruby-gio2-${PV}" diff --git a/dev-ruby/ruby-glib2/files/ruby-glib2-3.5.1-glib-2.76.patch b/dev-ruby/ruby-glib2/files/ruby-glib2-3.5.1-glib-2.76.patch new file mode 100644 index 000000000000..b575530551c8 --- /dev/null +++ b/dev-ruby/ruby-glib2/files/ruby-glib2-3.5.1-glib-2.76.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/900921 +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270087 +https://cgit.freebsd.org/ports/commit/?id=9a23b33ce95593af78f9b973c1fba4fa8835cc25 + +--- a/ext/glib2/rbglib_bookmarkfile.c ++++ b/ext/glib2/rbglib_bookmarkfile.c +@@ -35,6 +35,7 @@ bookmarkfile_copy(const GBookmarkFile* file) + return (GBookmarkFile*)file; + } + ++#if !GLIB_CHECK_VERSION(2, 76, 0) + static GType + g_bookmark_file_get_type(void) + { +@@ -48,6 +49,7 @@ g_bookmark_file_get_type(void) + /************************************************/ + + #define G_TYPE_BOOKMARK_FILE (g_bookmark_file_get_type()) ++#endif + + #define RG_TARGET_NAMESPACE cBookmarkFile + #define _SELF(self) ((GBookmarkFile*)(RVAL2BOXED(self, G_TYPE_BOOKMARK_FILE))) + diff --git a/dev-ruby/ruby-glib2/ruby-glib2-3.5.1-r1.ebuild b/dev-ruby/ruby-glib2/ruby-glib2-3.5.1-r1.ebuild new file mode 100644 index 000000000000..1789b42c0dae --- /dev/null +++ b/dev-ruby/ruby-glib2/ruby-glib2-3.5.1-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +inherit ruby-ng-gnome2 + +DESCRIPTION="Ruby Glib2 bindings" +KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" +RDEPEND+=" >=dev-libs/glib-2" +DEPEND+=" >=dev-libs/glib-2" + +PATCHES=( + "${FILESDIR}"/${PN}-3.5.1-glib-2.76.patch +) + +all_ruby_prepare() { + ruby-ng-gnome2_all_ruby_prepare + + # Skip spawn tests since our sandbox also provides items in the + # environment and this makes the test fragile. + rm -v test/test-spawn.rb || die +} diff --git a/dev-ruby/ruby-pango/Manifest b/dev-ruby/ruby-pango/Manifest index 7f70af3b2295..c4c74d117a84 100644 --- a/dev-ruby/ruby-pango/Manifest +++ b/dev-ruby/ruby-pango/Manifest @@ -1 +1,2 @@ DIST ruby-gnome2-3.4.3.tar.gz 3136727 BLAKE2B 3b85136b90e7a9de14f38fbdb55d9c143719e697ff60fdd4c09921b5d0c6363cf27b7b2da55d93a95d302e62879c321df20e729d4a3d9d2e8d1f2a4afb8c6e49 SHA512 ac4614647c20080eb850d47938b00eb69730aef6672a35cf290619a5c3e01007ac59e75995e36398a0ddaed61db2f4ccdf9d26d2453fff9d5160073ee73081b8 +DIST ruby-gnome2-3.5.1.tar.gz 2613400 BLAKE2B ab9b7e3b6322b5b89a6bf4d529d5b5abdfbe50b1e099cfba67f089bab3abd39c2a96b57305b13311e9c34957c57107e31708cc76ffa4c20d84af2294f7bf7bb4 SHA512 9423c18587c11b6c317a58ec817e886c99ab37b29271b1684d7c793655a121c8b20c9630347d5f248e687843fd888e2137dca5d3d232121d87565ee2707f2f21 diff --git a/dev-ruby/ruby-pango/ruby-pango-3.5.1.ebuild b/dev-ruby/ruby-pango/ruby-pango-3.5.1.ebuild new file mode 100644 index 000000000000..53e1e0b9a62c --- /dev/null +++ b/dev-ruby/ruby-pango/ruby-pango-3.5.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby27 ruby30 ruby31" + +inherit ruby-ng-gnome2 + +DESCRIPTION="Ruby Pango bindings" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="" +DEPEND+=" dev-libs/glib + >=x11-libs/pango-1.2.1[introspection]" +RDEPEND+=" dev-libs/glib + >=x11-libs/pango-1.2.1[introspection]" + +ruby_add_rdepend " + dev-ruby/rcairo + ~dev-ruby/ruby-cairo-gobject-${PV} + ~dev-ruby/ruby-gobject-introspection-${PV} +" + +all_ruby_prepare() { + ruby-ng-gnome2_all_ruby_prepare + + # Remove test depending on specific locales to be set up: bug 526248 + rm -f test/test-language.rb || die +} + +each_ruby_test() { + # Include pango path since run-test does not list it + ${RUBY} -Iext/pango test/run-test.rb || die +} diff --git a/dev-ruby/slop/Manifest b/dev-ruby/slop/Manifest index 7b763077d0fd..cd53596588d9 100644 --- a/dev-ruby/slop/Manifest +++ b/dev-ruby/slop/Manifest @@ -1,3 +1,4 @@ DIST slop-4.10.0.tgz 17595 BLAKE2B ef542c9062dfd3381c7cbc5d1cb004a0d7e1f9d9ea78ee835704aa744309e6c4ac003d91328da89d3fdb734e5495e9f7cb05b2498e0f2126edecec8a83c97283 SHA512 22c586ef1e5ecebc3311496ae6285219b41627e5d15032a15964b682bc98eda7dca8d69017eaae0fbce31e7787a0e974ee58e340c6acd475f0f60001f7e9c85b +DIST slop-4.10.1.tgz 17752 BLAKE2B d7be110a9fa012af3df26aa4a7dc055fe9443ca131ee078adb05fb4ef87c6976520ee96aca23893abb651bd6fa22ea350be5851ca6f142b301551447c0b12c34 SHA512 0ffca1dcb550a4b21188647bbc433345c62c61dcb5c6e647727ab21d0816a13b6e6cb17180eb86a870eb50ed67b2f44f72f38490f907ba21acaa81c2a2febc53 DIST slop-4.9.2.tgz 16633 BLAKE2B 8907314016066569279dbab6b52f50cee58044b46c1a88c7cfab3a31e1bd7e702f63da170a42f113c5611080d5d212b970dddd1e3aeb2bc8e86d5ea577b9f163 SHA512 dbecbc5edaf257131edf54fb5577531a962a6ed64f9414342b5060bee479cf7e4c9cfb891af3553644fbe7817a2067de3c83b379651a62da5983f0c42cd68fd6 DIST slop-4.9.3.tgz 16887 BLAKE2B 10ce02eec161fa12a1f6078047c5461476a45e02ea6e27f4e9c888611cc24a8f74e7cf90607a93a9510b41577e70e344caeb7d865eaf0bc9f980cc34d73899d4 SHA512 fbbf9aa5e12ee6b5d3c1e2bbe55c160e196fb201ff50c266f035e7150b9ec3bc223c89e354e16b9cd4cecabaa71935334722e53b0363d5a2a59f6c0e50c2dc97 diff --git a/dev-ruby/slop/slop-4.10.1.ebuild b/dev-ruby/slop/slop-4.10.1.ebuild new file mode 100644 index 000000000000..003a4bf68a9e --- /dev/null +++ b/dev-ruby/slop/slop-4.10.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="slop.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A simple option parser with an easy to remember syntax and friendly API" +HOMEPAGE="https://github.com/leejarvis/slop" +SRC_URI="https://github.com/leejarvis/${PN}/archive/v${PV}.tar.gz -> ${P}.tgz" + +LICENSE="MIT" +SLOT="4" +KEYWORDS="~amd64 ~ppc64 ~x86" + +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/minitest )" + +all_ruby_prepare() { + sed -i -e '/git ls-files/d' slop.gemspec || die +} diff --git a/dev-ruby/spring/Manifest b/dev-ruby/spring/Manifest index 642fbeca4f76..54559a07d1d3 100644 --- a/dev-ruby/spring/Manifest +++ b/dev-ruby/spring/Manifest @@ -1,2 +1,3 @@ DIST spring-4.0.0.tar.gz 46258 BLAKE2B 9e02594dff1882f3f7f47af682afddafc3f4be97f9c3dcc0ee3289be9fb1bc252260e24bec44d024ce808a26a2ac571840357df8fcc719e60ca9ca159460b998 SHA512 c5ed7e389c97dea3b183d6cd373823c3230a84f21427cabacd72ea2bc97f00bcbf9855d36808a1bf3257ccaea21ee35f2070716dc4f0b64205a674202eac6b94 DIST spring-4.1.0.tar.gz 46775 BLAKE2B 5ae0b1b74438e0e8c41ef7e3bd2a5041c6277b91c8befef7a235f42d3a876f2a125c8ddf1dcca86216c4a740a7c07b49077f64baa8cd078ef695e109d2aaaa5d SHA512 f91d9ad8c87acdc9b8af593f788dd7c255da3c2b407c43d9c20d16c3e21d731f8e923c5e00e4e1ee59596ea04c7f26a2a1eb3a2251edc8cb94dd16c346654285 +DIST spring-4.1.1.tar.gz 46849 BLAKE2B 08e66e8e8869ae900bd134ceb82e55d08ba005291b8a7c83a61225c04373b8b89488f0636c4bcf0a8fdc6407ae2b1da26ac7092a3cdd5b1209d2ae2c4a6abd06 SHA512 caf85cf8588825b62cc8284bea79ad3b1faa5b61cf773db78c4f62b24df1e0fd5d6ba148d993045ab8dc768dde5a3401aa228ba51b4985b98f5ce4080f695e43 diff --git a/dev-ruby/spring/spring-4.1.1.ebuild b/dev-ruby/spring/spring-4.1.1.ebuild new file mode 100644 index 000000000000..e881ec944281 --- /dev/null +++ b/dev-ruby/spring/spring-4.1.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_TASK_TEST="test:unit" + +RUBY_FAKEGEM_GEMSPEC="spring.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Rails application preloader" +HOMEPAGE="https://github.com/rails/spring" +SRC_URI="https://github.com/rails/spring/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="1.1" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/activesupport )" + +all_ruby_prepare() { + sed -i -e '/files/d' \ + -e '/bump/d' ${PN}.gemspec || die + sed -i -e '/bump/d' Rakefile || die +} diff --git a/dev-ruby/sus/Manifest b/dev-ruby/sus/Manifest index ca9383021b22..bf1c5072fcc2 100644 --- a/dev-ruby/sus/Manifest +++ b/dev-ruby/sus/Manifest @@ -1,3 +1,4 @@ DIST sus-0.15.2.tar.gz 25676 BLAKE2B 3cc99d849674b87c8ac919dc176d48cfc184de9ed302f33a40a3f171430e9cc0ad9624c29f95053e7a8bd0ab7b2741bd6a09c7a77707a9ef83a265b09a095b4d SHA512 0f2e0f3640cce798564c53ffb2cc93996eda28af3b49d4f0d89327be960ef68e8aee5b0e906cfbadca0582bf5b363633314fd7d2eabf7ebf4782fe2aed095394 DIST sus-0.16.0.tar.gz 26123 BLAKE2B 829e2ec74e60eb41809d85e9f74e1c8697d7803c6f26dd5da18f705fb0b35f85d8efb976eb858e07647db2137a1e864181346b69d2dd054d81289a6bd43cca2c SHA512 cd787e63b202df8b501c5d71198b9cfa23085b7e6ad7d9d9a4d023e4fab3a6c103d89390293f9940d14c023ea224b33b5ec728b67988aee8279cf248e20547cf DIST sus-0.18.0.tar.gz 27299 BLAKE2B 235ee4b9229d27966eabddd9400b734bd98c9f175eb639830b45269977b75770c72357be7cc631076df90f35cec38cfa6137277394dc1af0053cf81de59a84bf SHA512 3aea3aeac304efeafd0dd27f523196965731521cebb123d781cbb3a59bbaf79a5db460f2bf8461d750865616ec1dd4cf4acc0c29d3be0a0d7f33e21c43e0844c +DIST sus-0.20.3.tar.gz 28845 BLAKE2B d10b142dd9d7ef44a453746f859a7d4a66eacd09ea157aef1887a95b01a88e7f749f9ca881518500eef48917b5cb1e67ac008327af0ae9df0200875bbe1de3b1 SHA512 1158f6ae53c5aae22454a15eaf7e613a00b1af730bf07af6662bd7e9d7f30365cea9dbebcddb5b6234931cf9414b8c3af0889d73194632cbaad439872cc89059 diff --git a/dev-ruby/sus/sus-0.20.3.ebuild b/dev-ruby/sus/sus-0.20.3.ebuild new file mode 100644 index 000000000000..ee07579ec948 --- /dev/null +++ b/dev-ruby/sus/sus-0.20.3.ebuild @@ -0,0 +1,32 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="readme.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A fast and scalable test runner" +HOMEPAGE="https://github.com/ioquatix/sus" +SRC_URI="https://github.com/ioquatix/sus/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # Remove the sus configuration which enabled coverage checks. + # Its dependency is not packaged. + rm -f config/sus.rb || die +} + +each_ruby_test() { + ${RUBY} bin/sus-parallel || die +} diff --git a/dev-ruby/thor/files/thor-1.2.1-tests.patch b/dev-ruby/thor/files/thor-1.2.1-tests.patch new file mode 100644 index 000000000000..bd59deda2338 --- /dev/null +++ b/dev-ruby/thor/files/thor-1.2.1-tests.patch @@ -0,0 +1,211 @@ +https://github.com/rails/thor/issues/817 +https://github.com/rails/thor/commit/0def4cfba5bf470f76877eb3b8a8895f0018e574 +https://github.com/rails/thor/commit/46d1422902e1c66b31fae79be7dca79ff8b2e81b + +From 0def4cfba5bf470f76877eb3b8a8895f0018e574 Mon Sep 17 00:00:00 2001 +From: Tim Diggins <tim@red56.uk> +Date: Fri, 4 Mar 2022 12:16:58 +0000 +Subject: [PATCH] fix expectations for ruby 3 treatment of hash arg + +--- a/spec/line_editor_spec.rb ++++ b/spec/line_editor_spec.rb +@@ -13,7 +13,7 @@ + describe ".readline" do + it "uses the Readline line editor" do + editor = double("Readline") +- expect(Thor::LineEditor::Readline).to receive(:new).with("Enter your name ", :default => "Brian").and_return(editor) ++ expect(Thor::LineEditor::Readline).to receive(:new).with("Enter your name ", {:default => "Brian"}).and_return(editor) + expect(editor).to receive(:readline).and_return("George") + expect(Thor::LineEditor.readline("Enter your name ", :default => "Brian")).to eq("George") + end +@@ -35,7 +35,7 @@ + describe ".readline" do + it "uses the Basic line editor" do + editor = double("Basic") +- expect(Thor::LineEditor::Basic).to receive(:new).with("Enter your name ", :default => "Brian").and_return(editor) ++ expect(Thor::LineEditor::Basic).to receive(:new).with("Enter your name ", {:default => "Brian"}).and_return(editor) + expect(editor).to receive(:readline).and_return("George") + expect(Thor::LineEditor.readline("Enter your name ", :default => "Brian")).to eq("George") + end +--- a/spec/shell/basic_spec.rb ++++ b/spec/shell/basic_spec.rb +@@ -70,80 +70,80 @@ def shell + + it "prints a message to the user with the available options, expects case-sensitive matching, and determines the correctness of the answer" do + flavors = %w(strawberry chocolate vanilla) +- expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', :limited_to => flavors).and_return("chocolate") ++ expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', {:limited_to => flavors}).and_return("chocolate") + expect(shell.ask('What\'s your favorite Neopolitan flavor?', :limited_to => flavors)).to eq("chocolate") + end + + it "prints a message to the user with the available options, expects case-sensitive matching, and reasks the question after an incorrect response" do + flavors = %w(strawberry chocolate vanilla) + expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n") +- expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', :limited_to => flavors).and_return("moose tracks", "chocolate") ++ expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', {:limited_to => flavors}).and_return("moose tracks", "chocolate") + expect(shell.ask('What\'s your favorite Neopolitan flavor?', :limited_to => flavors)).to eq("chocolate") + end + + it "prints a message to the user with the available options, expects case-sensitive matching, and reasks the question after a case-insensitive match" do + flavors = %w(strawberry chocolate vanilla) + expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n") +- expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', :limited_to => flavors).and_return("cHoCoLaTe", "chocolate") ++ expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', {:limited_to => flavors}).and_return("cHoCoLaTe", "chocolate") + expect(shell.ask('What\'s your favorite Neopolitan flavor?', :limited_to => flavors)).to eq("chocolate") + end + + it "prints a message to the user with the available options, expects case-insensitive matching, and determines the correctness of the answer" do + flavors = %w(strawberry chocolate vanilla) +- expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', :limited_to => flavors, :case_insensitive => true).and_return("CHOCOLATE") ++ expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', {:limited_to => flavors, :case_insensitive => true}).and_return("CHOCOLATE") + expect(shell.ask('What\'s your favorite Neopolitan flavor?', :limited_to => flavors, :case_insensitive => true)).to eq("chocolate") + end + + it "prints a message to the user with the available options, expects case-insensitive matching, and reasks the question after an incorrect response" do + flavors = %w(strawberry chocolate vanilla) + expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n") +- expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', :limited_to => flavors, :case_insensitive => true).and_return("moose tracks", "chocolate") ++ expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', {:limited_to => flavors, :case_insensitive => true}).and_return("moose tracks", "chocolate") + expect(shell.ask('What\'s your favorite Neopolitan flavor?', :limited_to => flavors, :case_insensitive => true)).to eq("chocolate") + end + + it "prints a message to the user containing a default and sets the default if only enter is pressed" do +- expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? (vanilla) ', :default => "vanilla").and_return("") ++ expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? (vanilla) ', {:default => "vanilla"}).and_return("") + expect(shell.ask('What\'s your favorite Neopolitan flavor?', :default => "vanilla")).to eq("vanilla") + end + + it "prints a message to the user with the available options and reasks the question after an incorrect response and then returns the default" do + flavors = %w(strawberry chocolate vanilla) + expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n") +- expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] (vanilla) ', :default => "vanilla", :limited_to => flavors).and_return("moose tracks", "") ++ expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] (vanilla) ', {:default => "vanilla", :limited_to => flavors}).and_return("moose tracks", "") + expect(shell.ask("What's your favorite Neopolitan flavor?", :default => "vanilla", :limited_to => flavors)).to eq("vanilla") + end + end + + describe "#yes?" do + it "asks the user and returns true if the user replies yes" do +- expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", :add_to_history => false).and_return("y") ++ expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", {:add_to_history => false}).and_return("y") + expect(shell.yes?("Should I overwrite it?")).to be true + end + + it "asks the user and returns false if the user replies no" do +- expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", :add_to_history => false).and_return("n") ++ expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", {:add_to_history => false}).and_return("n") + expect(shell.yes?("Should I overwrite it?")).not_to be true + end + + it "asks the user and returns false if the user replies with an answer other than yes or no" do +- expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", :add_to_history => false).and_return("foobar") ++ expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", {:add_to_history => false}).and_return("foobar") + expect(shell.yes?("Should I overwrite it?")).to be false + end + end + + describe "#no?" do + it "asks the user and returns true if the user replies no" do +- expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", :add_to_history => false).and_return("n") ++ expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", {:add_to_history => false}).and_return("n") + expect(shell.no?("Should I overwrite it?")).to be true + end + + it "asks the user and returns false if the user replies yes" do +- expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", :add_to_history => false).and_return("Yes") ++ expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", {:add_to_history => false}).and_return("Yes") + expect(shell.no?("Should I overwrite it?")).to be false + end + + it "asks the user and returns false if the user replies with an answer other than yes or no" do +- expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", :add_to_history => false).and_return("foobar") ++ expect(Thor::LineEditor).to receive(:readline).with("Should I overwrite it? ", {:add_to_history => false}).and_return("foobar") + expect(shell.no?("Should I overwrite it?")).to be false + end + end +@@ -431,13 +431,13 @@ def #456 Lanç... + expect(content).to eq(<<-TABLE) + Name Number Color + Erik 1234567890123 green +-TABLE ++ TABLE + end + end + + describe "#file_collision" do + it "shows a menu with options" do +- expect(Thor::LineEditor).to receive(:readline).with('Overwrite foo? (enter "h" for help) [Ynaqh] ', :add_to_history => false).and_return("n") ++ expect(Thor::LineEditor).to receive(:readline).with('Overwrite foo? (enter "h" for help) [Ynaqh] ', {:add_to_history => false}).and_return("n") + shell.file_collision("foo") + end + +@@ -478,7 +478,7 @@ def #456 Lanç... + end + + it "always returns true if the user chooses always" do +- expect(Thor::LineEditor).to receive(:readline).with('Overwrite foo? (enter "h" for help) [Ynaqh] ', :add_to_history => false).and_return("a") ++ expect(Thor::LineEditor).to receive(:readline).with('Overwrite foo? (enter "h" for help) [Ynaqh] ', {:add_to_history => false}).and_return("a") + + expect(shell.file_collision("foo")).to be true + +@@ -488,7 +488,7 @@ def #456 Lanç... + + describe "when a block is given" do + it "displays diff and merge options to the user" do +- expect(Thor::LineEditor).to receive(:readline).with('Overwrite foo? (enter "h" for help) [Ynaqdhm] ', :add_to_history => false).and_return("s") ++ expect(Thor::LineEditor).to receive(:readline).with('Overwrite foo? (enter "h" for help) [Ynaqdhm] ', {:add_to_history => false}).and_return("s") + shell.file_collision("foo") {} + end + +From 46d1422902e1c66b31fae79be7dca79ff8b2e81b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@riseup.net> +Date: Wed, 15 Jun 2022 19:35:27 +0200 +Subject: [PATCH] Reimplement did_you_mean suggestions to keep behaviour + accross rubies + +Ruby 3.2 will introduce `Exception#detailed_message` and `did_you_mean` +has been already updated in Ruby 3.2 to use that. + +The new behaviour means not changing the original `Exception#message`. +That means it is hard to get the previous error output, because +`Exception#detailed_message` includes not only `did_you_mean` +decorations, but also additional information like the exception class. + +To fix this, I bring the old did_you_mean behavior into Thor, so that +the above changes do not affect us. +--- a/lib/thor/error.rb ++++ b/lib/thor/error.rb +@@ -11,7 +11,15 @@ def initialize(dictionary) + end + end + +- DidYouMean::Correctable ++ Module.new do ++ def to_s ++ super + DidYouMean.formatter.message_for(corrections) ++ end ++ ++ def corrections ++ @corrections ||= self.class.const_get(:SpellChecker).new(self).corrections ++ end ++ end + end + + # Thor::Error is raised when it's caused by wrong usage of thor classes. Those +@@ -100,16 +108,4 @@ class RequiredArgumentMissingError < InvocationError + + class MalformattedArgumentError < InvocationError + end +- +- if Correctable +- if DidYouMean.respond_to?(:correct_error) +- DidYouMean.correct_error(Thor::UndefinedCommandError, UndefinedCommandError::SpellChecker) +- DidYouMean.correct_error(Thor::UnknownArgumentError, UnknownArgumentError::SpellChecker) +- else +- DidYouMean::SPELL_CHECKERS.merge!( +- 'Thor::UndefinedCommandError' => UndefinedCommandError::SpellChecker, +- 'Thor::UnknownArgumentError' => UnknownArgumentError::SpellChecker +- ) +- end +- end + end diff --git a/dev-ruby/thor/thor-1.2.1-r1.ebuild b/dev-ruby/thor/thor-1.2.1-r1.ebuild new file mode 100644 index 000000000000..42cd077c6593 --- /dev/null +++ b/dev-ruby/thor/thor-1.2.1-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 2000-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_BINWRAP="thor" + +RUBY_FAKEGEM_GEMSPEC="thor.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A scripting framework that replaces rake and sake" +HOMEPAGE="http://whatisthor.com/" + +SRC_URI="https://github.com/erikhuda/${PN}/archive/v${PV}.tar.gz -> ${PN}-git-${PV}.tgz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux" +IUSE="doc" + +USE_RUBY="ruby27" ruby_add_bdepend " + test? ( + dev-ruby/childlabor + dev-ruby/webmock + )" + +RDEPEND+=" !<dev-ruby/thor-0.20.3-r1:0" + +PATCHES=( + "${FILESDIR}"/thor-1.2.1-tests.patch +) + +all_ruby_prepare() { + # Remove rspec default options (as we might not have the last + # rspec). + rm .rspec || die + + # Remove Bundler + #rm Gemfile || die + sed -i -e '/[Bb]undler/d' Thorfile || die + + # Remove mandatory coverage collection using simplecov which is not + # packaged. + sed -i -e '/require .simplecov/,/^end/ s:^:#:' spec/helper.rb || die + + # Avoid a spec that requires UTF-8 support, so LANG=C still works, + # bug 430402 + sed -i -e '/uses maximum terminal width/,/end/ s:^:#:' spec/shell/basic_spec.rb || die + + # Avoid specs depending on git, bug 724058 + rm -f spec/quality_spec.rb || die + + # Avoid currently broken readline specs (already fixed upstream) + #rm -f spec/line_editor/readline_spec.rb spec/line_editor_spec.rb || die + + # Avoid spec failing on whitespace difference in error message + sed -i -e '/raises an error for unknown switches/askip "whitespace differences"' spec/parser/options_spec.rb || die +} + +each_ruby_test() { + case ${RUBY} in + *ruby30|*ruby31|*ruby32) + einfo "Skipping tests due to circular dependencies" + ;; + *) + RSPEC_VERSION=3 ruby-ng_rspec spec || die + ;; + esac +} diff --git a/dev-ruby/tty-color/tty-color-0.6.0.ebuild b/dev-ruby/tty-color/tty-color-0.6.0.ebuild index 199213b20e6c..139c2d86ea3f 100644 --- a/dev-ruby/tty-color/tty-color-0.6.0.ebuild +++ b/dev-ruby/tty-color/tty-color-0.6.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/tty-cursor/tty-cursor-0.7.1.ebuild b/dev-ruby/tty-cursor/tty-cursor-0.7.1.ebuild index 73023cfff948..bba595145135 100644 --- a/dev-ruby/tty-cursor/tty-cursor-0.7.1.ebuild +++ b/dev-ruby/tty-cursor/tty-cursor-0.7.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby26 ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/tty-editor/tty-editor-0.7.0.ebuild b/dev-ruby/tty-editor/tty-editor-0.7.0.ebuild index a27f02257554..3eb336c2de5b 100644 --- a/dev-ruby/tty-editor/tty-editor-0.7.0.ebuild +++ b/dev-ruby/tty-editor/tty-editor-0.7.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_EXTRADOC="README.md" RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" diff --git a/dev-ruby/tty-prompt/tty-prompt-0.23.1.ebuild b/dev-ruby/tty-prompt/tty-prompt-0.23.1.ebuild index 6128abe77738..83aeb404b223 100644 --- a/dev-ruby/tty-prompt/tty-prompt-0.23.1.ebuild +++ b/dev-ruby/tty-prompt/tty-prompt-0.23.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/tty-reader/tty-reader-0.9.0.ebuild b/dev-ruby/tty-reader/tty-reader-0.9.0.ebuild index 194a1b0880e2..093514201713 100644 --- a/dev-ruby/tty-reader/tty-reader-0.9.0.ebuild +++ b/dev-ruby/tty-reader/tty-reader-0.9.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/tty-screen/tty-screen-0.8.1.ebuild b/dev-ruby/tty-screen/tty-screen-0.8.1.ebuild index da2419fe8220..40667d07ea73 100644 --- a/dev-ruby/tty-screen/tty-screen-0.8.1.ebuild +++ b/dev-ruby/tty-screen/tty-screen-0.8.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/webmock/webmock-3.18.1.ebuild b/dev-ruby/webmock/webmock-3.18.1.ebuild index ff18bc5ed6e0..9ea2b1c6e9bf 100644 --- a/dev-ruby/webmock/webmock-3.18.1.ebuild +++ b/dev-ruby/webmock/webmock-3.18.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_TEST="test spec NO_CONNECTION=true" diff --git a/dev-ruby/wisper/wisper-2.0.1.ebuild b/dev-ruby/wisper/wisper-2.0.1.ebuild index 54e929575cba..0eb86608b79b 100644 --- a/dev-ruby/wisper/wisper-2.0.1.ebuild +++ b/dev-ruby/wisper/wisper-2.0.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
