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.11.6.ebuild
Date: Thu, 31 Jan 2013 07:35:20
Message-Id: 20130131073517.183FB2171D@flycatcher.gentoo.org
1 graaff 13/01/31 07:35:17
2
3 Modified: ChangeLog
4 Added: gherkin-2.11.6.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.49 dev-ruby/gherkin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.49&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.49&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?r1=1.48&r2=1.49
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v
20 retrieving revision 1.48
21 retrieving revision 1.49
22 diff -u -r1.48 -r1.49
23 --- ChangeLog 15 Jan 2013 03:42:44 -0000 1.48
24 +++ ChangeLog 31 Jan 2013 07:35:16 -0000 1.49
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/gherkin
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v 1.48 2013/01/15 03:42:44 zerochaos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v 1.49 2013/01/31 07:35:16 graaff Exp $
30 +
31 +*gherkin-2.11.6 (31 Jan 2013)
32 +
33 + 31 Jan 2013; Hans de Graaff <graaff@g.o> +gherkin-2.11.6.ebuild:
34 + Version bump.
35
36 15 Jan 2013; Rick Farina <zerochaos@g.o> gherkin-2.11.5.ebuild:
37 adding ~arm keywords to net-analyzer/metasploit rdeps
38
39
40
41 1.1 dev-ruby/gherkin/gherkin-2.11.6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.11.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.11.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gherkin-2.11.6.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.11.6.ebuild,v 1.1 2013/01/31 07:35:16 graaff Exp $
51
52 EAPI=4
53 USE_RUBY="ruby18 ruby19 ree18"
54
55 RUBY_FAKEGEM_TASK_DOC=""
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="https://github.com/cucumber/gherkin"
65 LICENSE="MIT"
66 SRC_URI="https://github.com/cucumber/gherkin/archive/v${PV}.tar.gz -> ${P}-git.tgz"
67
68 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
69 SLOT="0"
70 IUSE="doc test"
71
72 DEPEND="${DEPEND} dev-util/ragel"
73 RDEPEND="${RDEPEND}"
74
75 ruby_add_bdepend "
76 dev-ruby/rake-compiler
77 test? (
78 >=dev-ruby/builder-2.1.2
79 >=dev-util/cucumber-1.1.3
80 >=dev-ruby/rspec-2.6.0
81 >=dev-ruby/term-ansicolor-1.0.5
82 )
83 doc? ( >=dev-ruby/yard-0.7.4 )"
84
85 ruby_add_rdepend ">=dev-ruby/json-1.7.6"
86
87 all_ruby_prepare() {
88 # Remove Bundler-related things.
89 sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb features/support/env.rb || die
90 rm Gemfile || die
91
92 # Don't use compile dependencies to avoid building again for specs.
93 sed -i -e '/:compile/d' Rakefile
94
95 # Remove feature that depends on direct access to the cucumber
96 # source. We could probably set this up by downloading the source
97 # and unpacking it, but skipping this now in the interest of time.
98 rm features/pretty_formatter.feature || die
99
100 # We need to remove these tasks during bootstrapping since it tries
101 # to load cucumber already but we can be sure it isn't installed
102 # yet. Also remove other rake tasks for which we may not yet have
103 # dependencies.
104 if ! use test ; then
105 rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks."
106 fi
107
108 # Avoid dependency on yard if USE=-doc
109 if ! use doc ; then
110 rm tasks/apidoc.rake || die
111 fi
112
113 # Avoid implicit dependency on git
114 sed -i -e 's/git ls-files/echo/' gherkin.gemspec || die
115 }
116
117 all_ruby_compile() {
118 all_fakegem_compile
119
120 if use doc ; then
121 yard || die
122 fi
123 }
124
125 each_ruby_compile() {
126 ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die
127 }
128
129 each_ruby_test() {
130 ${RUBY} -I lib -S rake spec || die "Specs failed"
131 CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed"
132 }