1 |
commit: 6bf612de55e68b5f2751a4ea77ce5286335c8020 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 5 07:40:32 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 5 07:50:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf612de |
7 |
|
8 |
www-servers/puma: add 5.5.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
www-servers/puma/Manifest | 1 + |
14 |
www-servers/puma/puma-5.5.2.ebuild | 59 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest |
18 |
index 2b692219218..229b2f6a1d2 100644 |
19 |
--- a/www-servers/puma/Manifest |
20 |
+++ b/www-servers/puma/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST puma-5.3.2.tar.gz 297673 BLAKE2B e3bfa38347526063587db966d20ea68f32cd88616d89b5f2d9152228d5d420b50c2918e24304c1bc8119af5790a2464f0a055ab92862a56262013ddbba006a1f SHA512 32e80b413184d371d451a35985a371a7655df0f7e81624f2a05e3cf65c2e1b035275a8e25ab03d13c9c1f921ec30cdeb3659e1201baae5940dcb3edcb525ff25 |
23 |
DIST puma-5.4.0.tar.gz 298525 BLAKE2B d93231582cd83519c258093fd9ac5e2b06398133e82e2d350103e7438a4ed1fd9b36f627739dbbad86e839211850c5387be57d5d114835e7e4d99940e842b128 SHA512 032a507d852c555393f401d4e72c358cf8c49d1c93ff7a559969f3d1f84c0b49180cbcee975bb6fea621d034a00874268ff05ae76f91775cc24089de0b4560da |
24 |
+DIST puma-5.5.2.tar.gz 302778 BLAKE2B 5911accde19aaed34cffecc71eb2db02f0d9f9ea7b57437ff7cf7580b0b51245ed68b254778cbdc11bea624b9f192aef0bfa7e24acde73b77290d780ab177933 SHA512 9887b465c6ed2a8e551b15fd161f19a9d2baa96b8eb8e247f13c98df9d34f6097bce81a52e8f88d69088d9b5f8477137af9110b7546afabc53767f337ad00ef8 |
25 |
|
26 |
diff --git a/www-servers/puma/puma-5.5.2.ebuild b/www-servers/puma/puma-5.5.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5ce21239fb6 |
29 |
--- /dev/null |
30 |
+++ b/www-servers/puma/puma-5.5.2.ebuild |
31 |
@@ -0,0 +1,59 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+USE_RUBY="ruby26 ruby27 ruby30" |
38 |
+ |
39 |
+RUBY_FAKEGEM_GEMSPEC="puma.gemspec" |
40 |
+ |
41 |
+RUBY_FAKEGEM_EXTENSIONS=(ext/puma_http11/extconf.rb) |
42 |
+RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/puma |
43 |
+ |
44 |
+inherit multilib ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack" |
47 |
+HOMEPAGE="https://puma.io/" |
48 |
+SRC_URI="https://github.com/puma/puma/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="3" |
52 |
+KEYWORDS="~amd64" |
53 |
+IUSE="" |
54 |
+ |
55 |
+DEPEND+=" dev-libs/openssl:0 test? ( net-misc/curl )" |
56 |
+RDEPEND+=" dev-libs/openssl:0=" |
57 |
+ |
58 |
+ruby_add_bdepend "virtual/ruby-ssl |
59 |
+ test? ( dev-ruby/localhost dev-ruby/rack >=dev-ruby/minitest-5.9:5 >=dev-ruby/test-unit-3.0:2 )" |
60 |
+ |
61 |
+ruby_add_rdepend "dev-ruby/nio4r:2" |
62 |
+ |
63 |
+all_ruby_prepare() { |
64 |
+ sed -e '/bundler/ s:^:#:' \ |
65 |
+ -e '/prove/ s:^:#:' \ |
66 |
+ -e '/stub_const/ s:^:#:' \ |
67 |
+ -i test/helper.rb || die |
68 |
+ |
69 |
+ # Avoid tests failing inconsistently |
70 |
+ sed -i -e '/test_bad_client/askip "inconsistent results"' test/test_web_server.rb || die |
71 |
+ |
72 |
+ # Avoid launcher tests since they make assumptions about bundler use |
73 |
+ rm -f test/test_launcher.rb test/test_worker_gem_independence.rb || die |
74 |
+ |
75 |
+ # Skip integration tests since they make a lot of assumptions about |
76 |
+ # the environment |
77 |
+ rm -f test/test_integration_* test/test_preserve_bundler_env.rb|| die |
78 |
+ |
79 |
+ # Avoid test that uses unpackaged stub_const |
80 |
+ sed -i -e '/test_shutdown_with_grace/,/^ end/ s:^:#:' test/test_thread_pool.rb || die |
81 |
+ |
82 |
+ sed -e 's/git ls-files --/find/' \ |
83 |
+ -e 's:_relative ": "./:' \ |
84 |
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die |
85 |
+} |
86 |
+ |
87 |
+each_ruby_test() { |
88 |
+ einfo "Running test suite" |
89 |
+ ${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 |
90 |
+} |