Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/gherkin: ChangeLog gherkin-2.12.2.ebuild
Date: Wed, 24 Jun 2015 05:37:34
Message-Id: 20150624053728.01456A54@oystercatcher.gentoo.org
1 graaff 15/06/24 05:37:27
2
3 Modified: ChangeLog
4 Added: gherkin-2.12.2.ebuild
5 Log:
6 Version bump. Add ruby22.
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.86 dev-ruby/gherkin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.86&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.86&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?r1=1.85&r2=1.86
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v
20 retrieving revision 1.85
21 retrieving revision 1.86
22 diff -u -r1.85 -r1.86
23 --- ChangeLog 7 Jun 2015 17:51:46 -0000 1.85
24 +++ ChangeLog 24 Jun 2015 05:37:27 -0000 1.86
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/gherkin
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v 1.85 2015/06/07 17:51:46 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v 1.86 2015/06/24 05:37:27 graaff Exp $
30 +
31 +*gherkin-2.12.2 (24 Jun 2015)
32 +
33 + 24 Jun 2015; Hans de Graaff <graaff@g.o> +gherkin-2.12.2.ebuild,
34 + +files/gherkin-2.12.2-ruby21.patch:
35 + Version bump. Add ruby22.
36
37 07 Jun 2015; Justin Lecher <jlec@g.o> metadata.xml:
38 Add github to remote-id in metadata.xml
39
40
41
42 1.1 dev-ruby/gherkin/gherkin-2.12.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.12.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.12.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gherkin-2.12.2.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/gherkin-2.12.2.ebuild,v 1.1 2015/06/24 05:37:27 graaff Exp $
52
53 EAPI=5
54 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
55
56 RUBY_FAKEGEM_TASK_DOC=""
57 RUBY_FAKEGEM_TASK_TEST=""
58
59 RUBY_FAKEGEM_DOCDIR="rdoc"
60 RUBY_FAKEGEM_EXTRADOC="History.md README.md"
61
62 inherit ruby-fakegem
63
64 DESCRIPTION="Fast Gherkin lexer and parser based on Ragel"
65 HOMEPAGE="https://github.com/cucumber/gherkin"
66 LICENSE="MIT"
67 SRC_URI="https://github.com/cucumber/gherkin/archive/v${PV}.tar.gz -> ${P}-git.tgz"
68
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
70 SLOT="0"
71 IUSE="doc test"
72
73 DEPEND="${DEPEND} dev-util/ragel"
74 RDEPEND="${RDEPEND}"
75
76 ruby_add_bdepend "
77 dev-ruby/rake-compiler
78 test? (
79 >=dev-ruby/builder-2.1.2
80 >=dev-util/cucumber-1.1.3
81 >=dev-ruby/rspec-2.6.0
82 >=dev-ruby/term-ansicolor-1.0.5
83 )
84 doc? ( >=dev-ruby/yard-0.8.3 )"
85
86 ruby_add_rdepend ">=dev-ruby/multi_json-1.3"
87
88 RUBY_PATCHES=( ${P}-ruby21.patch )
89
90 all_ruby_prepare() {
91 # Remove Bundler-related things.
92 sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb features/support/env.rb || die
93 rm Gemfile || die
94
95 # Don't use compile dependencies to avoid building again for specs.
96 sed -i -e '/:compile/d' Rakefile
97
98 # Keep this hardcoded -O0 optimization level since
99 # https://github.com/cucumber/gherkin/issues/182#issuecomment-6945009
100 # hints at the fact that removing it might cause the mysterious
101 # Lexer errors that hapen intermittently.
102 # sed -ie -e 's/-O0//' tasks/compile.rake || die
103
104 # Remove feature that depends on direct access to the cucumber
105 # source. We could probably set this up by downloading the source
106 # and unpacking it, but skipping this now in the interest of time.
107 rm features/pretty_formatter.feature || die
108
109 # We need to remove these tasks during bootstrapping since it tries
110 # to load cucumber already but we can be sure it isn't installed
111 # yet. Also remove other rake tasks for which we may not yet have
112 # dependencies.
113 if ! use test ; then
114 rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks."
115 fi
116
117 # Avoid dependency on yard if USE=-doc
118 if ! use doc ; then
119 rm tasks/apidoc.rake || die
120 fi
121
122 # Avoid implicit dependency on git
123 sed -i -e 's/git ls-files/echo/' gherkin.gemspec || die
124 }
125
126 all_ruby_compile() {
127 all_fakegem_compile
128
129 if use doc ; then
130 yard || die
131 fi
132 }
133
134 each_ruby_compile() {
135 ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die
136 }
137
138 each_ruby_test() {
139 ${RUBY} -I lib -S rspec-2 spec || die "Specs failed"
140 CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed"
141 }