summaryrefslogtreecommitdiff
blob: e488b15b070c09e0a533df31a20e1f7c0aa09bd9 (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
40
41
42
43
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-sftp/net-sftp-2.0.5-r1.ebuild,v 1.2 2013/04/30 12:30:41 ago Exp $

EAPI=4
USE_RUBY="ruby18 ruby19 jruby"

RUBY_FAKEGEM_TASK_DOC="doc"

RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.rdoc"

inherit ruby-fakegem

DESCRIPTION="SFTP in pure Ruby"
HOMEPAGE="http://net-ssh.rubyforge.org/"

LICENSE="GPL-2"
SLOT="2"
KEYWORDS="amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE=""

ruby_add_rdepend ">=dev-ruby/net-ssh-2.0.17-r1"

ruby_add_bdepend "
	doc? ( dev-ruby/echoe )
	test? (
		dev-ruby/echoe
		dev-ruby/mocha
	)"

each_ruby_test() {
	case ${RUBY} in
		*ruby19)
			each_fakegem_test
			;;
		*)
			# Ignore tests since they hang, mostl likely due to bad
			# interaction with net-ssh:
			# https://github.com/net-ssh/net-sftp/issues/16 This seems
			# fixed in newer net-ssh versions but these are ruby19 only.
			;;
	esac
}