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.10.0.ebuild
Date: Sat, 12 May 2012 09:29:46
Message-Id: 20120512092929.CE4102004B@flycatcher.gentoo.org
1 graaff 12/05/12 09:29:29
2
3 Modified: ChangeLog
4 Added: gherkin-2.10.0.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.39 dev-ruby/gherkin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.39&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.39&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?r1=1.38&r2=1.39
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v
20 retrieving revision 1.38
21 retrieving revision 1.39
22 diff -u -r1.38 -r1.39
23 --- ChangeLog 27 Apr 2012 07:41:35 -0000 1.38
24 +++ ChangeLog 12 May 2012 09:29:29 -0000 1.39
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/gherkin
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v 1.38 2012/04/27 07:41:35 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v 1.39 2012/05/12 09:29:29 graaff Exp $
30 +
31 +*gherkin-2.10.0 (12 May 2012)
32 +
33 + 12 May 2012; Hans de Graaff <graaff@g.o> +gherkin-2.10.0.ebuild:
34 + Version bump.
35
36 *gherkin-2.9.3 (27 Apr 2012)
37
38
39
40
41 1.1 dev-ruby/gherkin/gherkin-2.10.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.10.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.10.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gherkin-2.10.0.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/gherkin-2.10.0.ebuild,v 1.1 2012/05/12 09:29:29 graaff Exp $
51
52 EAPI=4
53 USE_RUBY="ruby18 ruby19 ree18"
54
55 RUBY_FAKEGEM_TASK_DOC="yard"
56 RUBY_FAKEGEM_TASK_TEST=""
57
58 RUBY_FAKEGEM_DOCDIR="rdoc"
59 RUBY_FAKEGEM_EXTRADOC="History.md README.md"
60
61 inherit ruby-fakegem
62
63 DESCRIPTION="Fast Gherkin lexer and parser based on Ragel."
64 HOMEPAGE="http://wiki.github.com/aslakhellesoy/cucumber/gherkin"
65 LICENSE="MIT"
66 SRC_URI="https://github.com/cucumber/gherkin/tarball/v${PV} -> ${P}.tgz"
67
68 KEYWORDS="~amd64"
69 SLOT="2.10"
70 IUSE="doc test"
71
72 DEPEND="${DEPEND} dev-util/ragel"
73 RDEPEND="${RDEPEND}"
74
75 RUBY_S="cucumber-gherkin-*"
76
77 ruby_add_bdepend "
78 dev-ruby/rake-compiler
79 test? (
80 >=dev-ruby/builder-2.1.2
81 >=dev-util/cucumber-1.1.3
82 >=dev-ruby/rspec-2.6.0
83 >=dev-ruby/term-ansicolor-1.0.5
84 )
85 doc? ( >=dev-ruby/yard-0.7.4 )"
86
87 ruby_add_rdepend ">=dev-ruby/json-1.4.6"
88
89 all_ruby_prepare() {
90 # Remove Bundler-related things.
91 sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb features/support/env.rb || die
92 rm Gemfile || die
93
94 # Don't use compile dependencies to avoid building again for specs.
95 sed -i -e '/:compile/d' Rakefile
96
97 # Remove feature that depends on direct access to the cucumber
98 # source. We could probably set this up by downloading the source
99 # and unpacking it, but skipping this now in the interest of time.
100 rm features/pretty_formatter.feature || die
101
102 # We need to remove these tasks during bootstrapping since it tries
103 # to load cucumber already but we can be sure it isn't installed
104 # yet. Also remove other rake tasks for which we may not yet have
105 # dependencies.
106 if ! use test ; then
107 rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks."
108 fi
109 }
110
111 each_ruby_compile() {
112 ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die
113 }
114
115 each_ruby_test() {
116 ${RUBY} -I lib -S rake spec || die "Specs failed"
117 CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed"
118 }