1 |
commit: f6d3e25b9e8f943ef457ba98986599bb3e33bdfb |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 24 04:34:53 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 24 04:34:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6d3e25b |
7 |
|
8 |
www-servers/puma: add 5.6.5 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
www-servers/puma/Manifest | 1 + |
13 |
www-servers/puma/puma-5.6.5.ebuild | 59 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest |
17 |
index c7f9154c627a..cb4445c079a0 100644 |
18 |
--- a/www-servers/puma/Manifest |
19 |
+++ b/www-servers/puma/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST puma-5.6.4.tar.gz 310770 BLAKE2B 124190a0ca791352d055f833caec470be3be910ec4dbae5dc6860b79f5c678566f9bada3c6cf1066bc12f040ab891e9ea1a1da3188a9715db7643ef8d8f6b26f SHA512 6321a08e99be1023a1216466914416fbc91f5436ecccec4ea4cbfdc9c4ebc4979f93894ae12b72654269b0410d6a3053230806b860cb912c1abdf89766683a27 |
22 |
+DIST puma-5.6.5.tar.gz 314953 BLAKE2B 2aca92ff3d32995be8f05b626c2299c07f8665f345a6830f3ec3a3a561dbeb41d68d65851cef9c33a56d1d508c9adf2ebb254ca5c1d4dd8fbc896d6d6d2b440a SHA512 0ad41f3372732bdea6594a20b116ec4fc03a8a1d2ff807b3c315e7769aef4e5361ff775975575125002fbfc83315e6906fa8691ce666161bd8beee8c469289d8 |
23 |
|
24 |
diff --git a/www-servers/puma/puma-5.6.5.ebuild b/www-servers/puma/puma-5.6.5.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..58f77576b456 |
27 |
--- /dev/null |
28 |
+++ b/www-servers/puma/puma-5.6.5.ebuild |
29 |
@@ -0,0 +1,59 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+USE_RUBY="ruby27 ruby30 ruby31" |
36 |
+ |
37 |
+RUBY_FAKEGEM_GEMSPEC="puma.gemspec" |
38 |
+ |
39 |
+RUBY_FAKEGEM_EXTENSIONS=(ext/puma_http11/extconf.rb) |
40 |
+RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/puma |
41 |
+ |
42 |
+inherit 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 ~riscv ~sparc ~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/localhost 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 |
+ -e '/stub_const/ s:^:#:' \ |
65 |
+ -i test/helper.rb || die |
66 |
+ |
67 |
+ # Avoid tests failing inconsistently |
68 |
+ sed -i -e '/test_bad_client/askip "inconsistent results"' test/test_web_server.rb || die |
69 |
+ |
70 |
+ # Avoid launcher tests since they make assumptions about bundler use |
71 |
+ rm -f test/test_launcher.rb test/test_worker_gem_independence.rb || die |
72 |
+ |
73 |
+ # Skip integration tests since they make a lot of assumptions about |
74 |
+ # the environment |
75 |
+ rm -f test/test_integration_* test/test_preserve_bundler_env.rb|| die |
76 |
+ |
77 |
+ # Avoid test that uses unpackaged stub_const |
78 |
+ sed -i -e '/test_shutdown_with_grace/,/^ end/ s:^:#:' test/test_thread_pool.rb || die |
79 |
+ |
80 |
+ sed -e 's/git ls-files --/find/' \ |
81 |
+ -e 's:_relative ": "./:' \ |
82 |
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die |
83 |
+} |
84 |
+ |
85 |
+each_ruby_test() { |
86 |
+ einfo "Running test suite" |
87 |
+ ${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 |
88 |
+} |