Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/protobuf-cucumber/
Date: Sun, 25 Jul 2021 08:52:06
Message-Id: 1627203118.21a71c44ead244277e10c782292531e1aa90d94f.graaff@gentoo
1 commit: 21a71c44ead244277e10c782292531e1aa90d94f
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 25 08:51:45 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 25 08:51:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21a71c44
7
8 dev-util/protobuf-cucumber: fix dependencies
9
10 Declare runtime dependencies as such, and add missing
11 test dependencies.
12
13 Closes: https://bugs.gentoo.org/743091
14 Package-Manager: Portage-3.0.20, Repoman-3.0.2
15 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
16
17 .../protobuf-cucumber-3.10.8-r1.ebuild | 39 ++++++++++++++++++++++
18 1 file changed, 39 insertions(+)
19
20 diff --git a/dev-util/protobuf-cucumber/protobuf-cucumber-3.10.8-r1.ebuild b/dev-util/protobuf-cucumber/protobuf-cucumber-3.10.8-r1.ebuild
21 new file mode 100644
22 index 00000000000..ee30208714d
23 --- /dev/null
24 +++ b/dev-util/protobuf-cucumber/protobuf-cucumber-3.10.8-r1.ebuild
25 @@ -0,0 +1,39 @@
26 +# Copyright 1999-2021 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=8
30 +USE_RUBY="ruby26 ruby27"
31 +
32 +RUBY_FAKEGEM_EXTRADOC="README.md"
33 +
34 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
35 +
36 +inherit ruby-fakegem
37 +
38 +DESCRIPTION="Google Protocol Buffers serialization and RPC implementation for Ruby"
39 +HOMEPAGE="https://github.com/ruby-protobuf/protobuf"
40 +
41 +LICENSE="MIT"
42 +SLOT="$(ver_cut 1)"
43 +KEYWORDS="~amd64 ~arm"
44 +IUSE=""
45 +
46 +ruby_add_rdepend "
47 + >=dev-ruby/activesupport-3.2:*
48 + dev-ruby/middleware
49 + dev-ruby/thor:*
50 + dev-ruby/thread_safe
51 +"
52 +
53 +ruby_add_bdepend "test? (
54 + dev-ruby/timecop
55 +)"
56 +
57 +all_ruby_prepare() {
58 + sed -i -e '/\(bundler\|pry\)/I s:^:#:' Rakefile spec/spec_helper.rb || die
59 +
60 + # Avoid unpackaged optional dependency
61 + rm -f spec/lib/protobuf/rpc/connectors/{ping,zmq}_spec.rb spec/functional/zmq_server_spec.rb || die
62 + rm -rf spec/lib/protobuf/rpc/servers/zmq || die
63 + sed -i -e '/context .zmq/,/^ end/ s:^:#:' spec/lib/protobuf/cli_spec.rb || die
64 +}