1 |
commit: ee1eb71766c50189f48b7da9474431eaa6aba784 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 29 05:39:28 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 29 05:40:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee1eb717 |
7 |
|
8 |
dev-ruby/rspec-core: add 3.5.2 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-ruby/rspec-core/Manifest | 1 + |
13 |
dev-ruby/rspec-core/rspec-core-3.5.2.ebuild | 100 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 101 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/rspec-core/Manifest b/dev-ruby/rspec-core/Manifest |
17 |
index e0a4a6e..b3aca5d 100644 |
18 |
--- a/dev-ruby/rspec-core/Manifest |
19 |
+++ b/dev-ruby/rspec-core/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST rspec-core-3.4.3-git.tgz 355961 SHA256 9dea290b7a1e30e483d61451e968554591a0 |
21 |
DIST rspec-core-3.4.4-git.tgz 355992 SHA256 a1f3cbf0748ac87a5b3b5bea2428121e1c6ab6a2133f466da81dfbb49bb22785 SHA512 f73eda7bab8622f7457286e4c2a19d8ee231f484743d9963cd4a020d149eaad19007e8d5d4eb049e4fe62ead4f7a84de55e63ac1ac26e2c7b6d599d14eaa17b7 WHIRLPOOL 1c25e860ce672da49e3d5d95b92ceef9d92fcb44095401926e166463ea8b21ac6cdcdc615cdec6b33bdb48e5ca7689febdfa41f18ae9254536e6b958d37eb780 |
22 |
DIST rspec-core-3.5.0-git.tgz 365231 SHA256 519402638aebb8cd584f34dacd2f1ffda5237f24fd57a4810d8bb257fa398519 SHA512 043ef9cd7ea064e3f12b786c333b1478bbce2eef7d1c781ec47cc46305bb37bf602eb900ef83486b8f7f90bc329ef45a4d4e271801ea59d2587a6b221b4a897d WHIRLPOOL 119d12cbb5f60f3beb6778b88d1f83dae24a1d7e2ddb9a65b1617c38e28f469829c934f2a5c837a8ff54ba8ef3bc2726bb555ccf000b969a8b2eb53455da32cf |
23 |
DIST rspec-core-3.5.1-git.tgz 366192 SHA256 935415b2d594692cdd18c669d915996a78b25d1c6e0351621a9548d7f42903de SHA512 090a1a88dcf1f7e668ffd5beb851bc671606bcb74f3b9da002b02826532d48784ad5935fe2ea850431f31bcdfd978cdae63722d9973730bfc2c5c52deb170dcc WHIRLPOOL 099887faea84b7c2970a8a796f1a75a82e6fd02a7b82e26df30feba609ae3c158f7e029ab9a060b3e1af79ad768188cca8041d806fc3ff5fcb7eff3d5873ee13 |
24 |
+DIST rspec-core-3.5.2-git.tgz 366746 SHA256 e7fa77e5fc447edea002787039ae7485a8b97a1bc2072ce015c13ddcc5d1bd67 SHA512 4f6e759a5866074c9df1d49cb0a540bc967872e24ed4eab6d88a4ae125f73e8e00cbf33e288e18ddc85c79e1ac63894682bfdbc839f9d1d20d52b9eaeceafad5 WHIRLPOOL 1e2711aa99fdab2a16278c8208d32188f59fe21c594645bd86717f77a23b2e24f98b21c9d2f6481c4fb37675c7c8f49357cc2137082a5c9f9e49f66ff584e64c |
25 |
|
26 |
diff --git a/dev-ruby/rspec-core/rspec-core-3.5.2.ebuild b/dev-ruby/rspec-core/rspec-core-3.5.2.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..5132461 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/rspec-core/rspec-core-3.5.2.ebuild |
31 |
@@ -0,0 +1,100 @@ |
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 ruby23" |
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="~alpha ~amd64 ~arm ~hppa ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
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/rspec-expectations-3.3.0:3 |
74 |
+ >=dev-ruby/rspec-mocks-2.99.0:3 |
75 |
+ )" |
76 |
+ |
77 |
+all_ruby_prepare() { |
78 |
+ # Don't set up bundler: it doesn't understand our setup. |
79 |
+ sed -i -e '/[Bb]undler/d' Rakefile || die |
80 |
+ |
81 |
+ # Avoid dependency on cucumber since we can't run the features anyway. |
82 |
+ sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die |
83 |
+ |
84 |
+ # Duplicate exe also in bin. We can't change it since internal stuff |
85 |
+ # also depends on this and fixing that is going to be fragile. This |
86 |
+ # way we can at least install proper bin scripts. |
87 |
+ cp -R exe bin || die |
88 |
+ |
89 |
+ # Avoid unneeded dependency on git. |
90 |
+ sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die |
91 |
+ |
92 |
+ # Avoid aruba dependency so that we don't end up in dependency hell. |
93 |
+ sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die |
94 |
+ rm spec/integration/{failed_line_detection,filtering,order,persistence_failures}_spec.rb spec/support/aruba_support.rb || die |
95 |
+ |
96 |
+ # Avoid a spec failing due to path issues |
97 |
+ sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \ |
98 |
+ spec/rspec/core/configuration_spec.rb || die |
99 |
+ |
100 |
+ # Avoid specs for older coderay version which is no longer packaged |
101 |
+ sed -i -e '/highlights the syntax of the provided lines/ s/do/,skip: true do/' \ |
102 |
+ -e '/dynamically adjusts to changing color config/ s/do/,skip: true do/' \ |
103 |
+ spec/rspec/core/source/syntax_highlighter_spec.rb |
104 |
+} |
105 |
+ |
106 |
+each_ruby_prepare() { |
107 |
+ sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die |
108 |
+ |
109 |
+ # case ${RUBY} in |
110 |
+ # *ruby22) |
111 |
+ # # The rubygems version bundled with ruby 2.2 causes warnings. |
112 |
+ # sed -i -e '/a library that issues no warnings when loaded/,/^ end/ s:^:#:' spec/rspec/core_spec.rb || die |
113 |
+ # ;; |
114 |
+ # esac |
115 |
+} |
116 |
+ |
117 |
+all_ruby_compile() { |
118 |
+ if use doc ; then |
119 |
+ yardoc || die |
120 |
+ fi |
121 |
+} |
122 |
+ |
123 |
+each_ruby_test() { |
124 |
+ PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed." |
125 |
+} |
126 |
+ |
127 |
+all_ruby_install() { |
128 |
+ all_fakegem_install |
129 |
+ |
130 |
+ ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"' |
131 |
+} |