diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-04-07 07:25:40 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-04-07 07:25:40 +0200 |
commit | 1a35c3bc019c1224de44259a7813e852381e1193 (patch) | |
tree | 554232fcaf3d7011d569cdc23a497923ef12c199 /dev-ruby/poltergeist/poltergeist-1.14.0.ebuild | |
parent | dev-ruby/regexp_parser: add 0.4.3 (diff) | |
download | gentoo-1a35c3bc019c1224de44259a7813e852381e1193.tar.gz gentoo-1a35c3bc019c1224de44259a7813e852381e1193.tar.bz2 gentoo-1a35c3bc019c1224de44259a7813e852381e1193.zip |
dev-ruby/poltergeist: add 1.14.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/poltergeist/poltergeist-1.14.0.ebuild')
-rw-r--r-- | dev-ruby/poltergeist/poltergeist-1.14.0.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild b/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild new file mode 100644 index 000000000000..4dfa4cf7439d --- /dev/null +++ b/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23" + +# There are tests but they require several unpackaged dependencies. +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A PhantomJS driver for Capybara" +HOMEPAGE="https://github.com/jonleighton/poltergeist" +SRC_URI="https://github.com/jonleighton/poltergeist/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND+=" www-client/phantomjs" + +ruby_add_rdepend ">=dev-ruby/cliver-0.3.1 + >=dev-ruby/capybara-2.1 + >=dev-ruby/websocket-driver-0.2.0" + +ruby_add_bdepend "test? ( dev-ruby/sinatra:0 )" + +all_ruby_prepare() { + # Fix cliver versioning to accept all 0.x versions + sed -i -e 's/0.3.1/0.3/' ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -i -e '/bundler/ s:^:#:' spec/spec_helper.rb || die + sed -i -e '2igem "sinatra", "~>1.0"; gem "rack", "~>1.5"' spec/spec_helper.rb || die + + # Remove integration tests for now since they require additional dependencies. + rm -rf spec/integration + + # Avoid a spec failing only in our ebuild test environment + sed -i -e '/can pause indefinitely/,/^ end/ s:^:#:' spec/unit/driver_spec.rb || die +} |