diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-07-23 13:32:06 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-07-23 13:58:48 +0200 |
commit | c2283320f6508b87e356a3d2d10c0303bdfd5c5b (patch) | |
tree | dd15ac635ea23ff886859007cf8e09f1b35d54ab /dev-ruby | |
parent | dev-python/black: keyword 21.7_beta0 for ~riscv (diff) | |
download | gentoo-c2283320f6508b87e356a3d2d10c0303bdfd5c5b.tar.gz gentoo-c2283320f6508b87e356a3d2d10c0303bdfd5c5b.tar.bz2 gentoo-c2283320f6508b87e356a3d2d10c0303bdfd5c5b.zip |
dev-ruby/elasticsearch-extensions: import of 0.0.33
New dependency for elasticsearch-api.
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/elasticsearch-extensions/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/elasticsearch-extensions/elasticsearch-extensions-0.0.33.ebuild | 52 | ||||
-rw-r--r-- | dev-ruby/elasticsearch-extensions/metadata.xml | 7 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/elasticsearch-extensions/Manifest b/dev-ruby/elasticsearch-extensions/Manifest new file mode 100644 index 000000000000..1cd27dfa60c1 --- /dev/null +++ b/dev-ruby/elasticsearch-extensions/Manifest @@ -0,0 +1 @@ +DIST elasticsearch-ruby-0.0.33.tar.gz 1305021 BLAKE2B 5fce0ba8276451863519aa14bccd619a9ed4ad68220928e2f04a1349aaaefeda1027d28d3b130ab593f5643cf8af82a4bd0aeb19f79a0c9c8419a89dd70ea8a9 SHA512 db39555d418ae06f4bbcb7dd5b2c71e9c5523fa434e5acc9d6761e3d90ed64d0f282ffa3720ee4a702aade00e20bdc33935ed462910178d4cc609296970cd325 diff --git a/dev-ruby/elasticsearch-extensions/elasticsearch-extensions-0.0.33.ebuild b/dev-ruby/elasticsearch-extensions/elasticsearch-extensions-0.0.33.ebuild new file mode 100644 index 000000000000..b6b127aa4e8c --- /dev/null +++ b/dev-ruby/elasticsearch-extensions/elasticsearch-extensions-0.0.33.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_TASK_TEST="NOTURN=true test" + +inherit ruby-fakegem + +MY_P=elasticsearch-ruby-${PV} +DESCRIPTION="Ruby integrations for ES, elasticsearch-extensions module" +HOMEPAGE="https://github.com/elastic/elasticsearch-ruby" +SRC_URI="https://github.com/elastic/elasticsearch-ruby/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + dev-ruby/ansi + dev-ruby/elasticsearch +" +ruby_add_bdepend " + doc? ( dev-ruby/yard ) + test? ( + dev-ruby/mocha:1.0 + dev-ruby/pry + dev-ruby/rspec:3 + dev-ruby/shoulda-context + dev-ruby/curb + dev-ruby/patron + ) +" + +RUBY_S=${MY_P}/${PN} + +all_ruby_prepare() { + # fix to work without git + sed -i -e 's/git ls-files/find * -type f/' *.gemspec || die + + # remove useless dependencies from Rakefile + sed -e '/bundler/d' \ + -e '/require.*cane/,/end/d' \ + -i Rakefile || die + + sed -e '/reporters/I s:^:#:' \ + -i test/test_helper.rb || die +} diff --git a/dev-ruby/elasticsearch-extensions/metadata.xml b/dev-ruby/elasticsearch-extensions/metadata.xml new file mode 100644 index 000000000000..1fa2ebe487b1 --- /dev/null +++ b/dev-ruby/elasticsearch-extensions/metadata.xml @@ -0,0 +1,7 @@ +<?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> + </maintainer> +</pkgmetadata> |