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: Sun, 29 Sep 2019 09:07:15
Message-Id: 1569748018.6b1c3084043afbdb8aa0ed62b167032170c03686.graaff@gentoo
1 commit: 6b1c3084043afbdb8aa0ed62b167032170c03686
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 29 09:06:12 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 29 09:06:58 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b1c3084
7
8 www-servers/puma: add 4.2.0
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 www-servers/puma/Manifest | 1 +
14 www-servers/puma/puma-4.2.0.ebuild | 73 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 74 insertions(+)
16
17 diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest
18 index fd68e8144bb..913d989a693 100644
19 --- a/www-servers/puma/Manifest
20 +++ b/www-servers/puma/Manifest
21 @@ -1,3 +1,4 @@
22 DIST puma-3.12.1.tar.gz 217543 BLAKE2B 6427c48d17ead515a17fd53ba05baba0ca27b9a3c6b26257e83b21ce099d7ff36666dfe1f1a964d23addd666c5aa83c46e6795ad2e22236de7136e25be689ff5 SHA512 70784ed89403e96d1bdb68f3ee0a5446d98a6f8a1af5ddf369d837e2ae3320118c29c9c33e7a9db7a76b1a80aef66a9b6426140c492721984de50e7cc5fc8300
23 DIST puma-4.0.0.tar.gz 224071 BLAKE2B ff8adaf78a6534739e7a93d50ee4a82548d89698f4f9007e38ae7fd92bf97ce19e515a2f31556884655d30bb2f0d8395262a2c32125543728ba3c5d1f14fdebd SHA512 5393a254e213ef4e9378ce1ffd05b5a0db54a356f1293dabca04cd2281673d28dfa619750b618b415f7673c47f6edbec5c1a7332e962901b17fb434b60156373
24 DIST puma-4.0.1.tar.gz 224363 BLAKE2B 775814eaa6c71deae90bcef850bb8779b6e2b18ed6a694639354678be684d7369f1be7c2234856289f3ac3adf42fbecbbcf243cb44b07c8f99d6a09fef6e09ab SHA512 5d7c8efcf7740484f017311cc074ef4897f600bb21f90836844a6871389206167a4b646c7782e270f68d173e03b5ee16d34ffc2e04f06cebcd31c795d7410885
25 +DIST puma-4.2.0.tar.gz 234724 BLAKE2B 7cf9381261549f545dfbaf4cf60e57b469c50cf25a8e0f72fb6d0ef3b23e1f59ad2e7d3d0aa195e6019525a6d6084511a098e619a13f8be95dc330086463eb49 SHA512 4e314cde1d2ace8f064205c3f36a602847b2314b5987df303dcb1c8e3820cf56d40a8f8cb9883c157de6d2d76cc1062950feef7f901c51a4bfee9ad3255c455b
26
27 diff --git a/www-servers/puma/puma-4.2.0.ebuild b/www-servers/puma/puma-4.2.0.ebuild
28 new file mode 100644
29 index 00000000000..ba941f94f9c
30 --- /dev/null
31 +++ b/www-servers/puma/puma-4.2.0.ebuild
32 @@ -0,0 +1,73 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +USE_RUBY="ruby24 ruby25 ruby26"
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 ~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 + -i test/helper.rb || die
65 +
66 + # Avoid tests failing inconsistently
67 + sed -i -e '/phased_restart_via_pumactl/,/^ end/ s:^:#:' test/test_integration_pumactl.rb || die
68 + sed -i -e '/test_bad_client/askip "inconsistent results"' test/test_web_server.rb || die
69 +
70 + # Loosen timing on flakey test
71 + #sed -i -e '390 s/sleep 2/sleep 4/' test/test_integration.rb || die
72 +
73 + # Use correct ruby version
74 + sed -i -e 's/ruby -rrubygems/#{Gem.ruby} -rrubygems/' test/shell/t{1,3}.rb || die
75 +
76 + # Avoid launcher tests since they make assumptions about bundler use
77 + rm -f test/test_launcher.rb || die
78 +
79 + sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
80 +}
81 +
82 +each_ruby_prepare() {
83 + sed -i -e 's:ruby -rubygems:'${RUBY}' -rubygems:' \
84 + -e 's/localhost/127.0.0.1/' test/shell/* || die
85 + sed -i -e '1ilog_requests' test/shell/t{1,2}_conf.rb || die
86 +}
87 +
88 +each_ruby_configure() {
89 + ${RUBY} -Cext/puma_http11 extconf.rb || die
90 +}
91 +
92 +each_ruby_compile() {
93 + emake V=1 -Cext/puma_http11
94 + cp ext/puma_http11/puma_http11$(get_modname) lib/puma/ || die
95 +}
96 +
97 +each_ruby_test() {
98 + einfo "Running test suite"
99 + ${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
100 +
101 + einfo "Running integration tests"
102 + pushd test/shell
103 + #sh run.sh || die
104 + popd
105 +}