1 |
commit: 2464927cba4264d0288ca3203026a83328840a8b |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 7 06:10:55 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 7 06:10:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2464927c |
7 |
|
8 |
www-servers/puma: add 5.2.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
www-servers/puma/Manifest | 1 + |
14 |
www-servers/puma/puma-5.2.1.ebuild | 65 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 66 insertions(+) |
16 |
|
17 |
diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest |
18 |
index e83ce165bd7..f577bf3f32c 100644 |
19 |
--- a/www-servers/puma/Manifest |
20 |
+++ b/www-servers/puma/Manifest |
21 |
@@ -4,3 +4,4 @@ DIST puma-4.3.7.tar.gz 242780 BLAKE2B 22a81839bde50c61147712b85fceb90af8f46ada0b |
22 |
DIST puma-5.0.4.tar.gz 275942 BLAKE2B 1e607d7ff44ae9b677f6fb41355fe3b660bd880a642e5d3859e177c9327b68c0db729621ef0b3d7a5bb08917249fb7eac688027ceb62f072dabe7ba30086bf79 SHA512 6804ef3bfd4fa3a6695c213e3550244adace91121cb2c45f06fa4c68fb502787c5fdebba41b4754216eab880ca8738ab6f83d0ec9456a86fc6db99a4d4405bd8 |
23 |
DIST puma-5.1.1.tar.gz 284807 BLAKE2B 59ba17129e55e79aa2f8092d60a5643840bd996b7832d421cb72538fc48b0fb302353bedef56cc9b115bdfb15b33b0f453bfbf759b2e9552a9490a8b0cef3090 SHA512 8653c622c21dca2116219702e801d7aa3272f0771fd5c2d5149927edbd504a9838fb0d442bfc5dc523035a94dad25946738a5dda954fdaa74a9a00c85ed9f86e |
24 |
DIST puma-5.2.0.tar.gz 292173 BLAKE2B e09e524ef651a674373e0c5281832fef2e016f58e9623968e11c47135f7bcddb72c6458e74e85f4264c40f49222161d9749c3c29295d5470e47e7b0382e96bab SHA512 3e97f17be3926ff23b03def55dd1c9f015750a5aec74f0fa1551d20c9f386e0ec1a9e676dc0df49ae12129be6768a7d2f7df7a944dd2ec3d44f8243098dc7950 |
25 |
+DIST puma-5.2.1.tar.gz 292945 BLAKE2B 1590dd256953578330ffcb4b2e8745c20ea893f62f251813da5b2473694312a9daeccd7cd5f453dbad441619594210fbdac431a6459deea24e1656c4da0ba01c SHA512 8ec1a351badd68ce6559eb99592e3f4d836ca49406749a6c2cd9162c443eadf3b4cf24ceb6c92e0e27057217f6487ff9923888ff4a1590f8cf9061d06ec16e52 |
26 |
|
27 |
diff --git a/www-servers/puma/puma-5.2.1.ebuild b/www-servers/puma/puma-5.2.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..0d7b9f48b0c |
30 |
--- /dev/null |
31 |
+++ b/www-servers/puma/puma-5.2.1.ebuild |
32 |
@@ -0,0 +1,65 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+USE_RUBY="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 ~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/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_configure() { |
86 |
+ ${RUBY} -Cext/puma_http11 extconf.rb || die |
87 |
+} |
88 |
+ |
89 |
+each_ruby_compile() { |
90 |
+ emake V=1 -Cext/puma_http11 |
91 |
+ cp ext/puma_http11/puma_http11$(get_modname) lib/puma/ || die |
92 |
+} |
93 |
+ |
94 |
+each_ruby_test() { |
95 |
+ einfo "Running test suite" |
96 |
+ ${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 |
97 |
+} |