1 |
commit: 436576be94cf06716003090445d45909adec5cfc |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 7 05:50:03 2015 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 7 05:50:16 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=436576be |
7 |
|
8 |
dev-util/cucumber: fix gemspec |
9 |
|
10 |
Make sure the 'files' and 'executables' fields |
11 |
in the gemspec are correct. |
12 |
|
13 |
Package-Manager: portage-2.2.20.1 |
14 |
|
15 |
dev-util/cucumber/cucumber-1.3.20-r1.ebuild | 79 +++++++++++++++++++++++++++++ |
16 |
1 file changed, 79 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/cucumber/cucumber-1.3.20-r1.ebuild b/dev-util/cucumber/cucumber-1.3.20-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..97fbe19 |
21 |
--- /dev/null |
22 |
+++ b/dev-util/cucumber/cucumber-1.3.20-r1.ebuild |
23 |
@@ -0,0 +1,79 @@ |
24 |
+# Copyright 1999-2015 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=5 |
29 |
+USE_RUBY="ruby19 ruby20 ruby21 ruby22" |
30 |
+ |
31 |
+# Documentation task depends on sdoc which we currently don't have. |
32 |
+RUBY_FAKEGEM_TASK_DOC="" |
33 |
+RUBY_FAKEGEM_TASK_TEST="none" |
34 |
+RUBY_FAKEGEM_EXTRADOC="History.md README.md" |
35 |
+ |
36 |
+RUBY_FAKEGEM_GEMSPEC="cucumber.gemspec" |
37 |
+ |
38 |
+inherit ruby-fakegem |
39 |
+ |
40 |
+DESCRIPTION="Executable feature scenarios" |
41 |
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis" |
42 |
+LICENSE="Ruby" |
43 |
+ |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
45 |
+SLOT="0" |
46 |
+IUSE="examples test" |
47 |
+ |
48 |
+ruby_add_bdepend " |
49 |
+ test? ( |
50 |
+ >=dev-ruby/rspec-2.13.0 |
51 |
+ >=dev-ruby/nokogiri-1.5.2 |
52 |
+ >=dev-ruby/syntax-1.0.0 |
53 |
+ >=dev-util/aruba-0.5.2 |
54 |
+ >=dev-ruby/json-1.7 |
55 |
+ dev-ruby/bundler |
56 |
+ >=dev-util/cucumber-1.3 |
57 |
+ dev-ruby/rubyzip:0 |
58 |
+ )" |
59 |
+ |
60 |
+ruby_add_rdepend " |
61 |
+ >=dev-ruby/builder-2.1.2:* |
62 |
+ >=dev-ruby/diff-lcs-1.1.3 |
63 |
+ >=dev-ruby/gherkin-2.12.0:0 |
64 |
+ >=dev-ruby/multi_json-1.7.5 |
65 |
+ >=dev-ruby/multi_test-0.1.2 |
66 |
+" |
67 |
+ |
68 |
+all_ruby_prepare() { |
69 |
+ # Remove development dependencies from the gemspec that we don't |
70 |
+ # need or can't satisfy. |
71 |
+ sed -i -e '/\(spork\|simplecov\|bcat\|kramdown\|yard\|capybara\|rack-test\|ramaze\|sinatra\|webrat\|mime-types\|rubyzip\)/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
72 |
+ |
73 |
+ # Fix too-strict test dependencies |
74 |
+ sed -e '/nokogiri/ s/~> 1.5.2/>= 1.5.2/' \ |
75 |
+ -e '/aruba/ s/= 0.5.2/~> 0.5/' \ |
76 |
+ -e '/rake/ s/10.2/10.5/' -i ${RUBY_FAKEGEM_GEMSPEC} || die |
77 |
+ |
78 |
+ # Make sure spork is run in the right interpreter |
79 |
+ sed -i -e 's/#{Spork::BINARY}/-S #{Spork::BINARY}/' features/support/env.rb || die |
80 |
+ rm features/drb_server_integration.feature || die |
81 |
+ |
82 |
+ # Avoid json, they most likely fail due to multi_json weirdness. |
83 |
+ rm features/json_formatter.feature || die |
84 |
+ # Avoid features that break with newer rspec versions. |
85 |
+ sed -i -e '369,398d' features/background.feature || die |
86 |
+ |
87 |
+ # Avoid dependency on git |
88 |
+ sed -i -e 's/git ls-files/find/' cucumber.gemspec || die |
89 |
+} |
90 |
+ |
91 |
+each_ruby_test() { |
92 |
+ ruby-ng_rspec |
93 |
+ RUBYLIB=lib ${RUBY} -Ilib bin/cucumber features || die "Features failed" |
94 |
+} |
95 |
+ |
96 |
+all_ruby_install() { |
97 |
+ all_fakegem_install |
98 |
+ |
99 |
+ if use examples; then |
100 |
+ cp -pPR examples "${D}/usr/share/doc/${PF}" || die "Failed installing example files." |
101 |
+ fi |
102 |
+} |