From 7beeb25af975042d3e724ee55d6a12fbd627aca5 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Wed, 17 Jul 2024 12:10:13 +0200 Subject: [PATCH 1/9] dev-ruby/omniauth: drop 2.1.1 Signed-off-by: Hans de Graaff --- dev-ruby/omniauth/Manifest | 1 - dev-ruby/omniauth/omniauth-2.1.1.ebuild | 48 ------------------------- 2 files changed, 49 deletions(-) delete mode 100644 dev-ruby/omniauth/omniauth-2.1.1.ebuild diff --git a/dev-ruby/omniauth/Manifest b/dev-ruby/omniauth/Manifest index a06ad6dd5df92..c8f809b5a41e5 100644 --- a/dev-ruby/omniauth/Manifest +++ b/dev-ruby/omniauth/Manifest @@ -1,2 +1 @@ -DIST omniauth-2.1.1.tar.gz 31414 BLAKE2B 180ee40499a61e8b6360dc4c462ca10933dc7bac976f76dd8c9579e73da6618ffae71ed532fab024f0eb65c3830db1e52f866c40b6e160e65c8fa403c7c1ab37 SHA512 e86fbd3c1f239b4950f17fdfe4ebd97a9a135831b63892dd009bae97f4372b3a6fa2452233e414c6097c3b835ee4e75821e795599da9613affdaf163d31964a3 DIST omniauth-2.1.2.tar.gz 31631 BLAKE2B 73faa82db781c3980eae55f3fa8a099d3ec0769326201f51f57840566a3b2da2331bdaaddd4ef17d957e389ea8863fc7bfdc11f0278753c27f3a7eabc01ec138 SHA512 bd0c65af815502f3df2dbb104ede35de093c6cc6f25285e9bbcdd58df3d31ac6c05d410888a40aca86a00b17a4851856d158593b06415e8b69ff426f171b9857 diff --git a/dev-ruby/omniauth/omniauth-2.1.1.ebuild b/dev-ruby/omniauth/omniauth-2.1.1.ebuild deleted file mode 100644 index ece4591244e5f..0000000000000 --- a/dev-ruby/omniauth/omniauth-2.1.1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -USE_RUBY="ruby30 ruby31 ruby32" - -RUBY_FAKEGEM_EXTRADOC="README.md" -RUBY_FAKEGEM_RECIPE_TEST="rspec3" -RUBY_FAKEGEM_DOCDIR="doc" - -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" - -inherit ruby-fakegem - -DESCRIPTION="A generalized Rack framework for multiple-provider authentication" -HOMEPAGE="https://github.com/omniauth/omniauth" -SRC_URI="https://github.com/omniauth/omniauth/archive/v${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="MIT" -KEYWORDS="~amd64" -SLOT="$(ver_cut 1)" -IUSE="" - -ruby_add_rdepend " - >=dev-ruby/rack-2.2.3 - dev-ruby/rack-protection - >=dev-ruby/hashie-3.4.6:*" -ruby_add_bdepend "doc? ( dev-ruby/yard ) - test? ( dev-ruby/rack-test dev-ruby/rack:2.2 )" - -all_ruby_prepare() { - sed -i -e '/[Bb]undler/d' \ - Rakefile ${PN}.gemspec || die "sed failed" - sed -e '/RUBY_VERSION/,/^end/ s:^:#: ; /freeze/ s:^:#:' \ - -e '2igem "rack", "<3"' \ - -i spec/helper.rb || die "sed failed" - # maruku fails, resorting to default markdown implementation - sed -i -e '/maruku/d' .yardopts || die "sed failed" - - sed -i -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die -} - -all_ruby_compile() { - all_fakegem_compile - - if use doc ; then - yard || die "yard failed" - fi -} From 5e1f85e8a8632c691c4d2ab6ded271e3edeb3b83 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Wed, 17 Jul 2024 20:29:41 +0200 Subject: [PATCH 2/9] dev-ruby/omniauth: use compatible rack-protection slot Only rack-protection:3 is compatible with the version of rack that we require here. Closes: https://bugs.gentoo.org/936203 Signed-off-by: Hans de Graaff --- dev-ruby/omniauth/omniauth-2.1.2.ebuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dev-ruby/omniauth/omniauth-2.1.2.ebuild b/dev-ruby/omniauth/omniauth-2.1.2.ebuild index 0ff88ca09fd52..84c249a9576ae 100644 --- a/dev-ruby/omniauth/omniauth-2.1.2.ebuild +++ b/dev-ruby/omniauth/omniauth-2.1.2.ebuild @@ -16,22 +16,23 @@ DESCRIPTION="A generalized Rack framework for multiple-provider authentication" HOMEPAGE="https://github.com/omniauth/omniauth" SRC_URI="https://github.com/omniauth/omniauth/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" -KEYWORDS="~amd64" + SLOT="$(ver_cut 1)" -IUSE="" +KEYWORDS="~amd64" +IUSE="doc test" ruby_add_rdepend " >=dev-ruby/rack-2.2.3 dev-ruby/rack-protection >=dev-ruby/hashie-3.4.6:*" ruby_add_bdepend "doc? ( dev-ruby/yard ) - test? ( dev-ruby/rack-test dev-ruby/rack:2.2 )" + test? ( dev-ruby/rack-test dev-ruby/rack:2.2 dev-ruby/rack-protection:3 )" all_ruby_prepare() { sed -i -e '/[Bb]undler/d' \ Rakefile ${PN}.gemspec || die "sed failed" sed -e '/RUBY_VERSION/,/^end/ s:^:#: ; /freeze/ s:^:#:' \ - -e '2igem "rack", "<3"' \ + -e '2igem "rack", "<3"; gem "rack-protection", "~> 3.0"' \ -e '/simplecov/,/^end/ s:^:#:' \ -i spec/helper.rb || die "sed failed" # maruku fails, resorting to default markdown implementation From 2f9e2b3749ea6697a875c4f298d4d39148f00815 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Thu, 18 Jul 2024 07:27:10 +0200 Subject: [PATCH 3/9] dev-ruby/sass-rails: enable ruby33 Signed-off-by: Hans de Graaff --- dev-ruby/sass-rails/sass-rails-5.1.0-r1.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-ruby/sass-rails/sass-rails-5.1.0-r1.ebuild b/dev-ruby/sass-rails/sass-rails-5.1.0-r1.ebuild index d593abeefec52..e3445ec6a735d 100644 --- a/dev-ruby/sass-rails/sass-rails-5.1.0-r1.ebuild +++ b/dev-ruby/sass-rails/sass-rails-5.1.0-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby30 ruby31 ruby32" +USE_RUBY="ruby31 ruby32 ruby33" RUBY_FAKEGEM_EXTRADOC="README.md" @@ -18,7 +18,7 @@ LICENSE="MIT" SLOT="$(ver_cut 1-2)" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux" -IUSE="" +IUSE="test" # Restrict tests for now since it is hard to set up the right # environment with the correct ruby interpreter and Rails test From aea11479b290fd3c76e5d6f76f50fca2a918e746 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Thu, 18 Jul 2024 07:41:21 +0200 Subject: [PATCH 4/9] dev-ruby/elastic-transport: add 8.3.5 Signed-off-by: Hans de Graaff --- dev-ruby/elastic-transport/Manifest | 1 + .../elastic-transport-8.3.5.ebuild | 77 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 dev-ruby/elastic-transport/elastic-transport-8.3.5.ebuild diff --git a/dev-ruby/elastic-transport/Manifest b/dev-ruby/elastic-transport/Manifest index 5c1d070fd8535..e8fa4475c5a02 100644 --- a/dev-ruby/elastic-transport/Manifest +++ b/dev-ruby/elastic-transport/Manifest @@ -4,3 +4,4 @@ DIST elastic-transport-8.2.4.tar.gz 55964 BLAKE2B 8f995985e543dcf4a472a8b034116e DIST elastic-transport-8.3.0.tar.gz 59938 BLAKE2B 664bac3ba0f644657a633b32366d7f6d5b5078313b9225dbbb1f8d7bb26ee103a123664ed9f0032d82689c8e7fa3f69174da828fbf1eac250d16ecce0a89c269 SHA512 19d6c91de2891887e1f2d5203dd6e1223e6da664448ef2817370c9c67056a4d094323c80a5e5c049c61d38ce06fe93f7e7e4cf858f9c1e6cb63091dc01606bf9 DIST elastic-transport-8.3.1.tar.gz 59992 BLAKE2B 867eadff08e73a003cf66c09616cd9430cccde0aa0a58b0a64c92775d799c606a4e592ee5e94ecf3553def7d669081ce8986a3db0a224232ac15cece5a860fd0 SHA512 55b18908b5981bb9d80a99eeef740c79cc10a3a1433b08b898cce76f2c1c4c4c38a459e8a1ba834fd240d7c519632a930182f8621bf095107984ac49012e6597 DIST elastic-transport-8.3.2.tar.gz 60159 BLAKE2B 1eac8f50148fd48f8421922d7d5d57403ea2874642958de71812522556103e63901072f9b35edc762430353d99c7b8a843ea53153cd98deee661939687bf2cec SHA512 81eaf0fd044cf20b024d3dc865c90dabc68a1b739e2db89dfd9b29410e2c2f47930ac6c8d540817046c6e69f37617f8f21127add0b1b7ae95ad7cf6c0ff6565c +DIST elastic-transport-8.3.5.tar.gz 60375 BLAKE2B 7e5b62feb31b82f07ad5f538dbb5a7ad53808d5e8754274b0053f90ef5c16905ea65a81221484410cff2c7615fd673c10e3ebadaaf5b15296a0510be5891c86b SHA512 4bdeb1744e059784b3e618d098bbde5d731480fa4a8b79428a0e11d3f8026909e4282125820ae5f1a05a2cb908a9a13a7366dd1d881f506ebd236c595fd5f220 diff --git a/dev-ruby/elastic-transport/elastic-transport-8.3.5.ebuild b/dev-ruby/elastic-transport/elastic-transport-8.3.5.ebuild new file mode 100644 index 0000000000000..219fe987f6fe4 --- /dev/null +++ b/dev-ruby/elastic-transport/elastic-transport-8.3.5.ebuild @@ -0,0 +1,77 @@ +# 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_GEMSPEC="${PN}.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="Transport classes and utilities shared among Ruby Elastic client libraries" +HOMEPAGE="https://github.com/elastic/elastic-transport-ruby" +SRC_URI="https://github.com/elastic/elastic-transport-ruby/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="elastic-transport-ruby-${PV}" + +LICENSE="Apache-2.0" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="doc test" + +ruby_add_rdepend " + || ( dev-ruby/faraday:2 dev-ruby/faraday:1 ) + dev-ruby/multi_json +" +ruby_add_bdepend " + doc? ( dev-ruby/yard ) + test? ( + dev-ruby/ansi + dev-ruby/hashie + || ( ( dev-ruby/faraday:2 dev-ruby/faraday-net_http_persistent:2 ) dev-ruby/faraday:1 ) + dev-ruby/mocha:2 + dev-ruby/pry + dev-ruby/rspec:3 + dev-ruby/shoulda-context + dev-ruby/curb + ) +" + +all_ruby_prepare() { + # fix to work without git + sed -i -e 's/git ls-files/find * -type f/' ${RUBY_FAKEGEM_GEMSPEC} || die + + # remove useless dependencies from Rakefile + sed -e '/bundler/d' \ + -e '/require.*cane/,/end/d' \ + -i Rakefile || die + + # Tweak test setup to only run unit tests since we don't have a live cluster + sed -e "s/RUBY_VERSION > '1.9'/false/" \ + -e '/module Elasticsearch/,$ s:^:#:' \ + -e '/reporters/ s:^:#: ; /Reporters::SpecReporter/,/^end/ s:^:#: ; /Reporters.use/ s:^:#:' \ + -i test/test_helper.rb || die + + sed -e '/pry/ s:^:#:' \ + -e '/config.formatter/ s:^:#:' \ + -i spec/spec_helper.rb || die + + # Avoid specs that require a running elasticsearch instance + sed -e '/#perform_request/ s/describe/xdescribe/' \ + -e '/when the client connects/ s/context/xcontext/' \ + -i spec/elastic/transport/client_spec.rb || die + sed -e '/retries on 404 status the specified number of max_retries/ s/it/xit/' \ + -i spec/elastic/transport/base_spec.rb || die + + # Avoid specs that require unpackaged gems + sed -e '/when using the HTTPClient adapter/ s/context/xcontext/' \ + -e '/require.*httpclient/ s:^:#:' \ + -e '/when the adapter is \(patron\|typhoeus\)/ s/context/xcontext/' \ + -e '/require.*\(patron\|typhoeus\)/ s:^:#:' \ + -e '/when the adapter \(can be detected\|is specified as a string key\)/ s/context/xcontext/' \ + -e '/when the Faraday adapter is \(configured\|set in the block\)/ s/context/xcontext/' \ + -i spec/elastic/transport/client_spec.rb || die + sed -e '/using \(httpclient\|patron\|typhoeus\)/ s/context/xcontext/' \ + -i spec/elastic/transport/meta_header_spec.rb || die +} From 5c7eae41475508fa1fa4a7ad5333c9c9ed708eec Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Thu, 18 Jul 2024 08:04:15 +0200 Subject: [PATCH 5/9] dev-ruby/acts_as_list: add 1.2.2 Signed-off-by: Hans de Graaff --- dev-ruby/acts_as_list/Manifest | 1 + .../acts_as_list/acts_as_list-1.2.2.ebuild | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 dev-ruby/acts_as_list/acts_as_list-1.2.2.ebuild diff --git a/dev-ruby/acts_as_list/Manifest b/dev-ruby/acts_as_list/Manifest index a669404e6bebe..a75723d690c96 100644 --- a/dev-ruby/acts_as_list/Manifest +++ b/dev-ruby/acts_as_list/Manifest @@ -1,3 +1,4 @@ DIST acts_as_list-1.1.0.gem 41984 BLAKE2B abeb0325795276294451b4cb86e20dab6871003c72679ce28f9326cd844234ad56457a03d9b9ecd81b8c143deeefc25dd15df88a38ebdd1324a953b2399465e7 SHA512 bdcaf07bc4ad3854d68c8d95e666e86c2500474ffa212c315b6b4abd321341ac782c0e301f2c859c12b80ecfdd1cc743ccf8a7bdbdb36e30fafcd98d4928a00a DIST acts_as_list-1.2.0.gem 41984 BLAKE2B 98652e8b974501a499fb06f73807adfca411912f7b6e705ca91f654b814c61d419018af068ea4977abae55b6ebcea7d2dd7c48a2b107f0d31f1027799875978a SHA512 16e5b5549db7884077b3fe3131b1f91f3b857a083ab80b9b1c19a59b25740b53b032081743f222850fd06cc5892164e0c06cc0c63ae35cf646920f5e7d87292d DIST acts_as_list-1.2.1.gem 42496 BLAKE2B ba7d009db1a0cabaea360401df3dbaddbae4d94cf4f9be2d6f9001c1be720d17a5ec7556723878923e85ad9acd231af8c5014f393aff0744bae0c110b01101a6 SHA512 095d402c49f855cd1274e3ca3afdcbdd4e4d747c7bf2d0a010257c14de8751a13da889273acf9fa134c7da12d7bb92474377c8f6082bc7b9fa919c67d992bebc +DIST acts_as_list-1.2.2.tar.gz 38316 BLAKE2B 8fca217bab42ec45f8860323347e0d5282c99b494588f84f623cbb395bbf1cbeaa8cd8c7fd5344a7c1900a65a3a5f263ffd11fc340e2a0533dc8cbddc297d2a8 SHA512 1e985593b849cb4da5749bce72d09354454b06e40eeefbba161b0e8ceeccf08702761793692213bce013848151de373f0407d7794e7d1745e60646070e4946d7 diff --git a/dev-ruby/acts_as_list/acts_as_list-1.2.2.ebuild b/dev-ruby/acts_as_list/acts_as_list-1.2.2.ebuild new file mode 100644 index 0000000000000..e31722ad807a6 --- /dev/null +++ b/dev-ruby/acts_as_list/acts_as_list-1.2.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +inherit ruby-fakegem + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" +RUBY_FAKEGEM_EXTRAINSTALL="init.rb" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +DESCRIPTION="Capabilities for sorting and reordering a number of objects in a list" +HOMEPAGE="https://github.com/brendon/acts_as_list" +SRC_URI="https://github.com/brendon/acts_as_list/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="3" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend ">=dev-ruby/activerecord-6.1:* >=dev-ruby/activesupport-6.1:*" + +ruby_add_bdepend " + test? ( + >=dev-ruby/minitest-hooks-1.5.1:1 + >=dev-ruby/mocha-2.1.0:2 + dev-ruby/test-unit:2 + >=dev-ruby/timecop-0.9.8 + dev-ruby/activerecord[sqlite] + )" + +all_ruby_prepare() { + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile || die + sed -i -e '/bundler/,/^end/ s:^:#:' test/helper.rb || die + sed -e 's/git ls-files -z/find lib CHANGELOG.md README.md init.rb -print0/' \ + -e '/executables/ s:^:#:' \ + -e 's/__dir__/"."/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/github_changelog/,$ s:^:#:' Rakefile || die +} + +each_ruby_test() { + DB=sqlite each_fakegem_test +} From 87970fc88e7541eec9e54bed94cfdc0fc21e1cbb Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Thu, 18 Jul 2024 08:04:47 +0200 Subject: [PATCH 6/9] dev-ruby/elastic-transport: drop 8.2.2, 8.2.3 Signed-off-by: Hans de Graaff --- dev-ruby/elastic-transport/Manifest | 2 - .../elastic-transport-8.2.2.ebuild | 77 ------------------- .../elastic-transport-8.2.3.ebuild | 77 ------------------- 3 files changed, 156 deletions(-) delete mode 100644 dev-ruby/elastic-transport/elastic-transport-8.2.2.ebuild delete mode 100644 dev-ruby/elastic-transport/elastic-transport-8.2.3.ebuild diff --git a/dev-ruby/elastic-transport/Manifest b/dev-ruby/elastic-transport/Manifest index e8fa4475c5a02..52b5814acc2a9 100644 --- a/dev-ruby/elastic-transport/Manifest +++ b/dev-ruby/elastic-transport/Manifest @@ -1,5 +1,3 @@ -DIST elastic-transport-8.2.2.tar.gz 55336 BLAKE2B e68c5280c706cbef9b72681c8f2e1ba1847460f6d3f04a35c4faa05a000f236fbbf19a70d129e3d0a31937626d11c7fc077046d6b843d2c3e15c908ef32e9e18 SHA512 34d52bc39f51fe5011e389de6fadaa943a11d0216198976ef06768222eb34583d0ae50d250edc3253e0956eb68e58c507e7f2598535f807425fbd8224caa1154 -DIST elastic-transport-8.2.3.tar.gz 55339 BLAKE2B 648bef27a8fb55c9d617429f8c9921963b8c79c4ed4ca47652f8ab351178b472a63b7ff3b7e3736281a2c31f26433a159acae7704d745ecda118730f091bbd47 SHA512 a35538fc9dbea9262418b34bb91cb2b48b7729536e160b2c30a0ecb2c65d81b7c749015c4254e55950687d30ba6996ad618ed3d11e975eb6a7a32c284a0ea755 DIST elastic-transport-8.2.4.tar.gz 55964 BLAKE2B 8f995985e543dcf4a472a8b034116eede1a4ca7fd71e710cef57c4437243e9607ecf80cd8d345a09b1583df98f5539f0e9702940cdeca13845c6f3a4b6f3dbee SHA512 79ec2b0dadd4c63e502e426264ceabf8fc76c7c28c78ec3e03b91f9e09c5a347c8151c2a99a7cb775fb5558ee42e24b8c9b8cceaa112df0fc3d2b02daebb12e6 DIST elastic-transport-8.3.0.tar.gz 59938 BLAKE2B 664bac3ba0f644657a633b32366d7f6d5b5078313b9225dbbb1f8d7bb26ee103a123664ed9f0032d82689c8e7fa3f69174da828fbf1eac250d16ecce0a89c269 SHA512 19d6c91de2891887e1f2d5203dd6e1223e6da664448ef2817370c9c67056a4d094323c80a5e5c049c61d38ce06fe93f7e7e4cf858f9c1e6cb63091dc01606bf9 DIST elastic-transport-8.3.1.tar.gz 59992 BLAKE2B 867eadff08e73a003cf66c09616cd9430cccde0aa0a58b0a64c92775d799c606a4e592ee5e94ecf3553def7d669081ce8986a3db0a224232ac15cece5a860fd0 SHA512 55b18908b5981bb9d80a99eeef740c79cc10a3a1433b08b898cce76f2c1c4c4c38a459e8a1ba834fd240d7c519632a930182f8621bf095107984ac49012e6597 diff --git a/dev-ruby/elastic-transport/elastic-transport-8.2.2.ebuild b/dev-ruby/elastic-transport/elastic-transport-8.2.2.ebuild deleted file mode 100644 index 5a93f863ee260..0000000000000 --- a/dev-ruby/elastic-transport/elastic-transport-8.2.2.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -USE_RUBY="ruby30 ruby31 ruby32" - -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" -RUBY_FAKEGEM_RECIPE_TEST="rspec3" - -inherit ruby-fakegem - -DESCRIPTION="Transport classes and utilities shared among Ruby Elastic client libraries" -HOMEPAGE="https://github.com/elastic/elastic-transport-ruby" -SRC_URI="https://github.com/elastic/elastic-transport-ruby/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" -RUBY_S="elastic-transport-ruby-${PV}" - -LICENSE="Apache-2.0" -SLOT="$(ver_cut 1)" -KEYWORDS="~amd64" -IUSE="" - -ruby_add_rdepend " - || ( dev-ruby/faraday:2 dev-ruby/faraday:1 ) - dev-ruby/multi_json -" -ruby_add_bdepend " - doc? ( dev-ruby/yard ) - test? ( - dev-ruby/ansi - dev-ruby/hashie - || ( ( dev-ruby/faraday:2 dev-ruby/faraday-net_http_persistent ) dev-ruby/faraday:1 ) - dev-ruby/mocha:1.0 - dev-ruby/pry - dev-ruby/rspec:3 - dev-ruby/shoulda-context - dev-ruby/curb - ) -" - -all_ruby_prepare() { - # fix to work without git - sed -i -e 's/git ls-files/find * -type f/' ${RUBY_FAKEGEM_GEMSPEC} || die - - # remove useless dependencies from Rakefile - sed -e '/bundler/d' \ - -e '/require.*cane/,/end/d' \ - -i Rakefile || die - - # Tweak test setup to only run unit tests since we don't have a live cluster - sed -e "s/RUBY_VERSION > '1.9'/false/" \ - -e '/module Elasticsearch/,$ s:^:#:' \ - -e '/reporters/ s:^:#: ; /Reporters::SpecReporter/,/^end/ s:^:#: ; /Reporters.use/ s:^:#:' \ - -i test/test_helper.rb || die - - sed -e '/pry/ s:^:#:' \ - -e '/config.formatter/ s:^:#:' \ - -i spec/spec_helper.rb || die - - # Avoid specs that require a running elasticsearch instance - sed -e '/#perform_request/ s/describe/xdescribe/' \ - -e '/when the client connects/ s/context/xcontext/' \ - -i spec/elastic/transport/client_spec.rb || die - sed -e '/retries on 404 status the specified number of max_retries/ s/it/xit/' \ - -i spec/elastic/transport/base_spec.rb || die - - # Avoid specs that require unpackaged gems - sed -e '/when using the HTTPClient adapter/ s/context/xcontext/' \ - -e '/require.*httpclient/ s:^:#:' \ - -e '/when the adapter is \(patron\|typhoeus\)/ s/context/xcontext/' \ - -e '/require.*\(patron\|typhoeus\)/ s:^:#:' \ - -e '/when the adapter \(can be detected\|is specified as a string key\)/ s/context/xcontext/' \ - -e '/when the Faraday adapter is \(configured\|set in the block\)/ s/context/xcontext/' \ - -i spec/elastic/transport/client_spec.rb || die - sed -e '/using \(httpclient\|patron\|typhoeus\)/ s/context/xcontext/' \ - -i spec/elastic/transport/meta_header_spec.rb || die -} diff --git a/dev-ruby/elastic-transport/elastic-transport-8.2.3.ebuild b/dev-ruby/elastic-transport/elastic-transport-8.2.3.ebuild deleted file mode 100644 index c9d6146ca24d8..0000000000000 --- a/dev-ruby/elastic-transport/elastic-transport-8.2.3.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -USE_RUBY="ruby31 ruby32" - -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" -RUBY_FAKEGEM_RECIPE_TEST="rspec3" - -inherit ruby-fakegem - -DESCRIPTION="Transport classes and utilities shared among Ruby Elastic client libraries" -HOMEPAGE="https://github.com/elastic/elastic-transport-ruby" -SRC_URI="https://github.com/elastic/elastic-transport-ruby/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" -RUBY_S="elastic-transport-ruby-${PV}" - -LICENSE="Apache-2.0" -SLOT="$(ver_cut 1)" -KEYWORDS="~amd64" -IUSE="" - -ruby_add_rdepend " - || ( dev-ruby/faraday:2 dev-ruby/faraday:1 ) - dev-ruby/multi_json -" -ruby_add_bdepend " - doc? ( dev-ruby/yard ) - test? ( - dev-ruby/ansi - dev-ruby/hashie - || ( ( dev-ruby/faraday:2 dev-ruby/faraday-net_http_persistent ) dev-ruby/faraday:1 ) - dev-ruby/mocha:1.0 - dev-ruby/pry - dev-ruby/rspec:3 - dev-ruby/shoulda-context - dev-ruby/curb - ) -" - -all_ruby_prepare() { - # fix to work without git - sed -i -e 's/git ls-files/find * -type f/' ${RUBY_FAKEGEM_GEMSPEC} || die - - # remove useless dependencies from Rakefile - sed -e '/bundler/d' \ - -e '/require.*cane/,/end/d' \ - -i Rakefile || die - - # Tweak test setup to only run unit tests since we don't have a live cluster - sed -e "s/RUBY_VERSION > '1.9'/false/" \ - -e '/module Elasticsearch/,$ s:^:#:' \ - -e '/reporters/ s:^:#: ; /Reporters::SpecReporter/,/^end/ s:^:#: ; /Reporters.use/ s:^:#:' \ - -i test/test_helper.rb || die - - sed -e '/pry/ s:^:#:' \ - -e '/config.formatter/ s:^:#:' \ - -i spec/spec_helper.rb || die - - # Avoid specs that require a running elasticsearch instance - sed -e '/#perform_request/ s/describe/xdescribe/' \ - -e '/when the client connects/ s/context/xcontext/' \ - -i spec/elastic/transport/client_spec.rb || die - sed -e '/retries on 404 status the specified number of max_retries/ s/it/xit/' \ - -i spec/elastic/transport/base_spec.rb || die - - # Avoid specs that require unpackaged gems - sed -e '/when using the HTTPClient adapter/ s/context/xcontext/' \ - -e '/require.*httpclient/ s:^:#:' \ - -e '/when the adapter is \(patron\|typhoeus\)/ s/context/xcontext/' \ - -e '/require.*\(patron\|typhoeus\)/ s:^:#:' \ - -e '/when the adapter \(can be detected\|is specified as a string key\)/ s/context/xcontext/' \ - -e '/when the Faraday adapter is \(configured\|set in the block\)/ s/context/xcontext/' \ - -i spec/elastic/transport/client_spec.rb || die - sed -e '/using \(httpclient\|patron\|typhoeus\)/ s/context/xcontext/' \ - -i spec/elastic/transport/meta_header_spec.rb || die -} From 9c5c318cde6d3b023eac2e20b9edc8a231f97b6c Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Thu, 18 Jul 2024 08:04:38 +0200 Subject: [PATCH 7/9] dev-ml/opam: add 2.1.6 Signed-off-by: Alfredo Tupone --- dev-ml/opam/Manifest | 1 + dev-ml/opam/opam-2.1.6.ebuild | 54 +++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 dev-ml/opam/opam-2.1.6.ebuild diff --git a/dev-ml/opam/Manifest b/dev-ml/opam/Manifest index d1d1ef4c062e1..c1dc54712bf2a 100644 --- a/dev-ml/opam/Manifest +++ b/dev-ml/opam/Manifest @@ -4,3 +4,4 @@ DIST opam-2.1.0-dose3-6.patch.xz 5896 BLAKE2B f605064ebae7d327895729962a345a3c67 DIST opam-2.1.2.tar.gz 818848 BLAKE2B ffb50f3cf1421aa9bff6877d636a3d1d1cc2c2e3961ecd60fcae8a35b069c8d22e7a36bf17cb8166533621a3c85a82195fd3fa646b2fd8dcea9e626b61d5b86c SHA512 bea6f75728a6ef25bcae4f8903dde7a297df7186208dccacb3f58bd6a0caec551c11b79e8544f0983feac038971dbe49481fc405a5962973a5f56ec811abe396 DIST opam-2.1.3.tar.gz 832450 BLAKE2B c5e50c0a41b7197bc7645eaef0d8cba79c978b4432fc824aa6a4280df65ec7d59df52a22b76877da4949c8562a5fecb8da2a179ca67bd312bf9a514961bf4444 SHA512 040e4f58f93e962ff422617ce0d35ed45dd86921a9aac3505914c33dd942d0e5e5771e7e1774046504f9aa84f32bc4fbd6ac7720fbea862d48bf1ca29e02cefc DIST opam-2.1.5.tar.gz 837005 BLAKE2B f2e58784959f0e47fbe5ae65112a030d8350b061d7b0d2676f40e22ec5bf62c136bc37fd3078403dab807705ce8a1c8b6bb0ecf00b68fdfbb5f3d5a9acb88c77 SHA512 4395defe7df1d03ca889718b8eafd8161ff009710475f62673f19f012e0bde8ad2a919bd9d02d7f96b4c5a9bbf38e0ba9a256531c24de15cafabd4ef11f7c8e8 +DIST opam-2.1.6.tar.gz 837526 BLAKE2B 1ee60691f4fcc1011f461505942f00ff5f5cc0f0bbfc97edb8e4c676d1e4cd28fed8b49ef341af51a750848be3110713cc97e93a9e63999e4b92e7c7f68d743e SHA512 f75d81b4eb19ef6603e7a2a18e1a281ea6f5eea47b820ae888593102db5b98ded5b593b176e70235611b63a07f4a406a57fe016386f4e921f51b55eb62b9864d diff --git a/dev-ml/opam/opam-2.1.6.ebuild b/dev-ml/opam/opam-2.1.6.ebuild new file mode 100644 index 0000000000000..fa7540b2dd308 --- /dev/null +++ b/dev-ml/opam/opam-2.1.6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DUNE_PKG_NAME="opam opam-core opam-format" +inherit dune + +DESCRIPTION="A source-based package manager for OCaml" +HOMEPAGE="http://opam.ocaml.org/" +SRC_URI="https://github.com/ocaml/opam/archive/${PV/_/-}.tar.gz -> opam-${PV}.tar.gz" +S="${WORKDIR}/opam-${PV/_/-}" + +LICENSE="LGPL-2.1-with-linking-exception" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="+ocamlopt" +RESTRICT="test" #see bugs 838658 + +RDEPEND=" + dev-ml/cmdliner:=[ocamlopt?] + dev-ml/cudf:=[ocamlopt?] + dev-ml/dose3:=[ocamlopt?] + dev-ml/extlib:=[ocamlopt?] + >=dev-ml/mccs-1.1.17:=[ocamlopt?] + dev-ml/ocamlgraph:=[ocamlopt?] + !dev-ml/opam-client + !dev-ml/opam-core + dev-ml/opam-file-format:=[ocamlopt?] + !dev-ml/opam-format + !dev-ml/opam-state + !dev-ml/opam-solver + !dev-ml/opam-repository + dev-ml/re:=[ocamlopt?] + sys-apps/bubblewrap +" +DEPEND="${RDEPEND} + dev-ml/cppo" + +src_prepare() { + default + + cat <<- EOF >> "${S}/dune" + (env + (dev + (flags (:standard -warn-error -3-9-33))) + (release + (flags (:standard -warn-error -3-9-33)))) + EOF +} + +src_compile() { + dune-compile opam-solver opam-repository opam-state opam-client ${DUNE_PKG_NAME} +} From 7a9fdfbebec49680493913f10691ca3b6ed5117a Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Thu, 18 Jul 2024 08:06:40 +0200 Subject: [PATCH 8/9] dev-ml/opam-installer: add 2.1.6 Signed-off-by: Alfredo Tupone --- dev-ml/opam-installer/Manifest | 1 + .../opam-installer-2.1.6.ebuild | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 dev-ml/opam-installer/opam-installer-2.1.6.ebuild diff --git a/dev-ml/opam-installer/Manifest b/dev-ml/opam-installer/Manifest index a004a07b0e442..5e20fd641bc5c 100644 --- a/dev-ml/opam-installer/Manifest +++ b/dev-ml/opam-installer/Manifest @@ -4,3 +4,4 @@ DIST opam-full-2.0.9.tar.gz 8029605 BLAKE2B c2ae06bdbbdbe9db270ec0027ec8d13a228f DIST opam-full-2.1.2.tar.gz 9442446 BLAKE2B fe5447fe8f9bcedb30bf455e93b54a37e950e2944f6f501545bdccf6d989de2da90106938efb6a12c1b9454ecefed5be9906d65a15a4d0244302ad7ccff170db SHA512 fe12aaa27168435a978c472926d40697af0a7619a529c4bfacd0b71469dfcd534f43164bc74f60f740a735d38a869ae5e87e2414119f4f3fc1826315e8a075cd DIST opam-full-2.1.3.tar.gz 9618995 BLAKE2B 6f33e70c2e59be87b643840128b46441828d3d83888f5d321ac23d33b2fbc4d3163cb4303ac82a7f863abcc9300227bbc48bca3b8db5d6fbcebf0e6cf8869a5d SHA512 fe3a3c86335830944683a39a34a9eb385037476853ab3e2a82b8571a9e2021830cccf25cbd5bb891d239f6a47584c1b1d91aa445e6e2a814847346c5cc526ff1 DIST opam-full-2.1.5.tar.gz 10801367 BLAKE2B 5e6b1140e279931dfb61f68d0c4888cb14d05ff610e2b151115efe6b6420d74e7079894b6f4360f377b155008530ba4ace9708bc9d1e1d8c13950c0a5be4de11 SHA512 e4e33fcee0a9f922f8b43c6b095554a946559a2c50341326d21cca0f24fc7105c0de01db204b408240b12b267c9929435e2c511adf140618c91873f10444ae90 +DIST opam-full-2.1.6.tar.gz 11704198 BLAKE2B 20e74551760cadf1d911e72c34502e1e7e62003f8ebc83f3b9cb46c712e13fb5f85f41421cc74b051c2e348e0c0a17f4ea34bf655f7ec48cfcdab1e0d8a57a11 SHA512 2bb24db05dc39d6e8294c10b5a6bb2dd8f675a4d56e1dc9a2e9bc576f54d14a1709005219c25586df9382897ab7ba5ea0636765410f01c06958ec59be9f14b4c diff --git a/dev-ml/opam-installer/opam-installer-2.1.6.ebuild b/dev-ml/opam-installer/opam-installer-2.1.6.ebuild new file mode 100644 index 0000000000000..c8d56c6f4111d --- /dev/null +++ b/dev-ml/opam-installer/opam-installer-2.1.6.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# We are opam +OPAM_INSTALLER_DEP=" " +OPAM_SKIP_VALIDATION=yes +inherit dune + +DESCRIPTION="Core installer for opam packages" +HOMEPAGE="https://opam.ocaml.org/ https://github.com/ocaml/opam" +SRC_URI="https://github.com/ocaml/opam/releases/download/${PV}/opam-full-${PV}.tar.gz" +S="${WORKDIR}/opam-full-${PV/_/-}" +OPAM_INSTALLER="${S}/_build/install/default/bin/opam-installer" + +LICENSE="LGPL-2.1" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="+ocamlopt" +RESTRICT="test" # sandbox not working + +RDEPEND=" + dev-ml/cmdliner:=[ocamlopt?] + ~dev-ml/opam-${PV}:=[ocamlopt?] + dev-ml/dose3:=[ocamlopt?] +" +DEPEND="${RDEPEND} + dev-ml/findlib" + +src_configure() { + econf \ + --prefix="${EPREFIX}/usr" \ + --with-mccs \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --mandir="${EPREFIX}/usr/share/man" +} + +src_compile() { + dune-compile ${PN} +} From 1a899f7c1f6f4de5ac93fd4fbe30cd4d0696cbcd Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 18 Jul 2024 08:06:04 +0200 Subject: [PATCH 9/9] sys-kernel/linux-firmware: avoid mount-boot if ROOT is set Signed-off-by: Andrew Ammerlaan --- .../linux-firmware/linux-firmware-20240709-r1.ebuild | 8 ++++---- sys-kernel/linux-firmware/linux-firmware-99999999.ebuild | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys-kernel/linux-firmware/linux-firmware-20240709-r1.ebuild b/sys-kernel/linux-firmware/linux-firmware-20240709-r1.ebuild index eba1ddedc308e..b7c47404963db 100644 --- a/sys-kernel/linux-firmware/linux-firmware-20240709-r1.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-20240709-r1.ebuild @@ -70,10 +70,10 @@ PATCHES=( "${FILESDIR}"/${PN}-copy-firmware-r4.patch ) pkg_pretend() { if use initramfs; then - if [[ -z ${ROOT} ]] && use dist-kernel; then + if use dist-kernel; then # Check, but don't die because we can fix the problem and then # emerge --config ... to re-run installation. - nonfatal mount-boot_check_status + [[ -z ${ROOT} ]] && nonfatal mount-boot_check_status else mount-boot_pkg_pretend fi @@ -376,8 +376,8 @@ pkg_postinst() { done if use initramfs; then - if [[ -z ${ROOT} ]] && use dist-kernel; then - dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" + if use dist-kernel; then + [[ -z ${ROOT} ]] && dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" else # Don't forget to umount /boot if it was previously mounted by us. mount-boot_pkg_postinst diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild index 17a10c80a0fc3..7635e488d9091 100644 --- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild +++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild @@ -68,10 +68,10 @@ QA_PREBUILT="*" pkg_pretend() { if use initramfs; then - if [[ -z ${ROOT} ]] && use dist-kernel; then + if use dist-kernel; then # Check, but don't die because we can fix the problem and then # emerge --config ... to re-run installation. - nonfatal mount-boot_check_status + [[ -z ${ROOT} ]] && nonfatal mount-boot_check_status else mount-boot_pkg_pretend fi @@ -382,8 +382,8 @@ pkg_postinst() { done if use initramfs; then - if [[ -z ${ROOT} ]] && use dist-kernel; then - dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" + if use dist-kernel; then + [[ -z ${ROOT} ]] && dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" else # Don't forget to umount /boot if it was previously mounted by us. mount-boot_pkg_postinst