summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-01-23 13:46:03 -0500
committerBrian Evans <grknight@gentoo.org>2019-01-23 13:46:55 -0500
commit5f834a9b43cfabc1b2606496aa35b231f394291a (patch)
treee464f90e098e342c8972ef84b5a423efee4f544b /dev-ruby/poltergeist
parentdev-ruby/poltergeist,www-client/phantomjs: Remove last rite packages (diff)
downloadgentoo-5f834a9b43cfabc1b2606496aa35b231f394291a.tar.gz
gentoo-5f834a9b43cfabc1b2606496aa35b231f394291a.tar.bz2
gentoo-5f834a9b43cfabc1b2606496aa35b231f394291a.zip
Revert "dev-ruby/poltergeist,www-client/phantomjs: Remove last rite packages"
This reverts commit c75c33a70d5cea66528a0613f1cd2cae65275939. Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-ruby/poltergeist')
-rw-r--r--dev-ruby/poltergeist/Manifest1
-rw-r--r--dev-ruby/poltergeist/metadata.xml11
-rw-r--r--dev-ruby/poltergeist/poltergeist-1.14.0.ebuild46
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/poltergeist/Manifest b/dev-ruby/poltergeist/Manifest
new file mode 100644
index 00000000000..6362d579983
--- /dev/null
+++ b/dev-ruby/poltergeist/Manifest
@@ -0,0 +1 @@
+DIST poltergeist-1.14.0.tar.gz 185946 BLAKE2B 0f5d95437ad5c2509264ef0230624ac257e8901e98bd4494576c3dc6895fc38c64572b287eb9842c8af2ddbaf0b3c48ecb0a1fb4a2cb72711abba40646dcaeec SHA512 82ab8aec7e5e091fa2924765e077d8b9816319833d438d9246f8ef3d0045d158de6bce1d14e929cc5cb8d0970ea380d44a51511b17623479f3cd64853580ce71
diff --git a/dev-ruby/poltergeist/metadata.xml b/dev-ruby/poltergeist/metadata.xml
new file mode 100644
index 00000000000..1ec3a890fb3
--- /dev/null
+++ b/dev-ruby/poltergeist/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jonleighton/poltergeist</remote-id>
+ </upstream>
+</pkgmetadata>
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 00000000000..4dfa4cf7439
--- /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
+}