1 |
commit: 7eb361f2b26f9097f6b422e20255e375706ff36e |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 9 05:15:32 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 9 05:28:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7eb361f2 |
7 |
|
8 |
dev-ruby/rspec-core: cleanup |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild | 84 ------------------------- |
13 |
1 file changed, 84 deletions(-) |
14 |
|
15 |
diff --git a/dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild b/dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 3d835fb..0000000 |
18 |
--- a/dev-ruby/rspec-core/rspec-core-2.14.8-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,84 +0,0 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
-USE_RUBY="ruby20" |
27 |
- |
28 |
-RUBY_FAKEGEM_TASK_TEST="none" |
29 |
-RUBY_FAKEGEM_TASK_DOC="none" |
30 |
- |
31 |
-RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" |
32 |
- |
33 |
-# Also install this custom path since internal paths depend on it. |
34 |
-RUBY_FAKEGEM_EXTRAINSTALL="exe" |
35 |
- |
36 |
-RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec" |
37 |
- |
38 |
-inherit ruby-fakegem |
39 |
- |
40 |
-DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" |
41 |
-HOMEPAGE="http://rspec.rubyforge.org/" |
42 |
-SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz" |
43 |
- |
44 |
-LICENSE="MIT" |
45 |
-SLOT="2" |
46 |
-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" |
47 |
-IUSE="" |
48 |
- |
49 |
-ruby_add_bdepend "test? ( |
50 |
- >=dev-ruby/nokogiri-1.5.2 |
51 |
- dev-ruby/syntax |
52 |
- >=dev-ruby/zentest-4.6.2 |
53 |
- >=dev-ruby/rspec-expectations-2.14.0:2 |
54 |
- >=dev-ruby/rspec-mocks-2.12.0:2 |
55 |
- )" |
56 |
- |
57 |
-# Skip yard for ruby20 for now since we don't support ruby20 eselected |
58 |
-# yet and we can't bootstrap otherwise. |
59 |
-USE_RUBY=${USE_RUBY/ruby20/} ruby_add_bdepend "doc? ( dev-ruby/yard )" |
60 |
- |
61 |
-all_ruby_prepare() { |
62 |
- # Don't set up bundler: it doesn't understand our setup. |
63 |
- sed -i -e '/[Bb]undler/d' Rakefile || die |
64 |
- |
65 |
- # Avoid dependency on cucumber since we can't run the features anyway. |
66 |
- sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die |
67 |
- |
68 |
- # Cover all released versions of ruby 2.1.x. This should be reported |
69 |
- # upstream since ruby 2.1.x uses semantic versioning and the file |
70 |
- # should not have the full version number. |
71 |
- cp spec/rspec/core/formatters/text_mate_formatted-2.1.0.html spec/rspec/core/formatters/text_mate_formatted-2.1.1.html|| die |
72 |
- |
73 |
- # Duplicate exe also in bin. We can't change it since internal stuff |
74 |
- # also depends on this and fixing that is going to be fragile. This |
75 |
- # way we can at least install proper bin scripts. |
76 |
- cp -R exe bin || die |
77 |
- |
78 |
- # Avoid unneeded dependency on git. |
79 |
- sed -i -e '/git ls-files/ s:^:#:' rspec-core.gemspec || die |
80 |
- |
81 |
- # Avoid aruba dependency so that we don't end up in dependency hell. |
82 |
- sed -i -e '/aruba/ s:^:#:' -e '104,106 s:^:#:' spec/spec_helper.rb || die |
83 |
- rm spec/command_line/order_spec.rb || die |
84 |
-} |
85 |
- |
86 |
-each_ruby_prepare() { |
87 |
- sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die |
88 |
-} |
89 |
- |
90 |
-all_ruby_compile() { |
91 |
- if use doc ; then |
92 |
- yardoc || die |
93 |
- fi |
94 |
-} |
95 |
- |
96 |
-each_ruby_test() { |
97 |
- PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed." |
98 |
-} |
99 |
- |
100 |
-all_ruby_install() { |
101 |
- all_fakegem_install |
102 |
- |
103 |
- ruby_fakegem_binwrapper rspec /usr/bin/rspec-2 'gem "rspec", "~>2.0"' |
104 |
-} |