1 |
commit: 1148a0924c4cf021c3201008fdb1b75ebf27a02b |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 1 04:13:12 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 1 04:13:12 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1148a092 |
7 |
|
8 |
dev-ruby/faraday: add 0.15.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
11 |
|
12 |
dev-ruby/faraday/Manifest | 1 + |
13 |
dev-ruby/faraday/faraday-0.15.2.ebuild | 69 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 70 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/faraday/Manifest b/dev-ruby/faraday/Manifest |
17 |
index e0f0cd7b400..ed7e93f68fb 100644 |
18 |
--- a/dev-ruby/faraday/Manifest |
19 |
+++ b/dev-ruby/faraday/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST faraday-0.12.2.tar.gz 62809 BLAKE2B 4dcd60192df36e1b9766eab3bcbacd729239b0e |
21 |
DIST faraday-0.14.0.tar.gz 65105 BLAKE2B bf5101083bd828e2ea98dcd487c7c082f8b2d2eb4d03ac7ad04e1873666db9e2cec1e6eb9887364874ea5f32d0313019d1eada5e05e25e0415bdd5aa2bcfca97 SHA512 25bba07e76a2a8bf02b0c81c045329e72d5911a2aacae56611db33dc25c89bd48bb1b4de9b20c6edc1514d3ceae8b06fca6076c85580533047c222cb30ef8dc7 |
22 |
DIST faraday-0.15.0.tar.gz 66086 BLAKE2B 5018d8e92b2988b08f4e7a5b0876ca6cd4049c74199ee0356adc48867611fd6d30d884bd3cf3e7703a02c7a6e967f9c47cdc44deb75045b8cee46992977fb834 SHA512 46602d89b1bbf5a41143a9a71fab193642e7c41db39dc1edc0efb99f4a7a924c5a698460a0a4f921f7ce1f73ee8eb12e6d79a08dea02c7142856d0aa1b95b521 |
23 |
DIST faraday-0.15.1.tar.gz 66461 BLAKE2B 476fa62bf9cf138fd52d0d455d7bdd970d77f0337ec1cf42f7833def9ba77a3e94f0bdbbda4136ac03c5a98465081e3093c6a7a6e193cbd7494a284444516679 SHA512 cb4a14b29b88c356063e2d504e0a93b84b33b6488060a313b2eb6ecbf17eaf09c6fb0e0fabd0bb057623438de2a8538034551d62d719a1c90b6158a768f38a1b |
24 |
+DIST faraday-0.15.2.tar.gz 66765 BLAKE2B 8cfe4c6c4f2bb1f0a5fd6a196d339118b09d67b8cdac0c258180ea03c39688af17790c7a15fb4dea4dfd4980c039f987464b2ba7e64c04931e9c31ac670c3618 SHA512 5911df09e770c4ee97f2c6c359a4136c268c598cc2f370a3aa112b5710c6c6b7f2704d3094677cd98c44532e3f0d6157df88e1c882d727eec511f4b62a04527c |
25 |
|
26 |
diff --git a/dev-ruby/faraday/faraday-0.15.2.ebuild b/dev-ruby/faraday/faraday-0.15.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..a09a3979042 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/faraday/faraday-0.15.2.ebuild |
31 |
@@ -0,0 +1,69 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+USE_RUBY="ruby23 ruby24 ruby25" |
38 |
+ |
39 |
+RUBY_FAKEGEM_TASK_TEST="test" |
40 |
+RUBY_FAKEGEM_TASK_DOC="" |
41 |
+ |
42 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
43 |
+ |
44 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
45 |
+ |
46 |
+inherit ruby-fakegem eutils |
47 |
+ |
48 |
+DESCRIPTION="HTTP/REST API client library with pluggable components" |
49 |
+HOMEPAGE="https://github.com/lostisland/faraday" |
50 |
+SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="MIT" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
55 |
+IUSE="" |
56 |
+ |
57 |
+DEPEND+=" test? ( sys-process/lsof )" |
58 |
+ |
59 |
+ruby_add_rdepend ">=dev-ruby/multipart-post-1.2.0 <dev-ruby/multipart-post-3" |
60 |
+ruby_add_bdepend "test? ( |
61 |
+ >=dev-ruby/test-unit-2.4 |
62 |
+ dev-ruby/httpclient |
63 |
+ dev-ruby/rack-test |
64 |
+ dev-ruby/sinatra |
65 |
+ dev-ruby/net-http-persistent |
66 |
+ dev-ruby/patron |
67 |
+ )" |
68 |
+ |
69 |
+all_ruby_prepare() { |
70 |
+ # Remove bundler support. |
71 |
+ rm Gemfile || die |
72 |
+ sed -i -e '/[Bb]undler/d' Rakefile test/helper.rb || die |
73 |
+ sed -i -e '/bundler/,/^fi/ s:^:#:' script/test || die |
74 |
+ |
75 |
+ # Remove simplecov and coveralls support, not needed to run tests. |
76 |
+ sed -i -e '/simplecov/,/^end/ s:^:#:' \ |
77 |
+ -e '1igem "rack", "~>1.0"; require "yaml"' \ |
78 |
+ test/helper.rb || die |
79 |
+ |
80 |
+ # Remove tests for adapters that are not packaged for Gentoo. |
81 |
+ rm test/adapters/em_http_test.rb test/adapters/em_synchrony_test.rb test/adapters/excon_test.rb test/adapters/typhoeus_test.rb || die |
82 |
+ |
83 |
+ # The proxy server is already killed, may be OS X vs Linux issue. |
84 |
+ sed -i -e '138 s/^/#/' script/test || die |
85 |
+ |
86 |
+ sed -i -e '/git ls-files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die |
87 |
+} |
88 |
+ |
89 |
+each_ruby_prepare() { |
90 |
+ # Make sure the test scripts use the right ruby interpreter |
91 |
+ sed -i -e 's:ruby:'${RUBY}':' script/* || die |
92 |
+} |
93 |
+ |
94 |
+each_ruby_test() { |
95 |
+ MT_NO_PLUGINS=true each_fakegem_test |
96 |
+ |
97 |
+ # Sleep some time to allow the sinatra test server to die |
98 |
+ einfo "Waiting for test server to stop" |
99 |
+ sleep 10 |
100 |
+} |