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: gherkin-2.12.0.ebuild ChangeLog
Date: Sun, 26 May 2013 07:32:14
Message-Id: 20130526073211.32CA62171D@flycatcher.gentoo.org
1 graaff 13/05/26 07:32:11
2
3 Modified: ChangeLog
4 Added: gherkin-2.12.0.ebuild
5 Log:
6 Version bump. Dropped ia64,sparc keywords for new dependencies, bug 471306.
7
8 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.50 dev-ruby/gherkin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.50&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?rev=1.50&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/ChangeLog?r1=1.49&r2=1.50
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v
20 retrieving revision 1.49
21 retrieving revision 1.50
22 diff -u -r1.49 -r1.50
23 --- ChangeLog 31 Jan 2013 07:35:16 -0000 1.49
24 +++ ChangeLog 26 May 2013 07:32:11 -0000 1.50
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.49 2013/01/31 07:35:16 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/ChangeLog,v 1.50 2013/05/26 07:32:11 graaff Exp $
30 +
31 +*gherkin-2.12.0 (26 May 2013)
32 +
33 + 26 May 2013; Hans de Graaff <graaff@g.o> +gherkin-2.12.0.ebuild:
34 + Version bump. Dropped ia64,sparc keywords for new dependencies, bug 471306.
35
36 *gherkin-2.11.6 (31 Jan 2013)
37
38
39
40
41 1.1 dev-ruby/gherkin/gherkin-2.12.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.12.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/gherkin/gherkin-2.12.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gherkin-2.12.0.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.12.0.ebuild,v 1.1 2013/05/26 07:32:11 graaff Exp $
51
52 EAPI=5
53 USE_RUBY="ruby18 ruby19"
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 ~ppc ~ppc64 ~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.8.3 )"
84
85 ruby_add_rdepend ">=dev-ruby/multi_json-1.3"
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 # Avoid hardcoded optimization levels.
96 sed -ie -e 's/-O0//' tasks/compile.rake || die
97
98 # Remove feature that depends on direct access to the cucumber
99 # source. We could probably set this up by downloading the source
100 # and unpacking it, but skipping this now in the interest of time.
101 rm features/pretty_formatter.feature || die
102
103 # We need to remove these tasks during bootstrapping since it tries
104 # to load cucumber already but we can be sure it isn't installed
105 # yet. Also remove other rake tasks for which we may not yet have
106 # dependencies.
107 if ! use test ; then
108 rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks."
109 fi
110
111 # Avoid dependency on yard if USE=-doc
112 if ! use doc ; then
113 rm tasks/apidoc.rake || die
114 fi
115
116 # Avoid implicit dependency on git
117 sed -i -e 's/git ls-files/echo/' gherkin.gemspec || die
118 }
119
120 all_ruby_compile() {
121 all_fakegem_compile
122
123 if use doc ; then
124 yard || die
125 fi
126 }
127
128 each_ruby_compile() {
129 ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die
130 }
131
132 each_ruby_test() {
133 ${RUBY} -I lib -S rake spec || die "Specs failed"
134 CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed"
135 }