summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-09-01 08:24:09 +0200
committerHans de Graaff <graaff@gentoo.org>2024-09-01 08:24:09 +0200
commitc1bc6720c3e4c4c968dc35825ac93f2ef0d82b6f (patch)
treec00ea82fd70b707f6c8930e5eb7719d123048a81 /dev-ruby
parentdev-ruby/elasticsearch-api: add 8.15.0 (diff)
downloadgentoo-c1bc6720c3e4c4c968dc35825ac93f2ef0d82b6f.tar.gz
gentoo-c1bc6720c3e4c4c968dc35825ac93f2ef0d82b6f.tar.bz2
gentoo-c1bc6720c3e4c4c968dc35825ac93f2ef0d82b6f.zip
dev-ruby/elasticsearch: add 8.15.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/elasticsearch/Manifest1
-rw-r--r--dev-ruby/elasticsearch/elasticsearch-8.15.0.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-ruby/elasticsearch/Manifest b/dev-ruby/elasticsearch/Manifest
index 9449e14a4b43..b75213002355 100644
--- a/dev-ruby/elasticsearch/Manifest
+++ b/dev-ruby/elasticsearch/Manifest
@@ -3,3 +3,4 @@ DIST elasticsearch-ruby-7.17.11.tar.gz 1033022 BLAKE2B 77fb6b37d447af88a6b093bf3
DIST elasticsearch-ruby-8.12.2.tar.gz 1908814 BLAKE2B f3caffe7336a63547ba0d44a3239fb6b71ed7fb46b1136114a87e7e5f69608d69b14d12f568b6e945db0917a6913a10407cf7cae3137605adaaac5fb7fd9439b SHA512 08fe791ee20cbe9f6ad9aee1b7d9c02813895add4bb0ff7b4e063051b42e62e037d71217521f6a9cb0076c51e8f7160bad52798741435164451806932488d17c
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
diff --git a/dev-ruby/elasticsearch/elasticsearch-8.15.0.ebuild b/dev-ruby/elasticsearch/elasticsearch-8.15.0.ebuild
new file mode 100644
index 000000000000..28b77e676fba
--- /dev/null
+++ b/dev-ruby/elasticsearch/elasticsearch-8.15.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
+}