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