summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-11-15 11:29:56 +0100
committerHans de Graaff <graaff@gentoo.org>2024-11-15 11:29:56 +0100
commitd618829833611c4a683fd5f5b986fb0f64430701 (patch)
treed1a28b2e39c32a4e5aff2b4424c0d87ee21e3ef4 /dev-ruby/elasticsearch
parentdev-ruby/elasticsearch-api: add 8.16.0 (diff)
downloadgentoo-d618829833611c4a683fd5f5b986fb0f64430701.tar.gz
gentoo-d618829833611c4a683fd5f5b986fb0f64430701.tar.bz2
gentoo-d618829833611c4a683fd5f5b986fb0f64430701.zip
dev-ruby/elasticsearch: add 8.16.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/elasticsearch')
-rw-r--r--dev-ruby/elasticsearch/Manifest1
-rw-r--r--dev-ruby/elasticsearch/elasticsearch-8.16.0.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-ruby/elasticsearch/Manifest b/dev-ruby/elasticsearch/Manifest
index b75213002355..93f9a784291a 100644
--- a/dev-ruby/elasticsearch/Manifest
+++ b/dev-ruby/elasticsearch/Manifest
@@ -4,3 +4,4 @@ DIST elasticsearch-ruby-8.12.2.tar.gz 1908814 BLAKE2B f3caffe7336a63547ba0d44a32
DIST elasticsearch-ruby-8.13.0.tar.gz 1918145 BLAKE2B ded410c9e77876dc61a942ab1de7945d28aa1c06cd7079f693119812128fdfd38c206d9644aadb79fb8c9b48e12d77fec6c313434cfb58510bc48fecc905106b SHA512 8babc5797802ae256b41a00927cd1688c2d3d90770d8a867a9b96a7a115f537f1ca301b2d6b73107995b23578abc755d7bf7dc03075520fa857dda22e6a2d32b
DIST elasticsearch-ruby-8.14.0.tar.gz 1918771 BLAKE2B 1824edd7ae6ade20b58cb56dfa01b9e9d5d833918cddbba49f7f0d258eff6a19c55f112d7dd70f9457274b457851b59a208db3b1e69c1f12867951b960333c99 SHA512 36fb8fb18e410df7f2c4c46e2ffaed0ea591879ad4e753d178513281be5de78bd7ee1cda5cbbf02313cd255ad85e010f92bc5690f16f2ab91fd38bb0d17f8dbc
DIST elasticsearch-ruby-8.15.0.tar.gz 1935690 BLAKE2B 380eebdb9fdcce1600051d9078d8af90789fa4f0b91266fe2297092aa32eed96dabe591fad69f8f4a37f56f15dbbe32a79d07c25693cc83907ba52eb10a77c32 SHA512 011f01914e457959f9737a65cc1fc09e0c31f70c4c4976a14b2506a2b66f4ffbaadc8fb643db10ec90b70a7cc0012c7752aecd598a76a9281cf12586e27fb08a
+DIST elasticsearch-ruby-8.16.0.tar.gz 1938620 BLAKE2B 742180d14d6d003b498f2e5812239c6d83c39c5d8fb37dad1a113f017857fe2563932e05ca67774e1db428f264d57d43bd694b6bf784c374db0c560e31af2931 SHA512 78191a95577aa443a85c75476a6743cc31371958a3f30d1d95cbe9159893bdeb297a9010c1e41d7adcb53172f5f096e7666a8f1506a6b05fcbaa7559328589ab
diff --git a/dev-ruby/elasticsearch/elasticsearch-8.16.0.ebuild b/dev-ruby/elasticsearch/elasticsearch-8.16.0.ebuild
new file mode 100644
index 000000000000..28b77e676fba
--- /dev/null
+++ b/dev-ruby/elasticsearch/elasticsearch-8.16.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+MY_P=elasticsearch-ruby-${PV}
+DESCRIPTION="Ruby integrations for ES, elasticsearch 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="test"
+
+ruby_add_rdepend "
+ ~dev-ruby/elasticsearch-api-${PV}
+ >=dev-ruby/elastic-transport-8.3:8
+"
+ruby_add_bdepend "
+ doc? ( dev-ruby/yard )
+ test? (
+ dev-ruby/ansi
+ dev-ruby/base64
+ dev-ruby/mocha:2
+ dev-ruby/pry
+ dev-ruby/shoulda-context
+ )
+"
+
+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 '/documentation/ s:^:#:' \
+ -i spec/spec_helper.rb || die
+
+ # Avoid spec requiring a running elasticsearch server
+ rm -f spec/integration/{characters_escaping,client_integration,validation_integration}_spec.rb || die
+ rm -f spec/integration/helpers/*_helper_spec.rb || die
+}