1 |
commit: 9f8ef254dd36c5ee3626dde0c91a10a8b613c29c |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 3 06:36:40 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 3 06:37:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f8ef254 |
7 |
|
8 |
dev-ruby/gherkin: cleanup |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-ruby/gherkin/gherkin-2.12.0-r2.ebuild | 91 ------------------------------- |
13 |
1 file changed, 91 deletions(-) |
14 |
|
15 |
diff --git a/dev-ruby/gherkin/gherkin-2.12.0-r2.ebuild b/dev-ruby/gherkin/gherkin-2.12.0-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 99bd5b7..00000000 |
18 |
--- a/dev-ruby/gherkin/gherkin-2.12.0-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,91 +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_DOC="" |
29 |
-RUBY_FAKEGEM_TASK_TEST="" |
30 |
- |
31 |
-RUBY_FAKEGEM_DOCDIR="rdoc" |
32 |
-RUBY_FAKEGEM_EXTRADOC="History.md README.md" |
33 |
- |
34 |
-inherit ruby-fakegem |
35 |
- |
36 |
-DESCRIPTION="Fast Gherkin lexer and parser based on Ragel" |
37 |
-HOMEPAGE="https://github.com/cucumber/gherkin" |
38 |
-LICENSE="MIT" |
39 |
-SRC_URI="https://github.com/cucumber/gherkin/archive/v${PV}.tar.gz -> ${P}-git.tgz" |
40 |
- |
41 |
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86" |
42 |
-SLOT="0" |
43 |
-IUSE="doc test" |
44 |
- |
45 |
-DEPEND="${DEPEND} dev-util/ragel" |
46 |
-RDEPEND="${RDEPEND}" |
47 |
- |
48 |
-ruby_add_bdepend " |
49 |
- dev-ruby/rake-compiler |
50 |
- test? ( |
51 |
- >=dev-ruby/builder-2.1.2 |
52 |
- >=dev-util/cucumber-1.1.3 |
53 |
- >=dev-ruby/rspec-2.6.0 |
54 |
- >=dev-ruby/term-ansicolor-1.0.5 |
55 |
- ) |
56 |
- doc? ( >=dev-ruby/yard-0.8.3 )" |
57 |
- |
58 |
-ruby_add_rdepend ">=dev-ruby/multi_json-1.3" |
59 |
- |
60 |
-all_ruby_prepare() { |
61 |
- # Remove Bundler-related things. |
62 |
- sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb features/support/env.rb || die |
63 |
- rm Gemfile || die |
64 |
- |
65 |
- # Don't use compile dependencies to avoid building again for specs. |
66 |
- sed -i -e '/:compile/d' Rakefile |
67 |
- |
68 |
- # Keep this hardcoded -O0 optimization level since |
69 |
- # https://github.com/cucumber/gherkin/issues/182#issuecomment-6945009 |
70 |
- # hints at the fact that removing it might cause the mysterious |
71 |
- # Lexer errors that hapen intermittently. |
72 |
- # sed -ie -e 's/-O0//' tasks/compile.rake || die |
73 |
- |
74 |
- # Remove feature that depends on direct access to the cucumber |
75 |
- # source. We could probably set this up by downloading the source |
76 |
- # and unpacking it, but skipping this now in the interest of time. |
77 |
- rm features/pretty_formatter.feature || die |
78 |
- |
79 |
- # We need to remove these tasks during bootstrapping since it tries |
80 |
- # to load cucumber already but we can be sure it isn't installed |
81 |
- # yet. Also remove other rake tasks for which we may not yet have |
82 |
- # dependencies. |
83 |
- if ! use test ; then |
84 |
- rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks." |
85 |
- fi |
86 |
- |
87 |
- # Avoid dependency on yard if USE=-doc |
88 |
- if ! use doc ; then |
89 |
- rm tasks/apidoc.rake || die |
90 |
- fi |
91 |
- |
92 |
- # Avoid implicit dependency on git |
93 |
- sed -i -e 's/git ls-files/echo/' gherkin.gemspec || die |
94 |
-} |
95 |
- |
96 |
-all_ruby_compile() { |
97 |
- all_fakegem_compile |
98 |
- |
99 |
- if use doc ; then |
100 |
- yard || die |
101 |
- fi |
102 |
-} |
103 |
- |
104 |
-each_ruby_compile() { |
105 |
- ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die |
106 |
-} |
107 |
- |
108 |
-each_ruby_test() { |
109 |
- ${RUBY} -I lib -S rake spec || die "Specs failed" |
110 |
- CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed" |
111 |
-} |