diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ruby/poltergeist | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ruby/poltergeist')
-rw-r--r-- | dev-ruby/poltergeist/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/poltergeist/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/poltergeist/poltergeist-1.14.0.ebuild | 46 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/poltergeist/Manifest b/dev-ruby/poltergeist/Manifest new file mode 100644 index 000000000000..35fab2466de0 --- /dev/null +++ b/dev-ruby/poltergeist/Manifest @@ -0,0 +1,3 @@ +DIST poltergeist-1.14.0.tar.gz 185946 BLAKE2B 0f5d95437ad5c2509264ef0230624ac257e8901e98bd4494576c3dc6895fc38c64572b287eb9842c8af2ddbaf0b3c48ecb0a1fb4a2cb72711abba40646dcaeec SHA512 82ab8aec7e5e091fa2924765e077d8b9816319833d438d9246f8ef3d0045d158de6bce1d14e929cc5cb8d0970ea380d44a51511b17623479f3cd64853580ce71 +EBUILD poltergeist-1.14.0.ebuild 1345 BLAKE2B b49bd953eb43e099e781a58253ec60811ed07bc1985d0d7b38012e23a9c9a12c21b343e962a568e6c2092235174a0e2c886060f46b40571e64b1e768e6ab2012 SHA512 0f95dace8e145a6ecedbb97af04cf48d556467b66d322385b287b4d0ea4a9b6291542cd7508ed85dfa4bce72aba95470cc1a52d3e4aa5da35c9d9d756b388434 +MISC metadata.xml 349 BLAKE2B ba01777e28c1a91f01caba2ce123ed0f6fbd72ad3c97a750a2d88c558b18c8cbace1db9fce79748e0ba3670b47cadff8294344e15c428e28f290263bee293fb5 SHA512 c15725416d3f3cfce40980ed3eb7b39c4afc2dbb1cdeac0f612656cc387e55a3ec1756c9cb54b0162c5fdb6e51e91537d40df4a5e782b4ec38bccebff29964d0 diff --git a/dev-ruby/poltergeist/metadata.xml b/dev-ruby/poltergeist/metadata.xml new file mode 100644 index 000000000000..1ec3a890fb3a --- /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 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 +} |