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: dev-ruby/faraday/
Date: Sun, 27 Aug 2017 06:42:55
Message-Id: 1503816162.9aa2f64aa152b7be045e3362bf14cedec87e8608.graaff@gentoo
1 commit: 9aa2f64aa152b7be045e3362bf14cedec87e8608
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 27 06:41:19 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 27 06:42:42 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aa2f64a
7
8 Revert "dev-ruby/faraday: cleanup"
9
10 This reverts commit d244aad5b2f0ae1a52aa89654e99f664b22aee3b.
11
12 Some packages depend on <dev-ruby/faraday-0.10.
13
14 dev-ruby/faraday/Manifest | 1 +
15 dev-ruby/faraday/faraday-0.9.2-r1.ebuild | 67 ++++++++++++++++++++++++++++++++
16 dev-ruby/faraday/faraday-0.9.2-r2.ebuild | 67 ++++++++++++++++++++++++++++++++
17 3 files changed, 135 insertions(+)
18
19 diff --git a/dev-ruby/faraday/Manifest b/dev-ruby/faraday/Manifest
20 index 08052eca72b..ea5281b61d0 100644
21 --- a/dev-ruby/faraday/Manifest
22 +++ b/dev-ruby/faraday/Manifest
23 @@ -1,2 +1,3 @@
24 DIST faraday-0.11.0.tar.gz 59736 SHA256 e19d2fa61f0446170a55ccc9a965b73c652c88ceb6fd0404d9b135012741203b SHA512 d7e66f7d634b5c517dd688e874557839dbd7f720283dbeb27fd118c8cbcc596898545d62548d3c7c94d7cf49bdcda0d2fa705a1d20fa4d7ce238b38688d5cc62 WHIRLPOOL 5ca26dece6a473180345a104eca1091a7cfb1c00452f86dc74b5dbd846fb4a1b1024db7247d46c6a85b8b1064ef536e96ecce1d7af13b0798bd092042d50b095
25 DIST faraday-0.12.2.tar.gz 62809 SHA256 06819ce5118896ed4f600c5ff10d3c57027e32c0da928061b6e5618c0daf0ce8 SHA512 966fc419d529a8bba5caa6d3932ee94f7b248110edc880b532860c24abd70cb50182e40b94b4143e26575c6db7ce046fa71ac0d25010385d7f0c3dda87f39439 WHIRLPOOL da491935173454654ea465312ef114752d627e82c3939da4bee636423c9e5c2486f3b15e6a837573793676b6edaf66bfe85d91d85f56a0eaf2ac66a381ea3e59
26 +DIST faraday-0.9.2.tar.gz 57013 SHA256 ceaf7838acc09c3c4401f74e49f3169cd20922258817f3af817fe7eedcb592f3 SHA512 12c4ead8dca6baf6292291943ea1aab1a534509bf92c6e0a621c1c69e3493480fced68aa529d8678847028f2fc2a7672411df7e4d09e65a5e764c957fed1ee72 WHIRLPOOL d2c4545c7b3320099aa1c5cc85fe1ebbb508749abdcf80de6cdf9e98b642f356e9f0b9174e5191b531406c7df39a326f9e4e5f77d0699c85a915699a92983b6e
27
28 diff --git a/dev-ruby/faraday/faraday-0.9.2-r1.ebuild b/dev-ruby/faraday/faraday-0.9.2-r1.ebuild
29 new file mode 100644
30 index 00000000000..7c79c02e334
31 --- /dev/null
32 +++ b/dev-ruby/faraday/faraday-0.9.2-r1.ebuild
33 @@ -0,0 +1,67 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=5
38 +
39 +USE_RUBY="ruby20 ruby21 ruby22"
40 +
41 +RUBY_FAKEGEM_TASK_TEST="test"
42 +RUBY_FAKEGEM_TASK_DOC=""
43 +
44 +RUBY_FAKEGEM_EXTRADOC="README.md"
45 +
46 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
47 +
48 +inherit ruby-fakegem eutils
49 +
50 +DESCRIPTION="HTTP/REST API client library with pluggable components"
51 +HOMEPAGE="https://github.com/lostisland/faraday"
52 +SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar.gz"
53 +
54 +LICENSE="MIT"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
57 +IUSE=""
58 +
59 +DEPEND+=" test? ( sys-process/lsof )"
60 +
61 +ruby_add_rdepend ">=dev-ruby/multipart-post-1.2.0 <dev-ruby/multipart-post-3"
62 +ruby_add_bdepend "test? (
63 + >=dev-ruby/test-unit-2.4
64 + dev-ruby/httpclient
65 + dev-ruby/rack-test
66 + dev-ruby/sinatra
67 + dev-ruby/net-http-persistent
68 + dev-ruby/patron
69 + )"
70 +
71 +all_ruby_prepare() {
72 + # Remove bundler support.
73 + rm Gemfile || die
74 + sed -i -e '/[Bb]undler/d' Rakefile test/helper.rb || die
75 + sed -i -e '/bundler/,/^fi/ s:^:#:' script/test || die
76 +
77 + # Remove simplecov and coveralls support, not needed to run tests.
78 + sed -i -e '/simplecov/,/^ end/ s:^:#:' 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 +}
101
102 diff --git a/dev-ruby/faraday/faraday-0.9.2-r2.ebuild b/dev-ruby/faraday/faraday-0.9.2-r2.ebuild
103 new file mode 100644
104 index 00000000000..673d327b9a7
105 --- /dev/null
106 +++ b/dev-ruby/faraday/faraday-0.9.2-r2.ebuild
107 @@ -0,0 +1,67 @@
108 +# Copyright 1999-2016 Gentoo Foundation
109 +# Distributed under the terms of the GNU General Public License v2
110 +
111 +EAPI=5
112 +
113 +USE_RUBY="ruby20 ruby21 ruby22 ruby23"
114 +
115 +RUBY_FAKEGEM_TASK_TEST="test"
116 +RUBY_FAKEGEM_TASK_DOC=""
117 +
118 +RUBY_FAKEGEM_EXTRADOC="README.md"
119 +
120 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
121 +
122 +inherit ruby-fakegem eutils
123 +
124 +DESCRIPTION="HTTP/REST API client library with pluggable components"
125 +HOMEPAGE="https://github.com/lostisland/faraday"
126 +SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar.gz"
127 +
128 +LICENSE="MIT"
129 +SLOT="0"
130 +KEYWORDS="~amd64 ~arm ~ppc64"
131 +IUSE=""
132 +
133 +DEPEND+=" test? ( sys-process/lsof )"
134 +
135 +ruby_add_rdepend ">=dev-ruby/multipart-post-1.2.0 <dev-ruby/multipart-post-3"
136 +ruby_add_bdepend "test? (
137 + >=dev-ruby/test-unit-2.4
138 + dev-ruby/httpclient
139 + dev-ruby/rack-test
140 + dev-ruby/sinatra
141 + dev-ruby/net-http-persistent
142 + dev-ruby/patron
143 + )"
144 +
145 +all_ruby_prepare() {
146 + # Remove bundler support.
147 + rm Gemfile || die
148 + sed -i -e '/[Bb]undler/d' Rakefile test/helper.rb || die
149 + sed -i -e '/bundler/,/^fi/ s:^:#:' script/test || die
150 +
151 + # Remove simplecov and coveralls support, not needed to run tests.
152 + sed -i -e '/simplecov/,/^ end/ s:^:#:' test/helper.rb || die
153 +
154 + # Remove tests for adapters that are not packaged for Gentoo.
155 + rm test/adapters/em_http_test.rb test/adapters/em_synchrony_test.rb test/adapters/excon_test.rb test/adapters/typhoeus_test.rb || die
156 +
157 + # The proxy server is already killed, may be OS X vs Linux issue.
158 + sed -i -e '138 s/^/#/' script/test || die
159 +
160 + sed -i -e '/git ls-files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
161 +}
162 +
163 +each_ruby_prepare() {
164 + # Make sure the test scripts use the right ruby interpreter
165 + sed -i -e 's:ruby:'${RUBY}':' script/* || die
166 +}
167 +
168 +each_ruby_test() {
169 + each_fakegem_test
170 +
171 + # Sleep some time to allow the sinatra test server to die
172 + einfo "Waiting for test server to stop"
173 + sleep 10
174 +}