diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest index f9f4946bafc30..bd5612e2681be 100644 --- a/www-servers/puma/Manifest +++ b/www-servers/puma/Manifest @@ -2,3 +2,4 @@ DIST puma-6.6.0.tar.gz 408988 BLAKE2B 656a82b50ef0556ae78791ed268a081c868eda85f2 DIST puma-6.6.1.tar.gz 412347 BLAKE2B 6d0146f9bc39b0eb82edcea78cceeccccf9dba69d8d39a4c7710ab1a073f4909d5d7f2ec470c3d9a9d51738639b4fd72b16c359ccfeb6573ecfbbdbbf5384897 SHA512 5838b5eabb1190ba7af5429c08f34428954fb3e9c23bc8b78850021fc628bcb888feefea6f76d24caf490b1a45d890289dfe9b5c90ee9891b6387f81b6c05626 DIST puma-7.1.0.tar.gz 424242 BLAKE2B be800a0b7ae2850ddbaac3408331956278a13150e20383270f874b404992fe6c80c430658f96fcb29f741c09a966d716f2e80e5fa757943b0bb7f1b4069f5686 SHA512 f00140080664e9f44181b289fb98059d1da70d6f6e555d8506a8e971954187635e36444d5aec14b9a849fec53b4e41d72961ca5550e69043dab2f211494455a5 DIST puma-7.2.0.tar.gz 426885 BLAKE2B ed2849482d00731a7098627891690bc314c7048e64d352a481b432cede78ca310f01dcd5c0658475467804430b63b8cc67fd09245b5781571bcaeaae24913920 SHA512 4439f2f752eef8f2f9aa45ad879f9b5a4e40e27af66623f4b7c54b5c93b1648e4713ef5c00d9a77e874960a3d8ecdddf6e77f9c80d2319215fd5fc7b312d1c46 +DIST puma-7.2.1.tar.gz 427475 BLAKE2B 391897599643da5f92eaf6dcc9861900b65d1718893e5f131ef46f25f78d88ffc4e64a9dde3d8d9c86dd8d408d34ea03834a18602f030a5c6019fa2fba22cee2 SHA512 543a78a6648d0ce5283a110e0bfb987d4f4a0fc48a7e8d6eddb0036e475a46c4eae99b5ce654191ceea312e42600c33572764154f6b7d995262a79c13c1e1b4c diff --git a/www-servers/puma/puma-7.2.1.ebuild b/www-servers/puma/puma-7.2.1.ebuild new file mode 100644 index 0000000000000..654cd1620f72f --- /dev/null +++ b/www-servers/puma/puma-7.2.1.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 ruby40" + +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 ~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 +}