summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-07-06 08:56:31 +0200
committerHans de Graaff <graaff@gentoo.org>2016-07-06 09:04:26 +0200
commitc794cdfebe7c581e1b7bb5f715ac007da7925c30 (patch)
tree6f98b14e18aa09a80d5b4bd9e0893f485952f205 /dev-ruby/poltergeist
parentdev-ruby/poltergeist: cleanup (diff)
downloadgentoo-c794cdfebe7c581e1b7bb5f715ac007da7925c30.tar.gz
gentoo-c794cdfebe7c581e1b7bb5f715ac007da7925c30.tar.bz2
gentoo-c794cdfebe7c581e1b7bb5f715ac007da7925c30.zip
dev-ruby/poltergeist: add 1.10.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/poltergeist')
-rw-r--r--dev-ruby/poltergeist/Manifest1
-rw-r--r--dev-ruby/poltergeist/poltergeist-1.10.0.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/poltergeist/Manifest b/dev-ruby/poltergeist/Manifest
index 8219a4c69c74..a50370125ab1 100644
--- a/dev-ruby/poltergeist/Manifest
+++ b/dev-ruby/poltergeist/Manifest
@@ -1 +1,2 @@
+DIST poltergeist-1.10.0.tar.gz 179598 SHA256 9d7afad082fdd000dd8a4007168d4f37168e696871c988c1bd3db97335a78c17 SHA512 d81f06e45eb0fd8a7d89dea7799b6e2c85dbc34c6220f57acf9bfa4ade8ef464157204dfd76bbd53e65aa62edaecedc80f375de4c47ab9af2bab2a3b96c5fae8 WHIRLPOOL 0f6207b31859594218a6a38acb13a5c49f174bd8f5db7e0ac0ee64041f662b8e8dc56ace7afd4eda11e5e592f1519a34c1b8b393c23bf908c3758b490fa1776d
DIST poltergeist-1.9.0.tar.gz 175912 SHA256 781f81c00bc97323585045a9b2123ca14cd95b0183ac7b794f326274a652f8dc SHA512 667fab321bd8718f604496119efcdd6e3bd88da89b45afca13df53727a4b7a01ab2ca70710afdb3479d4c68ecb155f0136901aaf405bc26cb0430838558c69d1 WHIRLPOOL 6ae722748f150907ffde624107e7e4d3f218271f5a08addafbc40a453f6f9d4deaffa2911132b77b2f544d622300103b3fa44e0766a5fd0d2249f84b4fbdbb75
diff --git a/dev-ruby/poltergeist/poltergeist-1.10.0.ebuild b/dev-ruby/poltergeist/poltergeist-1.10.0.ebuild
new file mode 100644
index 000000000000..4a27c4a0658d
--- /dev/null
+++ b/dev-ruby/poltergeist/poltergeist-1.10.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+# 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
+}