From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6B249158064 for ; Mon, 6 May 2024 12:26:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8DD82BC014; Mon, 6 May 2024 12:26:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 844E42BC014 for ; Mon, 6 May 2024 12:26:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8DFB33430D1 for ; Mon, 6 May 2024 12:26:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 01CD31779 for ; Mon, 6 May 2024 12:26:34 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1714998356.7ce5ad8ad37489464f0b6ff42f34812d53ece8c4.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/elasticsearch/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/elasticsearch/elasticsearch-8.13.0-r1.ebuild X-VCS-Directories: dev-ruby/elasticsearch/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 7ce5ad8ad37489464f0b6ff42f34812d53ece8c4 X-VCS-Branch: master Date: Mon, 6 May 2024 12:26:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b26658a1-bf0b-4a7c-abd5-fae5f62f0dba X-Archives-Hash: 499b16eb7a02af9a27d5c5e6d168e56e commit: 7ce5ad8ad37489464f0b6ff42f34812d53ece8c4 Author: Hans de Graaff gentoo org> AuthorDate: Mon May 6 12:25:56 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon May 6 12:25:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ce5ad8a dev-ruby/elasticsearch: fix elastic-transport dependency Signed-off-by: Hans de Graaff gentoo.org> .../elasticsearch/elasticsearch-8.13.0-r1.ebuild | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/dev-ruby/elasticsearch/elasticsearch-8.13.0-r1.ebuild b/dev-ruby/elasticsearch/elasticsearch-8.13.0-r1.ebuild new file mode 100644 index 000000000000..6732c33df89c --- /dev/null +++ b/dev-ruby/elasticsearch/elasticsearch-8.13.0-r1.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" + +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:1.0 + 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 +}