dev-ruby/poltergeist: add 1.14.0
authorHans de Graaff <graaff@gentoo.org>
Fri, 7 Apr 2017 05:25:40 +0000 (07:25 +0200)
committerHans de Graaff <graaff@gentoo.org>
Fri, 7 Apr 2017 05:25:40 +0000 (07:25 +0200)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ruby/poltergeist/Manifest
dev-ruby/poltergeist/poltergeist-1.14.0.ebuild [new file with mode: 0644]

index a50370125ab1bd9838c4ca5ca453e04f7fce7f3c..08013ae25105d74cea4284d4767088aac0836858 100644 (file)
@@ -1,2 +1,3 @@
 DIST poltergeist-1.10.0.tar.gz 179598 SHA256 9d7afad082fdd000dd8a4007168d4f37168e696871c988c1bd3db97335a78c17 SHA512 d81f06e45eb0fd8a7d89dea7799b6e2c85dbc34c6220f57acf9bfa4ade8ef464157204dfd76bbd53e65aa62edaecedc80f375de4c47ab9af2bab2a3b96c5fae8 WHIRLPOOL 0f6207b31859594218a6a38acb13a5c49f174bd8f5db7e0ac0ee64041f662b8e8dc56ace7afd4eda11e5e592f1519a34c1b8b393c23bf908c3758b490fa1776d
+DIST poltergeist-1.14.0.tar.gz 185946 SHA256 a0ce79901ec68aa40a64e6c7eff810bd518846614ce073b80db43311ec9f12fb SHA512 82ab8aec7e5e091fa2924765e077d8b9816319833d438d9246f8ef3d0045d158de6bce1d14e929cc5cb8d0970ea380d44a51511b17623479f3cd64853580ce71 WHIRLPOOL e41710bb342765b271bd4f53696b2ac3d62a6126c1ad21710bcd845d859a114b8b4e1e92c12784865bcc682f318e8421dcb2dcc95230a599ef29b1f6c0041914
 DIST poltergeist-1.9.0.tar.gz 175912 SHA256 781f81c00bc97323585045a9b2123ca14cd95b0183ac7b794f326274a652f8dc SHA512 667fab321bd8718f604496119efcdd6e3bd88da89b45afca13df53727a4b7a01ab2ca70710afdb3479d4c68ecb155f0136901aaf405bc26cb0430838558c69d1 WHIRLPOOL 6ae722748f150907ffde624107e7e4d3f218271f5a08addafbc40a453f6f9d4deaffa2911132b77b2f544d622300103b3fa44e0766a5fd0d2249f84b4fbdbb75
diff --git a/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild b/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild
new file mode 100644 (file)
index 0000000..4dfa4cf
--- /dev/null
@@ -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
+}