Diff capistrano-2.15.5-r2 with a capistrano-3.11.0

/usr/portage/dev-ruby/capistrano/capistrano-3.11.0.ebuild 2019-09-18 17:09:00.000000000 +0300
1 1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
5
USE_RUBY="ruby23 ruby24 ruby25"
4
EAPI=6
5
USE_RUBY="ruby23 ruby24 ruby25 ruby26"
6 6

  
7
RUBY_FAKEGEM_TASK_DOC=""
8
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
7
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
9 8

  
10
RUBY_FAKEGEM_BINWRAP=""
9
RUBY_FAKEGEM_TASK_DOC=""
10
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
11 11

  
12 12
inherit ruby-fakegem
13 13

  
14 14
DESCRIPTION="A distributed application deployment system"
15
HOMEPAGE="http://capistranorb.com/"
15
HOMEPAGE="https://capistranorb.com/"
16 16

  
17 17
LICENSE="MIT"
18
SLOT="2"
19
KEYWORDS="amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
18
SLOT="3"
19
KEYWORDS="amd64"
20 20
IUSE=""
21 21

  
22 22
ruby_add_rdepend "
23
	>=dev-ruby/net-ssh-2.0.14:*
24
	>=dev-ruby/net-sftp-2.0.2
25
	>=dev-ruby/net-scp-1.0.2
26
	>=dev-ruby/net-ssh-gateway-1.1.0:*
27
	>=dev-ruby/highline-1.2.7"
23
	>=dev-ruby/airbrussh-1.0.0
24
	>=dev-ruby/sshkit-1.9:0
25
	>=dev-ruby/rake-10.0.0
26
	dev-ruby/i18n:*
27
	!!<dev-ruby/capistrano-2.15.5-r2"
28 28
ruby_add_bdepend "
29
	test? (	dev-ruby/mocha:0.14 )"
30

  
31
RUBY_PATCHES=( ${P}-sudo-cleanup.patch )
29
	test? (	dev-ruby/mocha )"
32 30

  
33 31
all_ruby_prepare() {
34
	rm Gemfile || die
35
	sed -i -e '/[Bb]undler/d' Rakefile test/utils.rb || die
36
	sed -i -e '/pry/ s:^:#:' -e '4igem "mocha", "~>0.14.0"' test/utils.rb || die
37

  
38
	# Avoid copy strategy tests since these fail in some cases due to
39
	# complicated (aka unknown) interactions with other parts of the
40
	# test suite.
41
	rm test/deploy/strategy/copy_test.rb || die
42
}
43

  
44
all_ruby_install() {
45
	all_fakegem_install
32
	# Avoid specs that depend on capistrano already being installed
33
	rm -f spec/lib/capistrano/doctor/gems_doctor_spec.rb || die
46 34

  
47
	ruby_fakegem_binwrapper cap /usr/bin/cap-2 'gem "capistrano", "~>2.0"'
35
	# Avoid specs that require a TTY
36
	sed -i -e '/asking for a variable/,/^  end/ s:^:#:' spec/integration/dsl_spec.rb || die
37
	rm -f spec/lib/capistrano/configuration/question_spec.rb || die
48 38
}
Thank you!