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, 05 Feb 2022 07:55:06
Message-Id: 1644047688.0635b05a6ec76646f76a5e9e60b745acb288d910.graaff@gentoo
1 commit: 0635b05a6ec76646f76a5e9e60b745acb288d910
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 5 07:54:30 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 5 07:54:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0635b05a
7
8 Revert "www-servers/puma: cleanup"
9
10 This reverts commit a065a9820172f4dd279d5f48e10f04f408b8ead2.
11
12 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
13
14 www-servers/puma/Manifest | 2 ++
15 www-servers/puma/puma-5.3.2-r1.ebuild | 59 +++++++++++++++++++++++++++++++++++
16 www-servers/puma/puma-5.4.0.ebuild | 59 +++++++++++++++++++++++++++++++++++
17 3 files changed, 120 insertions(+)
18
19 diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest
20 index ed102c703ee9..adfdd764f6d9 100644
21 --- a/www-servers/puma/Manifest
22 +++ b/www-servers/puma/Manifest
23 @@ -1,2 +1,4 @@
24 +DIST puma-5.3.2.tar.gz 297673 BLAKE2B e3bfa38347526063587db966d20ea68f32cd88616d89b5f2d9152228d5d420b50c2918e24304c1bc8119af5790a2464f0a055ab92862a56262013ddbba006a1f SHA512 32e80b413184d371d451a35985a371a7655df0f7e81624f2a05e3cf65c2e1b035275a8e25ab03d13c9c1f921ec30cdeb3659e1201baae5940dcb3edcb525ff25
25 +DIST puma-5.4.0.tar.gz 298525 BLAKE2B d93231582cd83519c258093fd9ac5e2b06398133e82e2d350103e7438a4ed1fd9b36f627739dbbad86e839211850c5387be57d5d114835e7e4d99940e842b128 SHA512 032a507d852c555393f401d4e72c358cf8c49d1c93ff7a559969f3d1f84c0b49180cbcee975bb6fea621d034a00874268ff05ae76f91775cc24089de0b4560da
26 DIST puma-5.5.2.tar.gz 302778 BLAKE2B 5911accde19aaed34cffecc71eb2db02f0d9f9ea7b57437ff7cf7580b0b51245ed68b254778cbdc11bea624b9f192aef0bfa7e24acde73b77290d780ab177933 SHA512 9887b465c6ed2a8e551b15fd161f19a9d2baa96b8eb8e247f13c98df9d34f6097bce81a52e8f88d69088d9b5f8477137af9110b7546afabc53767f337ad00ef8
27 DIST puma-5.6.1.tar.gz 308896 BLAKE2B 0fa28fee64da577965c16fa564275760fbb3ebd04ed3eff583e53733b2f674ec6d29c20d2734bd16cb83aca8747ff5049e86d692bb5dd70fa5112a7a2c64ebf4 SHA512 262f17343668f5bf68842664eb6445208755385428151354fdb4039411e339c5c686f684bdb32c974516add3ca86af5693d1e169cf2bf74a8614be3cc06eccb0
28
29 diff --git a/www-servers/puma/puma-5.3.2-r1.ebuild b/www-servers/puma/puma-5.3.2-r1.ebuild
30 new file mode 100644
31 index 000000000000..aa275d9b6699
32 --- /dev/null
33 +++ b/www-servers/puma/puma-5.3.2-r1.ebuild
34 @@ -0,0 +1,59 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +USE_RUBY="ruby25 ruby26 ruby27 ruby30"
41 +
42 +RUBY_FAKEGEM_GEMSPEC="puma.gemspec"
43 +
44 +RUBY_FAKEGEM_EXTENSIONS=(ext/puma_http11/extconf.rb)
45 +RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/puma
46 +
47 +inherit multilib ruby-fakegem
48 +
49 +DESCRIPTION="a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack"
50 +HOMEPAGE="https://puma.io/"
51 +SRC_URI="https://github.com/puma/puma/archive/v${PV}.tar.gz -> ${P}.tar.gz"
52 +
53 +LICENSE="BSD"
54 +SLOT="3"
55 +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc x86"
56 +IUSE=""
57 +
58 +DEPEND+=" dev-libs/openssl:0 test? ( net-misc/curl )"
59 +RDEPEND+=" dev-libs/openssl:0="
60 +
61 +ruby_add_bdepend "virtual/ruby-ssl
62 + test? ( dev-ruby/rack >=dev-ruby/minitest-5.9:5 >=dev-ruby/test-unit-3.0:2 )"
63 +
64 +ruby_add_rdepend "dev-ruby/nio4r:2"
65 +
66 +all_ruby_prepare() {
67 + sed -e '/bundler/ s:^:#:' \
68 + -e '/prove/ s:^:#:' \
69 + -e '/stub_const/ s:^:#:' \
70 + -i test/helper.rb || die
71 +
72 + # Avoid tests failing inconsistently
73 + sed -i -e '/test_bad_client/askip "inconsistent results"' test/test_web_server.rb || die
74 +
75 + # Avoid launcher tests since they make assumptions about bundler use
76 + rm -f test/test_launcher.rb test/test_worker_gem_independence.rb || die
77 +
78 + # Skip integration tests since they make a lot of assumptions about
79 + # the environment
80 + rm -f test/test_integration_* test/test_preserve_bundler_env.rb|| die
81 +
82 + # Avoid test that uses unpackaged stub_const
83 + sed -i -e '/test_shutdown_with_grace/,/^ end/ s:^:#:' test/test_thread_pool.rb || die
84 +
85 + sed -e 's/git ls-files --/find/' \
86 + -e 's:_relative ": "./:' \
87 + -i ${RUBY_FAKEGEM_GEMSPEC} || die
88 +}
89 +
90 +each_ruby_test() {
91 + einfo "Running test suite"
92 + ${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
93 +}
94
95 diff --git a/www-servers/puma/puma-5.4.0.ebuild b/www-servers/puma/puma-5.4.0.ebuild
96 new file mode 100644
97 index 000000000000..055f299b4a41
98 --- /dev/null
99 +++ b/www-servers/puma/puma-5.4.0.ebuild
100 @@ -0,0 +1,59 @@
101 +# Copyright 1999-2021 Gentoo Authors
102 +# Distributed under the terms of the GNU General Public License v2
103 +
104 +EAPI=8
105 +
106 +USE_RUBY="ruby26 ruby27 ruby30"
107 +
108 +RUBY_FAKEGEM_GEMSPEC="puma.gemspec"
109 +
110 +RUBY_FAKEGEM_EXTENSIONS=(ext/puma_http11/extconf.rb)
111 +RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/puma
112 +
113 +inherit multilib ruby-fakegem
114 +
115 +DESCRIPTION="a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack"
116 +HOMEPAGE="https://puma.io/"
117 +SRC_URI="https://github.com/puma/puma/archive/v${PV}.tar.gz -> ${P}.tar.gz"
118 +
119 +LICENSE="BSD"
120 +SLOT="3"
121 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
122 +IUSE=""
123 +
124 +DEPEND+=" dev-libs/openssl:0 test? ( net-misc/curl )"
125 +RDEPEND+=" dev-libs/openssl:0="
126 +
127 +ruby_add_bdepend "virtual/ruby-ssl
128 + test? ( dev-ruby/rack >=dev-ruby/minitest-5.9:5 >=dev-ruby/test-unit-3.0:2 )"
129 +
130 +ruby_add_rdepend "dev-ruby/nio4r:2"
131 +
132 +all_ruby_prepare() {
133 + sed -e '/bundler/ s:^:#:' \
134 + -e '/prove/ s:^:#:' \
135 + -e '/stub_const/ s:^:#:' \
136 + -i test/helper.rb || die
137 +
138 + # Avoid tests failing inconsistently
139 + sed -i -e '/test_bad_client/askip "inconsistent results"' test/test_web_server.rb || die
140 +
141 + # Avoid launcher tests since they make assumptions about bundler use
142 + rm -f test/test_launcher.rb test/test_worker_gem_independence.rb || die
143 +
144 + # Skip integration tests since they make a lot of assumptions about
145 + # the environment
146 + rm -f test/test_integration_* test/test_preserve_bundler_env.rb|| die
147 +
148 + # Avoid test that uses unpackaged stub_const
149 + sed -i -e '/test_shutdown_with_grace/,/^ end/ s:^:#:' test/test_thread_pool.rb || die
150 +
151 + sed -e 's/git ls-files --/find/' \
152 + -e 's:_relative ": "./:' \
153 + -i ${RUBY_FAKEGEM_GEMSPEC} || die
154 +}
155 +
156 +each_ruby_test() {
157 + einfo "Running test suite"
158 + ${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
159 +}