mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
www-servers/puma: add 6.3.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -3,3 +3,4 @@ DIST puma-6.0.2.tar.gz 348269 BLAKE2B b0bf0efe179e78259b7b9f5ed8b2a701829ae4619e
|
||||
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
|
||||
DIST puma-6.3.0.tar.gz 365128 BLAKE2B 4db46fd2bcb3a6766582294cdc7f0bd0e2585da12999ec3091d942946f1f6a3e95272834323ab8efe594d7852f78ef9ee0f5f549cd92bbe086fc5ee2d25b914f SHA512 74c4a58cceac016d0ccfef1312e31208b665e1a88d18dabc1018df26466b626fd85666042f1bcb416650dfb4f9779390b2f9b1fcd83c25816221b05eac8f25f8
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user