/[gentoo-x86]/dev-ruby/capybara/capybara-2.2.1.ebuild
Gentoo

Contents of /dev-ruby/capybara/capybara-2.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 25 07:00:27 2014 UTC (5 years ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Add ruby21, fixing bug 523664.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/capybara/capybara-2.2.1.ebuild,v 1.2 2014/08/05 16:00:59 mrueg Exp $
4
5 EAPI=5
6 USE_RUBY="ruby19 ruby20 ruby21"
7
8 RUBY_FAKEGEM_EXTRADOC="History.md README.md"
9
10 # Rake tasks are not distributed in the gem.
11 RUBY_FAKEGEM_TASK_DOC=""
12 RUBY_FAKEGEM_TASK_TEST=""
13
14 inherit virtualx ruby-fakegem
15
16 DESCRIPTION="Capybara aims to simplify the process of integration testing Rack applications"
17 HOMEPAGE="http://github.com/jnicklas/capybara"
18 LICENSE="MIT"
19
20 KEYWORDS="~amd64"
21 SLOT="2"
22 IUSE="test"
23
24 DEPEND="${DEPEND} test? ( www-client/firefox )"
25
26 ruby_add_bdepend "test? ( dev-ruby/rspec:2 dev-ruby/launchy >=dev-ruby/selenium-webdriver-2.0 )"
27
28 ruby_add_rdepend "
29 >=dev-ruby/mime-types-1.16
30 >=dev-ruby/nokogiri-1.3.3
31 >=dev-ruby/rack-1.0.0
32 >=dev-ruby/rack-test-0.5.4
33 >=dev-ruby/xpath-2.0.0:2"
34
35 all_ruby_prepare() {
36 sed -i -e '/bundler/d' -e '/pry/d' spec/spec_helper.rb || die
37 }
38
39 each_ruby_test() {
40 VIRTUALX_COMMAND="${RUBY} -Ilib -S rspec spec"
41 virtualmake || die "Tests failed."
42 }

  ViewVC Help
Powered by ViewVC 1.1.20