diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-04-23 08:17:19 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-04-23 08:21:17 +0200 |
commit | 3dd8994ed988038cb4707dea5415d7364b6215cf (patch) | |
tree | 4495ff5cdf575b0170e706063d07f4bef48dec47 /www-servers/puma | |
parent | www-servers/puma: drop 5.6.4, 6.0.0, 6.0.1 (diff) | |
download | gentoo-3dd8994ed988038cb4707dea5415d7364b6215cf.tar.gz gentoo-3dd8994ed988038cb4707dea5415d7364b6215cf.tar.bz2 gentoo-3dd8994ed988038cb4707dea5415d7364b6215cf.zip |
www-servers/puma: add 6.2.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'www-servers/puma')
-rw-r--r-- | www-servers/puma/Manifest | 1 | ||||
-rw-r--r-- | www-servers/puma/puma-6.2.2.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest index 104937330a3f..e554765612c5 100644 --- a/www-servers/puma/Manifest +++ b/www-servers/puma/Manifest @@ -2,3 +2,4 @@ DIST puma-5.6.5.tar.gz 314953 BLAKE2B 2aca92ff3d32995be8f05b626c2299c07f8665f345 DIST puma-6.0.2.tar.gz 348269 BLAKE2B b0bf0efe179e78259b7b9f5ed8b2a701829ae4619edff00975a7a7e21eefd6560d051957d47fc2f5a4ba10cc2c8bcc863d4340f640054b8f081a7aa7fdbf8ede SHA512 9202ff3767a5944558a34904e58db3c0c0dd9e68df1ebcc76f31fbccea90edcd0f2d60360bd7bbd517eb965be4b1a99faf31ed0a0c36a41c13e8b0573c40f530 DIST puma-6.1.0.tar.gz 355394 BLAKE2B 664bd24be4afde93c7fb3c6b407f0fd943bcebd86ec183d6f6d965c194f1b111d460b044eb64bcbaaff743a2d24031f786fb340a9e4ae624f324c2b70273723d SHA512 642755f565d6f1f2baebac041112dad238ca2b815f85c5653cf913c0c007e9971212581036f48fa9bdcfe98b28261843ab80306ed693274c77849bce012125f3 DIST puma-6.1.1.tar.gz 355892 BLAKE2B 025d8303f01dc09dfc9e15395cbd2a5507b3f578dcd3b22cf0985ca760ed304b2eb1b0f4c442efc542f3261f7300143bf5264bab5543360d1cb07eb0aa3e52d5 SHA512 76988e75110124dcac589fcd01b46ae659e37b7dc2e6901c8d88b3b20ab188c8e6cdefb114f73c9ce829581d5723392d52a8059485ab7c31b77c65204554ac60 +DIST puma-6.2.2.tar.gz 358383 BLAKE2B aeea4410eb6b20f294131aa107d4d19ca19bea5a3447cee59250be151b5b8046feae2e2e096f40fade6ac81a6b630cf72608b1c6c76cf05c18be4e81c6f6e143 SHA512 b9eabec30761873d628acfff259cf4e5c55dbda735ecb871b0c6e3607930a96f55fe1ad4df58954b8d0b11995762b4918f47e930ae48ebc9557fdc0182a3db8d diff --git a/www-servers/puma/puma-6.2.2.ebuild b/www-servers/puma/puma-6.2.2.ebuild new file mode 100644 index 000000000000..2369f50156fd --- /dev/null +++ b/www-servers/puma/puma-6.2.2.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="ruby30 ruby31 ruby32" + +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" +IUSE="" + +DEPEND+=" dev-libs/openssl:0 test? ( net-misc/curl )" +RDEPEND+=" dev-libs/openssl:0=" + +ruby_add_bdepend "virtual/ruby-ssl + test? ( dev-ruby/localhost dev-ruby/rack:2.2 >=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 '/bundler/ s:^:#:' \ + -e '/prove/ s:^:#:' \ + -e '/stub_const/ 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 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 + + # 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 + + # 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" + PUMA_CI_RACK_2=true \ + ${RUBY} -Ilib:.:test \ + -e "gem 'rack', '<3'; require 'minitest/autorun'; Dir['test/**/*test_*.rb'].each{require _1}" || die +} |