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/rspec-core/
Date: Fri, 19 Feb 2016 06:03:57
Message-Id: 1455861825.231052f63f0e9bf0def6ff2a3ea4a00530ddef5a.graaff@gentoo
1 commit: 231052f63f0e9bf0def6ff2a3ea4a00530ddef5a
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 19 05:58:23 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 19 06:03:45 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231052f6
7
8 dev-ruby/rspec-core: cleanup
9
10 Package-Manager: portage-2.2.26
11
12 dev-ruby/rspec-core/Manifest | 3 -
13 dev-ruby/rspec-core/rspec-core-3.2.3.ebuild | 95 --------------------------
14 dev-ruby/rspec-core/rspec-core-3.3.1.ebuild | 99 ---------------------------
15 dev-ruby/rspec-core/rspec-core-3.4.0.ebuild | 101 ----------------------------
16 dev-ruby/rspec-core/rspec-core-3.4.1.ebuild | 101 ----------------------------
17 5 files changed, 399 deletions(-)
18
19 diff --git a/dev-ruby/rspec-core/Manifest b/dev-ruby/rspec-core/Manifest
20 index 3d84cb7..34d0636 100644
21 --- a/dev-ruby/rspec-core/Manifest
22 +++ b/dev-ruby/rspec-core/Manifest
23 @@ -1,9 +1,6 @@
24 DIST rspec-core-2.14.8-git.tgz 195949 SHA256 757febdcc4465b62fb41572e1fb7e0deb86f903127cb2941ea65d2c1d4ac29db SHA512 2be487f0a820cb959771b0c2a725aa7a43cd80a76f85ed42f3341420cefa4ba6413b5dbd86e8fba9f5515afef3e895e0f1f2f8239d50f0b764f037d5f0791095 WHIRLPOOL 5b2422d7f1d087caf654ea04d81f269ae90be63eb73135d34691839c27e6dfa152aac425f64a860b3af50ef0bf513ac7f4a68c979c254083f187e57a96c20fe3
25 DIST rspec-core-2.99.2-git.tgz 212935 SHA256 75794e3f94f3323b1212b93e827d37d6ab2813dea2f5f927929b40e9ee170c43 SHA512 e13bc3384fd85c367481a8651c14be4a412cba5f58e12a8f4ab14b5d2768a7b92191b81e000e7dbf6a28275b41044d8b3eb70a04e4b30b5bf88db98cbec4cc44 WHIRLPOOL 5584be2da2310688155c4fe600a4a36f68434440ebc00b063e9fcdcb3188138831a210f482ac86a469984fcf9838d795511ea02433020ecc6bc1d6aacc8c72bd
26 DIST rspec-core-3.2.3-git.tgz 276647 SHA256 7122fe372cdf0d4ff60aef42768fc9cc0350bd1943f5c1fa6189153829519ab2 SHA512 a5eb294c4770275662205b4edde2426c7d7ab7f9fb3cea6fc1171071b941a94b6d6386348fd83ba9e76a35512ea56be0b657ba2d8e210fe73c8564e76ebea7ae WHIRLPOOL 895d5fab418ddc5adc9a33078499f59b2865b636516110f0042bd08b4d9ecdb304f135655c0b05102f47725b94da831c986889b8a76eed3e8aa2c693f2d29d63
27 -DIST rspec-core-3.3.1-git.tgz 332355 SHA256 9dc839186e72fe5d4b4f15500bc2a976d08dc4af859be2b69778b1c4f84d321b SHA512 cddbfc1dae98de2db31a5f9c5a60cf1cdd4995f35bcd1bea525f18fc8b3649d7c8a2e23169873874be22b4f75b14b89d086e2372ed1dd93a157ae03c5989a760 WHIRLPOOL a3e5fa2264b40313c1fcf1890087f218a5a9f442f82528f4422a315858a036ff36cdc671dbb7e1f4d937385e6568cb7950c43ab7249c78b834ba07e5dae671d6
28 DIST rspec-core-3.3.2-git.tgz 332730 SHA256 aef9a2867a435aa7be57826c850e88e593232077dc42f12bfed89a92c7704d26 SHA512 6cadfa43d63df8d24105d88d6e8b22a495a30f04b289c71c8887ea3fead9ec8f071a6c734a140b1e4910f25094fd36c7c37b54a0724e734233ca584202f0cf32 WHIRLPOOL 1e385223ea8c9b32bfc6ecc93146ccad793441bae3426f6cb4acc07d7a1f2bc6e20be11597fcd27f3c6bb207482213e2eaf214835041df631d06b9bc524e5b70
29 -DIST rspec-core-3.4.0-git.tgz 354166 SHA256 852bf29d13c30e921126b57233b80a56495465fe80f3a5fb036721f20a74a668 SHA512 9961b99a2209268528a3cee741f682f37300d0bd88c8364ee400073a3274e7465d767f01207db12789debb73a4bcb5dc6eb06039b0364cdf9fd72803fa917bc5 WHIRLPOOL 9d6176434c72a2eacb8d4ca5ae794f0bd0351507bf51a1b102f4eb12dce02a84cbf2f813c801ac5fc591c533ef4ffe995b9e8df374de4ecffe3cb8367e1c1b59
30 -DIST rspec-core-3.4.1-git.tgz 354375 SHA256 ed75c25573e155b5fd9f57102785294b2f9b4d3796b96279ba977acbb5bf9eb2 SHA512 e472969b7d1571be39438190029690acdcd760b61f7067e8bf66b29324f2eeb7f870f382dacc79738f0aeea1c66bc971b7a8b93ae6a2c3bc61ac539ce4b452a3 WHIRLPOOL 53243e1374d9cc50f950d17e7de30d9dc3f0c3ac0dea16f41c3b36f3160e95d1ab6ed720e83dc508b4925c3340ed4876918fbcfafe937f9b7753cc8888a266a2
31 DIST rspec-core-3.4.2-git.tgz 354859 SHA256 bcb93520f5cb2bc0f2f66c09579970c524e7404575cefc5aefcd3da594d775b6 SHA512 33fc3336a01b86f9c22e5e9fe9f78f2b4f66a309fd0bff90d565484912d2ae6525dc80b0e6e2c6d2b5d698c2848e0b025cc4f065b533b9936ba6e7dfb03bae88 WHIRLPOOL 451f5b70bdd9db53fc7fabc84dacff6cd3cbda3422ca475a1090e5bcd2ec42249e91953c0d648c5a4d2ab12af85e778b392a1e75717526d89577ecffe88f0cfa
32 DIST rspec-core-3.4.3-git.tgz 355961 SHA256 9dea290b7a1e30e483d61451e968554591a0ce385b66bc75d27d0f9eed7455e3 SHA512 26973fb7de7e2055cfafece0b3d68c2dab3498f6e3705bc2a4d41633b18783d142c7c9bee82fbec0d577b7d97d85c747c8cbdeb0cf8d2b5c017009fa087f2ec2 WHIRLPOOL f52dfaa2dc83efb49f66693e7b9eff20d5237d0593985ed88283247d50e2fa24d6f3739d9c01c0a4fa298b9da1072a01b055b0d4618eadeb8de9e7403cccb7be
33
34 diff --git a/dev-ruby/rspec-core/rspec-core-3.2.3.ebuild b/dev-ruby/rspec-core/rspec-core-3.2.3.ebuild
35 deleted file mode 100644
36 index e863743..0000000
37 --- a/dev-ruby/rspec-core/rspec-core-3.2.3.ebuild
38 +++ /dev/null
39 @@ -1,95 +0,0 @@
40 -# Copyright 1999-2015 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -# $Id$
43 -
44 -EAPI=5
45 -USE_RUBY="ruby19 ruby20 ruby21 ruby22"
46 -
47 -RUBY_FAKEGEM_TASK_TEST="none"
48 -RUBY_FAKEGEM_TASK_DOC="none"
49 -
50 -RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
51 -
52 -# Also install this custom path since internal paths depend on it.
53 -RUBY_FAKEGEM_EXTRAINSTALL="exe"
54 -
55 -RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
56 -
57 -inherit ruby-fakegem
58 -
59 -DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
60 -HOMEPAGE="https://github.com/rspec/rspec-core"
61 -SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
62 -
63 -LICENSE="MIT"
64 -SLOT="3"
65 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
66 -IUSE="highlight"
67 -
68 -SUBVERSION="$(get_version_component_range 1-2)"
69 -
70 -ruby_add_rdepend "
71 - =dev-ruby/rspec-support-${SUBVERSION}*
72 - !!<dev-ruby/rspec-core-2.14.8-r4
73 - highlight? ( >=dev-ruby/coderay-1.0.9 )
74 -"
75 -
76 -ruby_add_bdepend "test? (
77 - >=dev-ruby/nokogiri-1.5.2
78 - >=dev-ruby/coderay-1.0.9
79 - dev-ruby/syntax
80 - >=dev-ruby/zentest-4.6.2
81 - >=dev-ruby/rspec-expectations-3.0.0:3
82 - >=dev-ruby/rspec-mocks-2.99.0:3
83 - )"
84 -
85 -# Skip yard for ruby21 for now since we don't support ruby21 eselected
86 -# yet and we can't bootstrap otherwise.
87 -USE_RUBY=${USE_RUBY/ruby21 ruby22/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
88 -
89 -all_ruby_prepare() {
90 - # Don't set up bundler: it doesn't understand our setup.
91 - sed -i -e '/[Bb]undler/d' Rakefile || die
92 -
93 - # Avoid dependency on cucumber since we can't run the features anyway.
94 - sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
95 -
96 - # Duplicate exe also in bin. We can't change it since internal stuff
97 - # also depends on this and fixing that is going to be fragile. This
98 - # way we can at least install proper bin scripts.
99 - cp -R exe bin || die
100 -
101 - # Avoid unneeded dependency on git.
102 - sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
103 -
104 - # Avoid aruba dependency so that we don't end up in dependency hell.
105 - sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
106 - rm spec/integration/{filtering,order}_spec.rb spec/support/aruba_support.rb || die
107 -}
108 -
109 -each_ruby_prepare() {
110 - sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
111 -
112 - case ${RUBY} in
113 - *ruby22)
114 - # The rubygems version bundled with ruby 2.2 causes warnings.
115 - sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
116 - ;;
117 - esac
118 -}
119 -
120 -all_ruby_compile() {
121 - if use doc ; then
122 - yardoc || die
123 - fi
124 -}
125 -
126 -each_ruby_test() {
127 - PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
128 -}
129 -
130 -all_ruby_install() {
131 - all_fakegem_install
132 -
133 - ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
134 -}
135
136 diff --git a/dev-ruby/rspec-core/rspec-core-3.3.1.ebuild b/dev-ruby/rspec-core/rspec-core-3.3.1.ebuild
137 deleted file mode 100644
138 index 4a99fdc..0000000
139 --- a/dev-ruby/rspec-core/rspec-core-3.3.1.ebuild
140 +++ /dev/null
141 @@ -1,99 +0,0 @@
142 -# Copyright 1999-2015 Gentoo Foundation
143 -# Distributed under the terms of the GNU General Public License v2
144 -# $Id$
145 -
146 -EAPI=5
147 -USE_RUBY="ruby19 ruby20 ruby21 ruby22"
148 -
149 -RUBY_FAKEGEM_TASK_TEST="none"
150 -RUBY_FAKEGEM_TASK_DOC="none"
151 -
152 -RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
153 -
154 -# Also install this custom path since internal paths depend on it.
155 -RUBY_FAKEGEM_EXTRAINSTALL="exe"
156 -
157 -RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
158 -
159 -inherit ruby-fakegem
160 -
161 -DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
162 -HOMEPAGE="https://github.com/rspec/rspec-core"
163 -SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
164 -
165 -LICENSE="MIT"
166 -SLOT="3"
167 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
168 -IUSE="highlight"
169 -
170 -SUBVERSION="$(get_version_component_range 1-2)"
171 -
172 -ruby_add_rdepend "
173 - =dev-ruby/rspec-support-${SUBVERSION}*
174 - !!<dev-ruby/rspec-core-2.14.8-r4
175 - highlight? ( >=dev-ruby/coderay-1.0.9 )
176 -"
177 -
178 -ruby_add_bdepend "test? (
179 - >=dev-ruby/nokogiri-1.5.2
180 - >=dev-ruby/coderay-1.0.9
181 - dev-ruby/syntax
182 - >=dev-ruby/zentest-4.6.2
183 - >=dev-ruby/rspec-expectations-3.3.0:3
184 - >=dev-ruby/rspec-mocks-2.99.0:3
185 - )"
186 -
187 -# Skip yard for ruby22 for now since we don't support ruby22 eselected
188 -# yet and we can't bootstrap otherwise.
189 -USE_RUBY=${USE_RUBY/ruby22/} ruby_add_bdepend "doc? ( dev-ruby/yard )"
190 -
191 -all_ruby_prepare() {
192 - # Don't set up bundler: it doesn't understand our setup.
193 - sed -i -e '/[Bb]undler/d' Rakefile || die
194 -
195 - # Avoid dependency on cucumber since we can't run the features anyway.
196 - sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
197 -
198 - # Duplicate exe also in bin. We can't change it since internal stuff
199 - # also depends on this and fixing that is going to be fragile. This
200 - # way we can at least install proper bin scripts.
201 - cp -R exe bin || die
202 -
203 - # Avoid unneeded dependency on git.
204 - sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die
205 -
206 - # Avoid aruba dependency so that we don't end up in dependency hell.
207 - sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
208 - rm spec/integration/{filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
209 -
210 - # Avoid a spec failing due to path issues
211 - sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
212 - spec/rspec/core/configuration_spec.rb || die
213 -}
214 -
215 -each_ruby_prepare() {
216 - sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
217 -
218 - # case ${RUBY} in
219 - # *ruby22)
220 - # # The rubygems version bundled with ruby 2.2 causes warnings.
221 - # sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
222 - # ;;
223 - # esac
224 -}
225 -
226 -all_ruby_compile() {
227 - if use doc ; then
228 - yardoc || die
229 - fi
230 -}
231 -
232 -each_ruby_test() {
233 - PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
234 -}
235 -
236 -all_ruby_install() {
237 - all_fakegem_install
238 -
239 - ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
240 -}
241
242 diff --git a/dev-ruby/rspec-core/rspec-core-3.4.0.ebuild b/dev-ruby/rspec-core/rspec-core-3.4.0.ebuild
243 deleted file mode 100644
244 index 182c56c..0000000
245 --- a/dev-ruby/rspec-core/rspec-core-3.4.0.ebuild
246 +++ /dev/null
247 @@ -1,101 +0,0 @@
248 -# Copyright 1999-2015 Gentoo Foundation
249 -# Distributed under the terms of the GNU General Public License v2
250 -# $Id$
251 -
252 -EAPI=5
253 -USE_RUBY="ruby20 ruby21 ruby22"
254 -
255 -RUBY_FAKEGEM_TASK_TEST="none"
256 -RUBY_FAKEGEM_TASK_DOC="none"
257 -
258 -RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
259 -
260 -# Also install this custom path since internal paths depend on it.
261 -RUBY_FAKEGEM_EXTRAINSTALL="exe"
262 -
263 -RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
264 -
265 -inherit ruby-fakegem
266 -
267 -DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
268 -HOMEPAGE="https://github.com/rspec/rspec-core"
269 -SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
270 -
271 -LICENSE="MIT"
272 -SLOT="3"
273 -KEYWORDS="~amd64 ~arm ~hppa ~ppc64"
274 -IUSE="highlight"
275 -
276 -SUBVERSION="$(get_version_component_range 1-2)"
277 -
278 -ruby_add_rdepend "
279 - =dev-ruby/rspec-support-${SUBVERSION}*
280 - !!<dev-ruby/rspec-core-2.14.8-r4
281 - highlight? ( >=dev-ruby/coderay-1.0.9 )
282 -"
283 -
284 -ruby_add_bdepend "test? (
285 - >=dev-ruby/nokogiri-1.5.2
286 - >=dev-ruby/coderay-1.0.9
287 - dev-ruby/syntax
288 - >=dev-ruby/thread_order-1.1.0
289 - >=dev-ruby/zentest-4.6.2
290 - >=dev-ruby/rspec-expectations-3.3.0:3
291 - >=dev-ruby/rspec-mocks-2.99.0:3
292 - )"
293 -
294 -all_ruby_prepare() {
295 - # Don't set up bundler: it doesn't understand our setup.
296 - sed -i -e '/[Bb]undler/d' Rakefile || die
297 -
298 - # Avoid dependency on cucumber since we can't run the features anyway.
299 - sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
300 -
301 - # Duplicate exe also in bin. We can't change it since internal stuff
302 - # also depends on this and fixing that is going to be fragile. This
303 - # way we can at least install proper bin scripts.
304 - cp -R exe bin || die
305 -
306 - # Avoid unneeded dependency on git.
307 - sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die
308 -
309 - # Avoid aruba dependency so that we don't end up in dependency hell.
310 - sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
311 - rm spec/integration/{failed_line_detection,filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
312 -
313 - # Avoid a spec failing due to path issues
314 - sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
315 - spec/rspec/core/configuration_spec.rb || die
316 -
317 - # Avoid specs for older coderay version which is no longer packaged
318 - sed -i -e '/highlights the syntax of the provided lines/ s/do/,skip: true do/' \
319 - -e '/dynamically adjusts to changing color config/ s/do/,skip: true do/' \
320 - spec/rspec/core/source/syntax_highlighter_spec.rb
321 -}
322 -
323 -each_ruby_prepare() {
324 - sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
325 -
326 - # case ${RUBY} in
327 - # *ruby22)
328 - # # The rubygems version bundled with ruby 2.2 causes warnings.
329 - # sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
330 - # ;;
331 - # esac
332 -}
333 -
334 -all_ruby_compile() {
335 - if use doc ; then
336 - yardoc || die
337 - fi
338 -}
339 -
340 -each_ruby_test() {
341 - PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
342 -}
343 -
344 -all_ruby_install() {
345 - all_fakegem_install
346 -
347 - ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
348 -}
349
350 diff --git a/dev-ruby/rspec-core/rspec-core-3.4.1.ebuild b/dev-ruby/rspec-core/rspec-core-3.4.1.ebuild
351 deleted file mode 100644
352 index 182c56c..0000000
353 --- a/dev-ruby/rspec-core/rspec-core-3.4.1.ebuild
354 +++ /dev/null
355 @@ -1,101 +0,0 @@
356 -# Copyright 1999-2015 Gentoo Foundation
357 -# Distributed under the terms of the GNU General Public License v2
358 -# $Id$
359 -
360 -EAPI=5
361 -USE_RUBY="ruby20 ruby21 ruby22"
362 -
363 -RUBY_FAKEGEM_TASK_TEST="none"
364 -RUBY_FAKEGEM_TASK_DOC="none"
365 -
366 -RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
367 -
368 -# Also install this custom path since internal paths depend on it.
369 -RUBY_FAKEGEM_EXTRAINSTALL="exe"
370 -
371 -RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
372 -
373 -inherit ruby-fakegem
374 -
375 -DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
376 -HOMEPAGE="https://github.com/rspec/rspec-core"
377 -SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
378 -
379 -LICENSE="MIT"
380 -SLOT="3"
381 -KEYWORDS="~amd64 ~arm ~hppa ~ppc64"
382 -IUSE="highlight"
383 -
384 -SUBVERSION="$(get_version_component_range 1-2)"
385 -
386 -ruby_add_rdepend "
387 - =dev-ruby/rspec-support-${SUBVERSION}*
388 - !!<dev-ruby/rspec-core-2.14.8-r4
389 - highlight? ( >=dev-ruby/coderay-1.0.9 )
390 -"
391 -
392 -ruby_add_bdepend "test? (
393 - >=dev-ruby/nokogiri-1.5.2
394 - >=dev-ruby/coderay-1.0.9
395 - dev-ruby/syntax
396 - >=dev-ruby/thread_order-1.1.0
397 - >=dev-ruby/zentest-4.6.2
398 - >=dev-ruby/rspec-expectations-3.3.0:3
399 - >=dev-ruby/rspec-mocks-2.99.0:3
400 - )"
401 -
402 -all_ruby_prepare() {
403 - # Don't set up bundler: it doesn't understand our setup.
404 - sed -i -e '/[Bb]undler/d' Rakefile || die
405 -
406 - # Avoid dependency on cucumber since we can't run the features anyway.
407 - sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
408 -
409 - # Duplicate exe also in bin. We can't change it since internal stuff
410 - # also depends on this and fixing that is going to be fragile. This
411 - # way we can at least install proper bin scripts.
412 - cp -R exe bin || die
413 -
414 - # Avoid unneeded dependency on git.
415 - sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die
416 -
417 - # Avoid aruba dependency so that we don't end up in dependency hell.
418 - sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
419 - rm spec/integration/{failed_line_detection,filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
420 -
421 - # Avoid a spec failing due to path issues
422 - sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
423 - spec/rspec/core/configuration_spec.rb || die
424 -
425 - # Avoid specs for older coderay version which is no longer packaged
426 - sed -i -e '/highlights the syntax of the provided lines/ s/do/,skip: true do/' \
427 - -e '/dynamically adjusts to changing color config/ s/do/,skip: true do/' \
428 - spec/rspec/core/source/syntax_highlighter_spec.rb
429 -}
430 -
431 -each_ruby_prepare() {
432 - sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
433 -
434 - # case ${RUBY} in
435 - # *ruby22)
436 - # # The rubygems version bundled with ruby 2.2 causes warnings.
437 - # sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
438 - # ;;
439 - # esac
440 -}
441 -
442 -all_ruby_compile() {
443 - if use doc ; then
444 - yardoc || die
445 - fi
446 -}
447 -
448 -each_ruby_test() {
449 - PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
450 -}
451 -
452 -all_ruby_install() {
453 - all_fakegem_install
454 -
455 - ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
456 -}