Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/puma/
Date: Sat, 29 Feb 2020 06:57:33
Message-Id: 1582959444.841961bf9d0a79a8cfcdf42ae721c8f8b59f8cd4.graaff@gentoo
1 commit: 841961bf9d0a79a8cfcdf42ae721c8f8b59f8cd4
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 29 06:56:25 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 29 06:57:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=841961bf
7
8 www-servers/puma: add 4.3.3
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 www-servers/puma/Manifest | 1 +
14 www-servers/puma/puma-4.3.3.ebuild | 73 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest
18 index 9fa6a1d7d50..0fe0041d370 100644
19 --- a/www-servers/puma/Manifest
20 +++ b/www-servers/puma/Manifest
21 @@ -3,3 +3,4 @@ DIST puma-3.12.3.tar.gz 218918 BLAKE2B 41bf89c63ddf6f3e1975f45db049150c6f362e028
22 DIST puma-3.12.4.tar.gz 219148 BLAKE2B d9fcef62474a1522c29f13fb2572c99bd6d4217bc94febb9c4fe6e699808ad0002fcd88dfd16884a5a9c7296e4d6dd08bc50ce7278f41608678feb18e3a034b4 SHA512 302505512b04c68f9794461b0e7693cd3ff4dfb325b18e50f0f659649c7f504f55765437382557c65bce45d32a1710ab16a875d1fc6d143d4ca297d2b2333108
23 DIST puma-4.3.1.tar.gz 239800 BLAKE2B 123dcb71dd310a960555fe801530586a39ef6876d9019549eb66590195ab1f450999d5365cf9ebbf2f057f2c641739f3fcdf743f5de076d7e637b0b17210410c SHA512 cbb5fc187d3aebfa255d3d0f2d897e109f50e18feadedbf02b73a350555dcbcfbfd91c0a810c11d6d3ac2ec26103479a53eed3fae77c96f1ae6cc2814960de46
24 DIST puma-4.3.2.tar.gz 240942 BLAKE2B d02a6b5894199607905fb0d1364719f61ea189ba5c04a06863ad5c448dd6dd3ba96e8557a9ae9f3562322b9c8cbdf1189d89b7a4f344da0245ba4abfbdacaeee SHA512 a295a8fbfd03519cd87c44737783cd893d486dd8e8b63c1b07d4ea4aa706b12c36d210d9e56daf5490d0205ea7ddd2a77dc28159c90d2edafbbf3ce1ae8c24e0
25 +DIST puma-4.3.3.tar.gz 241756 BLAKE2B a6ff66a449bf04110b4a6e9bdaa740f1144076290f1733922ecab45b5b7e6115ee1f7431b280401adb866838b539b943a35a5955f6d7cf51075941e05451e655 SHA512 1ee81c8d144466a75d5110fd3545527c36af51d2e191c171a985944206524c10a2b4e35fb535e2a1a0a3af5d460a7071ceb9233fae8dc81784643c6b9dc06e6e
26
27 diff --git a/www-servers/puma/puma-4.3.3.ebuild b/www-servers/puma/puma-4.3.3.ebuild
28 new file mode 100644
29 index 00000000000..184d12b0c48
30 --- /dev/null
31 +++ b/www-servers/puma/puma-4.3.3.ebuild
32 @@ -0,0 +1,73 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +USE_RUBY="ruby24 ruby25 ruby26 ruby27"
39 +
40 +RUBY_FAKEGEM_GEMSPEC="puma.gemspec"
41 +
42 +inherit multilib ruby-fakegem
43 +
44 +DESCRIPTION="a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack"
45 +HOMEPAGE="https://puma.io/"
46 +SRC_URI="https://github.com/puma/puma/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="BSD"
49 +SLOT="3"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
51 +IUSE=""
52 +
53 +DEPEND+=" dev-libs/openssl:0 test? ( net-misc/curl )"
54 +RDEPEND+=" dev-libs/openssl:0"
55 +
56 +ruby_add_bdepend "virtual/ruby-ssl
57 + test? ( dev-ruby/rack >=dev-ruby/minitest-5.9:5 >=dev-ruby/test-unit-3.0:2 )"
58 +
59 +ruby_add_rdepend "dev-ruby/nio4r:2"
60 +
61 +all_ruby_prepare() {
62 + sed -e '/bundler/ s:^:#:' \
63 + -e '/prove/ s:^:#:' \
64 + -i test/helper.rb || die
65 +
66 + # Avoid tests failing inconsistently
67 + sed -i -e '/phased_restart_via_pumactl/,/^ end/ s:^:#:' test/test_integration_pumactl.rb || die
68 + sed -i -e '/test_bad_client/askip "inconsistent results"' test/test_web_server.rb || die
69 +
70 + # Loosen timing on flakey test
71 + #sed -i -e '390 s/sleep 2/sleep 4/' test/test_integration.rb || die
72 +
73 + # Use correct ruby version
74 + sed -i -e 's/ruby -rrubygems/#{Gem.ruby} -rrubygems/' test/shell/t{1,3}.rb || die
75 +
76 + # Avoid launcher tests since they make assumptions about bundler use
77 + rm -f test/test_launcher.rb || die
78 +
79 + sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
80 +}
81 +
82 +each_ruby_prepare() {
83 + sed -i -e 's:ruby -rubygems:'${RUBY}' -rubygems:' \
84 + -e 's/localhost/127.0.0.1/' test/shell/* || die
85 + sed -i -e '1ilog_requests' test/shell/t{1,2}_conf.rb || die
86 +}
87 +
88 +each_ruby_configure() {
89 + ${RUBY} -Cext/puma_http11 extconf.rb || die
90 +}
91 +
92 +each_ruby_compile() {
93 + emake V=1 -Cext/puma_http11
94 + cp ext/puma_http11/puma_http11$(get_modname) lib/puma/ || die
95 +}
96 +
97 +each_ruby_test() {
98 + einfo "Running test suite"
99 + ${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
100 +
101 + einfo "Running integration tests"
102 + pushd test/shell
103 + #sh run.sh || die
104 + popd
105 +}