/[gentoo-x86]/dev-ruby/gherkin/gherkin-2.7.3.ebuild
Gentoo

Contents of /dev-ruby/gherkin/gherkin-2.7.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Oct 28 17:18:05 2012 UTC (6 months, 3 weeks ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
alpha stable, add ~alpha/~ia64/~sparc, etc

(Portage version: 2.1.11.9/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/gherkin/gherkin-2.7.3.ebuild,v 1.5 2012/08/19 11:13:12 blueness Exp $
4
5 EAPI=4
6 USE_RUBY="ruby18 ruby19 ree18"
7
8 RUBY_FAKEGEM_TASK_DOC="yard"
9 RUBY_FAKEGEM_TASK_TEST=""
10
11 RUBY_FAKEGEM_DOCDIR="rdoc"
12 RUBY_FAKEGEM_EXTRADOC="History.md README.md"
13
14 inherit ruby-fakegem
15
16 DESCRIPTION="Fast Gherkin lexer and parser based on Ragel."
17 HOMEPAGE="http://wiki.github.com/aslakhellesoy/cucumber/gherkin"
18 LICENSE="MIT"
19 SRC_URI="https://github.com/cucumber/gherkin/tarball/v${PV} -> ${P}.tgz"
20
21 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
22 SLOT="0"
23 IUSE="doc test"
24
25 DEPEND="${DEPEND} dev-util/ragel"
26 RDEPEND="${RDEPEND}"
27
28 RUBY_S="cucumber-gherkin-*"
29
30 ruby_add_bdepend "
31 dev-ruby/rake-compiler
32 test? (
33 >=dev-ruby/awesome_print-0.4.0
34 >=dev-ruby/builder-2.1.2
35 >=dev-util/cucumber-1.1.3
36 >=dev-ruby/rspec-2.6.0
37 >=dev-ruby/term-ansicolor-1.0.5
38 )
39 doc? ( >=dev-ruby/yard-0.7.4 )"
40
41 ruby_add_rdepend ">=dev-ruby/json-1.4.6"
42
43 all_ruby_prepare() {
44 # Remove Bundler-related things.
45 sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb features/support/env.rb || die
46 rm Gemfile || die
47
48 # Don't use compile dependencies to avoid building again for specs.
49 sed -i -e '/:compile/d' Rakefile
50
51 # Remove feature that depends on direct access to the cucumber
52 # source. We could probably set this up by downloading the source
53 # and unpacking it, but skipping this now in the interest of time.
54 rm features/pretty_formatter.feature || die
55
56 # We need to remove these tasks during bootstrapping since it tries
57 # to load cucumber already but we can be sure it isn't installed
58 # yet. Also remove other rake tasks for which we may not yet have
59 # dependencies.
60 if ! use test ; then
61 rm tasks/cucumber.rake tasks/rspec.rake || die "Unable to remove rake tasks."
62 fi
63 }
64
65 each_ruby_compile() {
66 ${RUBY} -I lib -S rake -rrake/clean -f tasks/compile.rake compile || die
67 }
68
69 each_ruby_test() {
70 ${RUBY} -I lib -S rake spec || die "Specs failed"
71 CUCUMBER_HOME="${HOME}" RUBYLIB=lib ${RUBY} -S cucumber features || die "Cucumber features failed"
72 }

  ViewVC Help
Powered by ViewVC 1.1.13