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, 29 Jan 2016 06:28:38
Message-Id: 1454048908.bf163e2b98b83f435f1d52ad3b4da28d2a08c14b.graaff@gentoo
1 commit: bf163e2b98b83f435f1d52ad3b4da28d2a08c14b
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 29 06:23:53 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 29 06:28:28 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf163e2b
7
8 dev-ruby/rspec-core: add 3.4.2
9
10 Package-Manager: portage-2.2.26
11
12 dev-ruby/rspec-core/Manifest | 1 +
13 dev-ruby/rspec-core/rspec-core-3.4.2.ebuild | 101 ++++++++++++++++++++++++++++
14 2 files changed, 102 insertions(+)
15
16 diff --git a/dev-ruby/rspec-core/Manifest b/dev-ruby/rspec-core/Manifest
17 index 9b2d706..97de9d3 100644
18 --- a/dev-ruby/rspec-core/Manifest
19 +++ b/dev-ruby/rspec-core/Manifest
20 @@ -5,3 +5,4 @@ DIST rspec-core-3.3.1-git.tgz 332355 SHA256 9dc839186e72fe5d4b4f15500bc2a976d08d
21 DIST rspec-core-3.3.2-git.tgz 332730 SHA256 aef9a2867a435aa7be57826c850e88e593232077dc42f12bfed89a92c7704d26 SHA512 6cadfa43d63df8d24105d88d6e8b22a495a30f04b289c71c8887ea3fead9ec8f071a6c734a140b1e4910f25094fd36c7c37b54a0724e734233ca584202f0cf32 WHIRLPOOL 1e385223ea8c9b32bfc6ecc93146ccad793441bae3426f6cb4acc07d7a1f2bc6e20be11597fcd27f3c6bb207482213e2eaf214835041df631d06b9bc524e5b70
22 DIST rspec-core-3.4.0-git.tgz 354166 SHA256 852bf29d13c30e921126b57233b80a56495465fe80f3a5fb036721f20a74a668 SHA512 9961b99a2209268528a3cee741f682f37300d0bd88c8364ee400073a3274e7465d767f01207db12789debb73a4bcb5dc6eb06039b0364cdf9fd72803fa917bc5 WHIRLPOOL 9d6176434c72a2eacb8d4ca5ae794f0bd0351507bf51a1b102f4eb12dce02a84cbf2f813c801ac5fc591c533ef4ffe995b9e8df374de4ecffe3cb8367e1c1b59
23 DIST rspec-core-3.4.1-git.tgz 354375 SHA256 ed75c25573e155b5fd9f57102785294b2f9b4d3796b96279ba977acbb5bf9eb2 SHA512 e472969b7d1571be39438190029690acdcd760b61f7067e8bf66b29324f2eeb7f870f382dacc79738f0aeea1c66bc971b7a8b93ae6a2c3bc61ac539ce4b452a3 WHIRLPOOL 53243e1374d9cc50f950d17e7de30d9dc3f0c3ac0dea16f41c3b36f3160e95d1ab6ed720e83dc508b4925c3340ed4876918fbcfafe937f9b7753cc8888a266a2
24 +DIST rspec-core-3.4.2-git.tgz 354859 SHA256 bcb93520f5cb2bc0f2f66c09579970c524e7404575cefc5aefcd3da594d775b6 SHA512 33fc3336a01b86f9c22e5e9fe9f78f2b4f66a309fd0bff90d565484912d2ae6525dc80b0e6e2c6d2b5d698c2848e0b025cc4f065b533b9936ba6e7dfb03bae88 WHIRLPOOL 451f5b70bdd9db53fc7fabc84dacff6cd3cbda3422ca475a1090e5bcd2ec42249e91953c0d648c5a4d2ab12af85e778b392a1e75717526d89577ecffe88f0cfa
25
26 diff --git a/dev-ruby/rspec-core/rspec-core-3.4.2.ebuild b/dev-ruby/rspec-core/rspec-core-3.4.2.ebuild
27 new file mode 100644
28 index 0000000..6816c7f
29 --- /dev/null
30 +++ b/dev-ruby/rspec-core/rspec-core-3.4.2.ebuild
31 @@ -0,0 +1,101 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +USE_RUBY="ruby20 ruby21 ruby22"
38 +
39 +RUBY_FAKEGEM_TASK_TEST="none"
40 +RUBY_FAKEGEM_TASK_DOC="none"
41 +
42 +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
43 +
44 +# Also install this custom path since internal paths depend on it.
45 +RUBY_FAKEGEM_EXTRAINSTALL="exe"
46 +
47 +RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec"
48 +
49 +inherit ruby-fakegem
50 +
51 +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
52 +HOMEPAGE="https://github.com/rspec/rspec-core"
53 +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
54 +
55 +LICENSE="MIT"
56 +SLOT="3"
57 +KEYWORDS="~amd64 ~arm ~hppa ~ppc64"
58 +IUSE="highlight"
59 +
60 +SUBVERSION="$(get_version_component_range 1-2)"
61 +
62 +ruby_add_rdepend "
63 + =dev-ruby/rspec-support-${SUBVERSION}*
64 + !!<dev-ruby/rspec-core-2.14.8-r4
65 + highlight? ( >=dev-ruby/coderay-1.0.9 )
66 +"
67 +
68 +ruby_add_bdepend "test? (
69 + >=dev-ruby/nokogiri-1.5.2
70 + >=dev-ruby/coderay-1.0.9
71 + dev-ruby/syntax
72 + >=dev-ruby/thread_order-1.1.0
73 + >=dev-ruby/zentest-4.6.2
74 + >=dev-ruby/rspec-expectations-3.3.0:3
75 + >=dev-ruby/rspec-mocks-2.99.0:3
76 + )"
77 +
78 +all_ruby_prepare() {
79 + # Don't set up bundler: it doesn't understand our setup.
80 + sed -i -e '/[Bb]undler/d' Rakefile || die
81 +
82 + # Avoid dependency on cucumber since we can't run the features anyway.
83 + sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die
84 +
85 + # Duplicate exe also in bin. We can't change it since internal stuff
86 + # also depends on this and fixing that is going to be fragile. This
87 + # way we can at least install proper bin scripts.
88 + cp -R exe bin || die
89 +
90 + # Avoid unneeded dependency on git.
91 + sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die
92 +
93 + # Avoid aruba dependency so that we don't end up in dependency hell.
94 + sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die
95 + rm spec/integration/{failed_line_detection,filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die
96 +
97 + # Avoid a spec failing due to path issues
98 + sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \
99 + spec/rspec/core/configuration_spec.rb || die
100 +
101 + # Avoid specs for older coderay version which is no longer packaged
102 + sed -i -e '/highlights the syntax of the provided lines/ s/do/,skip: true do/' \
103 + -e '/dynamically adjusts to changing color config/ s/do/,skip: true do/' \
104 + spec/rspec/core/source/syntax_highlighter_spec.rb
105 +}
106 +
107 +each_ruby_prepare() {
108 + sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die
109 +
110 + # case ${RUBY} in
111 + # *ruby22)
112 + # # The rubygems version bundled with ruby 2.2 causes warnings.
113 + # sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die
114 + # ;;
115 + # esac
116 +}
117 +
118 +all_ruby_compile() {
119 + if use doc ; then
120 + yardoc || die
121 + fi
122 +}
123 +
124 +each_ruby_test() {
125 + PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed."
126 +}
127 +
128 +all_ruby_install() {
129 + all_fakegem_install
130 +
131 + ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"'
132 +}