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:00:59
Message-Id: 1582956047.f253202555ef702a009d61df87de829365421659.graaff@gentoo
1 commit: f253202555ef702a009d61df87de829365421659
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 29 06:00:07 2020 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 29 06:00:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2532025
7
8 www-servers/puma: add 3.12.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-3.12.3.ebuild | 69 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest
18 index b2ddc9f963a..7bdebcca337 100644
19 --- a/www-servers/puma/Manifest
20 +++ b/www-servers/puma/Manifest
21 @@ -1,3 +1,4 @@
22 DIST puma-3.12.2.tar.gz 218109 BLAKE2B 82224c3a9c1b2c8e903e5f02a8b43effab820581abbaea5bea9c537eb36e39deb34d6f7d62d9fc42e1e5a6f3c153583d8e009c73864a9e57c39e2d31387b2813 SHA512 b0721dc9b380f1932a60a8ac2e1f0ef3869c735359e9a9e1e37bb118ebc3f550a24bd3e544142513ebeb1ee37ae01a41ec67e71e1d182faec0bb6ed4a60bafcf
23 +DIST puma-3.12.3.tar.gz 218918 BLAKE2B 41bf89c63ddf6f3e1975f45db049150c6f362e028113fd1790cad30a512468e63785f892d9db7bc2bbf4232c87bb3ebf48f8f9f8d777faab93f8f5219c320508 SHA512 f3d1aac689f42f520feea39de0d56f68d58dc5dccacd412b110afc74edfc29aeefe2b06b22dc97f287accc89e55f8488b5bd9cc6e787e945d85a8e61ae1f0118
24 DIST puma-4.3.1.tar.gz 239800 BLAKE2B 123dcb71dd310a960555fe801530586a39ef6876d9019549eb66590195ab1f450999d5365cf9ebbf2f057f2c641739f3fcdf743f5de076d7e637b0b17210410c SHA512 cbb5fc187d3aebfa255d3d0f2d897e109f50e18feadedbf02b73a350555dcbcfbfd91c0a810c11d6d3ac2ec26103479a53eed3fae77c96f1ae6cc2814960de46
25 DIST puma-4.3.2.tar.gz 240942 BLAKE2B d02a6b5894199607905fb0d1364719f61ea189ba5c04a06863ad5c448dd6dd3ba96e8557a9ae9f3562322b9c8cbdf1189d89b7a4f344da0245ba4abfbdacaeee SHA512 a295a8fbfd03519cd87c44737783cd893d486dd8e8b63c1b07d4ea4aa706b12c36d210d9e56daf5490d0205ea7ddd2a77dc28159c90d2edafbbf3ce1ae8c24e0
26
27 diff --git a/www-servers/puma/puma-3.12.3.ebuild b/www-servers/puma/puma-3.12.3.ebuild
28 new file mode 100644
29 index 00000000000..6d43e6fb3a0
30 --- /dev/null
31 +++ b/www-servers/puma/puma-3.12.3.ebuild
32 @@ -0,0 +1,69 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +USE_RUBY="ruby24 ruby25 ruby26"
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
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 +all_ruby_prepare() {
60 + eapply "${FILESDIR}/${PN}-3.12.1-ruby26-waitpid.patch"
61 +
62 + sed -i -e '/bundler/ s:^:#:' test/helper.rb || die
63 +
64 + # Avoid test failing inconsistently
65 + sed -i -e '/phased_restart_via_pumactl/,/^ end/ s:^:#:' test/test_integration.rb || die
66 +
67 + # Avoid test that trigger a bug in ruby very easily and lead to
68 + # failure. This affects all current puma versions in combination
69 + # with the latest ruby versions, so we add this new version anyway
70 + # while allowing these tests to fail.
71 + # https://github.com/puma/puma/pull/1345
72 + rm -f test/test_puma_server_ssl.rb || die
73 +
74 + # Use correct ruby version
75 + sed -i -e 's/ruby -rrubygems/#{Gem.ruby} -rrubygems/' test/shell/t{1,3}.rb || die
76 +}
77 +
78 +each_ruby_prepare() {
79 + sed -i -e 's:ruby -rubygems:'${RUBY}' -rubygems:' \
80 + -e 's/localhost/127.0.0.1/' test/shell/* || die
81 + sed -i -e '1ilog_requests' test/shell/t{1,2}_conf.rb || die
82 +}
83 +
84 +each_ruby_configure() {
85 + ${RUBY} -Cext/puma_http11 extconf.rb || die
86 +}
87 +
88 +each_ruby_compile() {
89 + emake V=1 -Cext/puma_http11
90 + cp ext/puma_http11/puma_http11$(get_modname) lib/puma/ || die
91 +}
92 +
93 +each_ruby_test() {
94 + einfo "Running test suite"
95 + ${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
96 +
97 + einfo "Running integration tests"
98 + pushd test/shell
99 + #sh run.sh || die
100 + popd
101 +}