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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Mar 11 16:57:06 2015 UTC (4 years, 7 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Add ~x86, wrt bug #510614

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="~x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 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.4.4.ebuild,v 1.1 2014/11/07 07:51:59 graaff 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 ~x86"
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 # Avoid window-manager specific tests (sizes are specific for fluxbox)
39 sed -i -e '/#maximize/,/^ end/ s:^:#:' lib/capybara/spec/session/window/window_spec.rb || die
40 }
41
42 each_ruby_test() {
43 VIRTUALX_COMMAND="${RUBY} -Ilib -S rspec spec"
44 virtualmake || die "Tests failed."
45 }

  ViewVC Help
Powered by ViewVC 1.1.20