commit: 5e0d8d5cefb084c966ee4c8dffc009a06219e252 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sat Jan 24 19:34:03 2026 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sat Jan 24 19:35:30 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e0d8d5c
www-servers/puma: add 7.2.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> www-servers/puma/Manifest | 1 + www-servers/puma/puma-7.2.0.ebuild | 87 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest index 2282ac89e6ce..264c5a093563 100644 --- a/www-servers/puma/Manifest +++ b/www-servers/puma/Manifest @@ -4,3 +4,4 @@ DIST puma-7.0.1.tar.gz 416567 BLAKE2B 3c1059d2c7eec9d909a7ee242f9cf696f9705a8a6c DIST puma-7.0.3.tar.gz 417532 BLAKE2B 02ad9dfb2a9a62681dc792bde4553bbaf831b3a597f6d81c8fafc31232697f196587c148afb19ecd7ec93f2d6df46cb1ac95b308c7f53fbf71b46aa91f6265d0 SHA512 74fc3fc675a6a20cf537af704553cd486b8c5c059ffa05d5c8b71d1f9c8ef0a13c8cc052fbb7c666b5385674e6268a40345d9c20ca29001af1f53c940def6185 DIST puma-7.0.4.tar.gz 421722 BLAKE2B 9c72589adcccb3294c1d201e0299530904d72a7713ec268ee7ef65ece07635cc7c03145c0bf87344f15cdaacd0b42fb2f6990d5a33dc1d57501ebd176408c1d4 SHA512 f9abc89368169b8be0ba8d53b6e8758159a083e70fa54377fccbdac3bcbc4f7218922870271345662e8994d41d18454ba51fa288c0b074733ff52936ebd08e39 DIST puma-7.1.0.tar.gz 424242 BLAKE2B be800a0b7ae2850ddbaac3408331956278a13150e20383270f874b404992fe6c80c430658f96fcb29f741c09a966d716f2e80e5fa757943b0bb7f1b4069f5686 SHA512 f00140080664e9f44181b289fb98059d1da70d6f6e555d8506a8e971954187635e36444d5aec14b9a849fec53b4e41d72961ca5550e69043dab2f211494455a5 +DIST puma-7.2.0.tar.gz 426885 BLAKE2B ed2849482d00731a7098627891690bc314c7048e64d352a481b432cede78ca310f01dcd5c0658475467804430b63b8cc67fd09245b5781571bcaeaae24913920 SHA512 4439f2f752eef8f2f9aa45ad879f9b5a4e40e27af66623f4b7c54b5c93b1648e4713ef5c00d9a77e874960a3d8ecdddf6e77f9c80d2319215fd5fc7b312d1c46 diff --git a/www-servers/puma/puma-7.2.0.ebuild b/www-servers/puma/puma-7.2.0.ebuild new file mode 100644 index 000000000000..75a23fe9e723 --- /dev/null +++ b/www-servers/puma/puma-7.2.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34" + +RUBY_FAKEGEM_GEMSPEC="puma.gemspec" + +RUBY_FAKEGEM_EXTENSIONS=(ext/puma_http11/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/puma + +inherit ruby-fakegem + +DESCRIPTION="a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack" +HOMEPAGE="https://puma.io/" +SRC_URI="https://github.com/puma/puma/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="3" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" + +DEPEND="dev-libs/openssl:0 test? ( net-misc/curl )" +RDEPEND="dev-libs/openssl:0=" + +ruby_add_bdepend "virtual/ruby-ssl + test? ( + dev-ruby/concurrent-ruby + dev-ruby/localhost + || ( dev-ruby/rack:3.2 dev-ruby/rack:3.1 dev-ruby/rack:3.0 ) + dev-ruby/rackup + >=dev-ruby/minitest-5.9:5 + >=dev-ruby/test-unit-3.0:2 + )" + +ruby_add_rdepend "dev-ruby/nio4r:2" + +all_ruby_prepare() { + sed -e '/\(pride\|prove\|stub_const\)/ s:^:#:' \ + -e '/require_relative.*verbose/ s:^:#:' \ + -i test/helper.rb || die + + # Avoid tests failing inconsistently + #sed -i -e '/test_bad_client/askip "inconsistent results"' test/test_web_server.rb || die + + # Avoid tests depending on specific encoding + #sed -i -e '/test_lowlevel_error_handler_response/askip "specific encoding required"' test/test_puma_server.rb || die + + # Avoid launcher tests since they make assumptions about bundler use + rm -f test/test_launcher.rb test/test_worker_gem_independence.rb test/test_bundle_pruner.rb || die + sed -e '/test_web_concurrency_with_concurrent_ruby_unavailable/askip "Cannot provide environment for this"' \ + -i test/test_web_concurrency_auto.rb || die + + # Skip integration tests since they make a lot of assumptions about + # the environment + rm -f test/test_integration_* test/test_preserve_bundler_env.rb|| die + + # Avoid test that uses unpackaged stub_const + sed -i -e '/test_shutdown_with_grace/,/^ end/ s:^:#:' test/test_thread_pool.rb || die + + # Avoid test that fails, most likely due to how we run the test suite + rm -f test/test_url_map.rb || die + + # Avoid test that fails sometimes, possibly due to timing + # constraints or a race condition. + #sed -e '/test_systemd_notify_usr1_phased_restart_cluster/askip "Flaky test"' \ + # -i test/test_plugin_systemd.rb || die + + # Avoid a test that fails on systemd systems due to the pluging + # getting autoloaded there, bug #954180 + sed -e '/test_plugins/askip "Fails on a systemd system"' \ + -i test/test_cli.rb || die + + # Tries to call 'rackup' directly + sed -i -e '/def test_bin/,/^ end/ s:^:#:' test/test_rack_handler.rb || die + + sed -e 's/git ls-files --/find/' \ + -e 's:_relative ": "./:' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + einfo "Running test suite" + + MT_NO_PLUGINS=true ${RUBY} -Ilib:.:test \ + -e "gem 'minitest', '~> 5.0'; require 'minitest/autorun'; Dir['test/**/*test_*.rb'].each{require _1}" || die +}
