diff options
author | Sam James <sam@gentoo.org> | 2023-03-27 08:48:58 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-27 09:33:52 +0100 |
commit | 7372c98f2332930b2c6766d3098adbe32b85f720 (patch) | |
tree | 5a52eda1171ff14eb35794d0a6fda8698413d044 /www-servers/puma | |
parent | dev-ruby/combustion: don't install test binaries (diff) | |
download | gentoo-7372c98f2332930b2c6766d3098adbe32b85f720.tar.gz gentoo-7372c98f2332930b2c6766d3098adbe32b85f720.tar.bz2 gentoo-7372c98f2332930b2c6766d3098adbe32b85f720.zip |
www-servers/puma: add 6.1.1
One newly-added test [0] gets skipped because it calls 'rackup'
directly (which fails for me independently of puma). In any case,
not relevant to testing puma, and calling unwrapped executables
is generally frought with issues anyhow.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-servers/puma')
-rw-r--r-- | www-servers/puma/Manifest | 1 | ||||
-rw-r--r-- | www-servers/puma/puma-6.1.1.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest index 83123b0afdb1..e1f2243eede4 100644 --- a/www-servers/puma/Manifest +++ b/www-servers/puma/Manifest @@ -4,3 +4,4 @@ DIST puma-6.0.0.tar.gz 345407 BLAKE2B eb7b1c44e04249441dd9c3084cb4a7965216fe31d3 DIST puma-6.0.1.tar.gz 348199 BLAKE2B 5f27b6e1e688d875b90420382afe75c6aced0010bc89b9a526c9cc47d14cefc1171e6fc19f13596d127294842a85f4456a5cd8c65d9382aa60c39b72a7d16a6c SHA512 e5025613a23c3677caf120486e1e8072be0ddc61752706cfbda26abd4fa3e0e3c1e80ce3999bc90a6e3d75482ca129a842a7a9765537d1dc88d14bf61556618b 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 diff --git a/www-servers/puma/puma-6.1.1.ebuild b/www-servers/puma/puma-6.1.1.ebuild new file mode 100644 index 000000000000..19520609d0a1 --- /dev/null +++ b/www-servers/puma/puma-6.1.1.ebuild @@ -0,0 +1,62 @@ +# 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_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 'minitest', '~>5.9'; gem 'test-unit', '~>3.0'; gem 'rack', '<3'; require 'minitest/autorun'; Dir['test/**/*test_*.rb'].each{|f| require f}" || die +} |