summaryrefslogtreecommitdiff
path: root/dev-util/protobuf-cucumber/protobuf-cucumber-3.10.8-r1.ebuild
blob: 52f124e5f5fdcd7dc8e9b8b73c955136dfb02682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
USE_RUBY="ruby26 ruby27"

RUBY_FAKEGEM_EXTRADOC="README.md"

RUBY_FAKEGEM_RECIPE_TEST="rspec3"

inherit ruby-fakegem

DESCRIPTION="Google Protocol Buffers serialization and RPC implementation for Ruby"
HOMEPAGE="https://github.com/ruby-protobuf/protobuf"

LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE=""

ruby_add_rdepend "
	>=dev-ruby/activesupport-3.2:*
	dev-ruby/middleware
	dev-ruby/thor:*
	dev-ruby/thread_safe
"

ruby_add_bdepend "test? (
	dev-ruby/timecop
)"

all_ruby_prepare() {
	sed -i -e '/\(bundler\|pry\)/I s:^:#:' Rakefile spec/spec_helper.rb || die

	# Avoid unpackaged optional dependency
	rm -f spec/lib/protobuf/rpc/connectors/{ping,zmq}_spec.rb spec/functional/zmq_server_spec.rb || die
	rm -rf spec/lib/protobuf/rpc/servers/zmq || die
	sed -i -e '/context .zmq/,/^      end/ s:^:#:' spec/lib/protobuf/cli_spec.rb || die
}