1 |
commit: 3819d6e90faf31695cdea6765b56ab80ff01741c |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 4 11:45:55 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 4 11:45:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3819d6e9 |
7 |
|
8 |
dev-util/cucumber: update diff-lcs version to match gemspec |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
dev-util/cucumber/cucumber-3.1.0-r1.ebuild | 88 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 88 insertions(+) |
14 |
|
15 |
diff --git a/dev-util/cucumber/cucumber-3.1.0-r1.ebuild b/dev-util/cucumber/cucumber-3.1.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..efb1a9e5bd5 |
18 |
--- /dev/null |
19 |
+++ b/dev-util/cucumber/cucumber-3.1.0-r1.ebuild |
20 |
@@ -0,0 +1,88 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+USE_RUBY="ruby23 ruby24 ruby25" |
26 |
+ |
27 |
+# Documentation task depends on sdoc which we currently don't have. |
28 |
+RUBY_FAKEGEM_TASK_DOC="" |
29 |
+RUBY_FAKEGEM_TASK_TEST="none" |
30 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
31 |
+ |
32 |
+RUBY_FAKEGEM_GEMSPEC="cucumber.gemspec" |
33 |
+ |
34 |
+inherit ruby-fakegem |
35 |
+ |
36 |
+DESCRIPTION="Executable feature scenarios" |
37 |
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis" |
38 |
+SRC_URI="https://github.com/cucumber/cucumber-ruby/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+RUBY_S="cucumber-ruby-${PV}" |
40 |
+LICENSE="Ruby" |
41 |
+ |
42 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~x86" |
43 |
+SLOT="0" |
44 |
+IUSE="examples test" |
45 |
+ |
46 |
+ruby_add_bdepend " |
47 |
+ test? ( |
48 |
+ dev-ruby/rspec:3 |
49 |
+ >=dev-ruby/nokogiri-1.5.2 |
50 |
+ >=dev-ruby/syntax-1.0.0 |
51 |
+ >=dev-util/aruba-0.6.1 =dev-util/aruba-0.6* |
52 |
+ >=dev-ruby/json-1.7 |
53 |
+ >=dev-util/cucumber-3 |
54 |
+ >=dev-ruby/mime-types-2.99:2 |
55 |
+ )" |
56 |
+ |
57 |
+ruby_add_rdepend " |
58 |
+ >=dev-ruby/builder-2.1.2:* |
59 |
+ dev-util/cucumber-core:3.1 |
60 |
+ dev-util/cucumber-expressions:5.0 |
61 |
+ >=dev-util/cucumber-wire-0.0.1:0 |
62 |
+ >=dev-ruby/diff-lcs-1.3:0 |
63 |
+ dev-ruby/gherkin:5 |
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 '/\(coveralls\|spork\|simplecov\|bcat\|kramdown\|yard\|capybara\|octokit\|rack-test\|ramaze\|rubocop\|sinatra\|webrat\|mime-types\|rubyzip\)/d' ${RUBY_FAKEGEM_GEMSPEC} || die |
72 |
+ |
73 |
+ # Avoid dependency on unpackaged cucumber-pro |
74 |
+ sed -i -e '/cucumber-pro/ s:^:#:' Gemfile || die |
75 |
+ |
76 |
+ # Avoid harmless failing spec |
77 |
+ sed -i -e '/converts the snapshot path to a relative path/,/end/ s:^:#:' \ |
78 |
+ spec/cucumber/formatter/html_spec.rb || die |
79 |
+ |
80 |
+ # Avoid failing features on new delegate and forwardable behavior in ruby |
81 |
+ rm -f features/docs/defining_steps/ambiguous_steps.feature features/docs/defining_steps/nested_steps.feature || die |
82 |
+ |
83 |
+ # Avoid dependency on git |
84 |
+ sed -i -e '/executables/ s/=.*/= ["cucumber"]/' \ |
85 |
+ -e '/git ls-files/d' cucumber.gemspec || die |
86 |
+ |
87 |
+ sed -i -e '/pry/ s:^:#:' cucumber.gemspec spec/spec_helper.rb || die |
88 |
+ |
89 |
+ rm -f Gemfile.lock || die |
90 |
+} |
91 |
+ |
92 |
+each_ruby_prepare() { |
93 |
+ # Use the right interpreter |
94 |
+ sed -i -e 's:ruby:'${RUBY}':' features/lib/step_definitions/ruby_steps.rb || die |
95 |
+} |
96 |
+ |
97 |
+each_ruby_test() { |
98 |
+ RSPEC_VERSION=3 ruby-ng_rspec |
99 |
+ CUCUMBER_USE_RELEASED_CORE=true PATH="${S}"/bin:${PATH} RUBYLIB="${S}"/lib ${RUBY} -Ilib bin/cucumber features || die "Features failed" |
100 |
+} |
101 |
+ |
102 |
+all_ruby_install() { |
103 |
+ all_fakegem_install |
104 |
+ |
105 |
+ if use examples; then |
106 |
+ cp -pPR examples "${D}/usr/share/doc/${PF}" || die "Failed installing example files." |
107 |
+ fi |
108 |
+} |