| 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/webrat/webrat-0.7.3.ebuild,v 1.3 2012/08/13 17:40:06 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
|
| 7 |
USE_RUBY="ruby18"
|
| 8 |
|
| 9 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 10 |
|
| 11 |
RUBY_FAKEGEM_TASK_TEST="spec"
|
| 12 |
# These tests currently fail: rack and sinatra only work with old sinatra versions. mechanize needs a live network connection.
|
| 13 |
#RUBY_FAKEGEM_TASK_TEST="spec:integration:rack spec:integration:sinatra spec:integration:mechanize"
|
| 14 |
|
| 15 |
RUBY_FAKEGEM_EXTRADOC="README.rdoc History.txt"
|
| 16 |
|
| 17 |
RUBY_FAKEGEM_EXTRAINSTALL="vendor"
|
| 18 |
|
| 19 |
inherit ruby-fakegem
|
| 20 |
|
| 21 |
DESCRIPTION="Ruby acceptance testing for web applications"
|
| 22 |
HOMEPAGE="http://github.com/brynary/webrat/"
|
| 23 |
LICENSE="MIT"
|
| 24 |
|
| 25 |
KEYWORDS="~amd64 ~x86 ~x86-macos"
|
| 26 |
SLOT="0"
|
| 27 |
IUSE=""
|
| 28 |
|
| 29 |
ruby_add_rdepend ">=dev-ruby/nokogiri-1.2.0
|
| 30 |
>=dev-ruby/rack-1.0
|
| 31 |
>=dev-ruby/rack-test-0.5.3"
|
| 32 |
|
| 33 |
ruby_add_bdepend "test? ( dev-ruby/rspec:0 dev-ruby/merb-core dev-ruby/mechanize )"
|
| 34 |
|
| 35 |
all_ruby_prepare() {
|
| 36 |
# Remove tests for which we don't have dependencies yet.
|
| 37 |
rm -rf spec/*/selenium rm spec/public/save_and_open_spec.rb || die
|
| 38 |
|
| 39 |
# Remove tests that don't work with Rails 3 installed.
|
| 40 |
rm -rf spec/private/rails || die
|
| 41 |
|
| 42 |
# Contains pending spec that is actually fixed, causing failure.
|
| 43 |
rm spec/public/click_link_spec.rb || die
|
| 44 |
}
|