diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-01-02 07:52:57 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-01-02 07:52:57 +0100 |
commit | d75d62dff1217750dd7de254378990ed146509d2 (patch) | |
tree | 3c542de002ea72f72bb7896793bbee7d22a38887 /www-servers | |
parent | games-emulation/pcsx2: adjust postinst elog to be more accurate (diff) | |
download | gentoo-d75d62dff1217750dd7de254378990ed146509d2.tar.gz gentoo-d75d62dff1217750dd7de254378990ed146509d2.tar.bz2 gentoo-d75d62dff1217750dd7de254378990ed146509d2.zip |
www-servers/puma: add 6.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/puma/Manifest | 1 | ||||
-rw-r--r-- | www-servers/puma/puma-6.0.2.ebuild | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest index acc90192fb78..32e4a76bf2d7 100644 --- a/www-servers/puma/Manifest +++ b/www-servers/puma/Manifest @@ -2,3 +2,4 @@ DIST puma-5.6.4.tar.gz 310770 BLAKE2B 124190a0ca791352d055f833caec470be3be910ec4 DIST puma-5.6.5.tar.gz 314953 BLAKE2B 2aca92ff3d32995be8f05b626c2299c07f8665f345a6830f3ec3a3a561dbeb41d68d65851cef9c33a56d1d508c9adf2ebb254ca5c1d4dd8fbc896d6d6d2b440a SHA512 0ad41f3372732bdea6594a20b116ec4fc03a8a1d2ff807b3c315e7769aef4e5361ff775975575125002fbfc83315e6906fa8691ce666161bd8beee8c469289d8 DIST puma-6.0.0.tar.gz 345407 BLAKE2B eb7b1c44e04249441dd9c3084cb4a7965216fe31d3d851026e0548f91dc5d20355e2635d54a062a9c32622ee0b21ba64669b2c905976e2cae83e8fdb7a153616 SHA512 2b5b31e315fc4b5f8f510e7e08941100835c9ab33007569da178eeca0c729ac45955146b85294792d89b7a13168fbb9173a2c55c38e1cd1e10fa243c30966be3 DIST puma-6.0.1.tar.gz 348199 BLAKE2B 5f27b6e1e688d875b90420382afe75c6aced0010bc89b9a526c9cc47d14cefc1171e6fc19f13596d127294842a85f4456a5cd8c65d9382aa60c39b72a7d16a6c SHA512 e5025613a23c3677caf120486e1e8072be0ddc61752706cfbda26abd4fa3e0e3c1e80ce3999bc90a6e3d75482ca129a842a7a9765537d1dc88d14bf61556618b +DIST puma-6.0.2.tar.gz 348269 BLAKE2B b0bf0efe179e78259b7b9f5ed8b2a701829ae4619edff00975a7a7e21eefd6560d051957d47fc2f5a4ba10cc2c8bcc863d4340f640054b8f081a7aa7fdbf8ede SHA512 9202ff3767a5944558a34904e58db3c0c0dd9e68df1ebcc76f31fbccea90edcd0f2d60360bd7bbd517eb965be4b1a99faf31ed0a0c36a41c13e8b0573c40f530 diff --git a/www-servers/puma/puma-6.0.2.ebuild b/www-servers/puma/puma-6.0.2.ebuild new file mode 100644 index 000000000000..53dc2507d211 --- /dev/null +++ b/www-servers/puma/puma-6.0.2.ebuild @@ -0,0 +1,59 @@ +# 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 >=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 + + sed -e 's/git ls-files --/find/' \ + -e 's:_relative ": "./:' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + einfo "Running test suite" + ${RUBY} -Ilib:.:test -e "gem 'minitest', '~>5.9'; gem 'test-unit', '~>3.0'; require 'minitest/autorun'; Dir['test/**/*test_*.rb'].each{|f| require f}" || die +} |