1 |
commit: cb3f8ee22b686954f3ce37515a98f3c86aa0be38 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 3 05:08:25 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 3 05:08:25 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb3f8ee2 |
7 |
|
8 |
dev-ruby/faraday: add 0.12.0.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-ruby/faraday/Manifest | 1 + |
13 |
dev-ruby/faraday/faraday-0.12.0.1.ebuild | 70 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 71 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/faraday/Manifest b/dev-ruby/faraday/Manifest |
17 |
index e6c9b912eaf..dfacbbf577a 100644 |
18 |
--- a/dev-ruby/faraday/Manifest |
19 |
+++ b/dev-ruby/faraday/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST faraday-0.11.0.tar.gz 59736 SHA256 e19d2fa61f0446170a55ccc9a965b73c652c88ceb6fd0404d9b135012741203b SHA512 d7e66f7d634b5c517dd688e874557839dbd7f720283dbeb27fd118c8cbcc596898545d62548d3c7c94d7cf49bdcda0d2fa705a1d20fa4d7ce238b38688d5cc62 WHIRLPOOL 5ca26dece6a473180345a104eca1091a7cfb1c00452f86dc74b5dbd846fb4a1b1024db7247d46c6a85b8b1064ef536e96ecce1d7af13b0798bd092042d50b095 |
22 |
+DIST faraday-0.12.0.1.tar.gz 61582 SHA256 aa5a77d8b6a1bf7993e822674b57f74abba4b6ed2985554aee7d50a9a49c86c9 SHA512 2167c9d45e3376a410d042ddddc77e8117af4354c25fd3b0c84f2dbd8cea664b580a060961ea82d02bd15ec480f774962276aadd65e86a6206161e48ba4050ff WHIRLPOOL ce5ba71d28a829a04774e6d7f87b5c4ede902dc82ffcf4c0d7f1f43b2ae85dce6581b74d1c9f294d25fb6afc51c86069f3bed259e1b7018d88b475579ed553a3 |
23 |
DIST faraday-0.9.2.tar.gz 57013 SHA256 ceaf7838acc09c3c4401f74e49f3169cd20922258817f3af817fe7eedcb592f3 SHA512 12c4ead8dca6baf6292291943ea1aab1a534509bf92c6e0a621c1c69e3493480fced68aa529d8678847028f2fc2a7672411df7e4d09e65a5e764c957fed1ee72 WHIRLPOOL d2c4545c7b3320099aa1c5cc85fe1ebbb508749abdcf80de6cdf9e98b642f356e9f0b9174e5191b531406c7df39a326f9e4e5f77d0699c85a915699a92983b6e |
24 |
|
25 |
diff --git a/dev-ruby/faraday/faraday-0.12.0.1.ebuild b/dev-ruby/faraday/faraday-0.12.0.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2f2f214091f |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/faraday/faraday-0.12.0.1.ebuild |
30 |
@@ -0,0 +1,70 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+USE_RUBY="ruby21 ruby22 ruby23" |
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 ~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 |
+ 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 |
+} |