From bda20854519148bd17e4396523e95c1aaa76d1e3 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Tue, 28 Feb 2017 06:59:16 +0100 Subject: [PATCH] dev-ruby/net-ssh: add 4.1.0 Add sodium USE flag to use libsodium for Ed25519 support. Drop ppc, ppc64, x86 due to new dependencies, bug 611168 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- dev-ruby/net-ssh/Manifest | 1 + dev-ruby/net-ssh/metadata.xml | 5 ++++ dev-ruby/net-ssh/net-ssh-4.1.0.ebuild | 36 +++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 dev-ruby/net-ssh/net-ssh-4.1.0.ebuild diff --git a/dev-ruby/net-ssh/Manifest b/dev-ruby/net-ssh/Manifest index 2e0691f65837..910a9cbf4758 100644 --- a/dev-ruby/net-ssh/Manifest +++ b/dev-ruby/net-ssh/Manifest @@ -1,2 +1,3 @@ DIST net-ssh-git-2.10.0.tgz 172885 SHA256 ef063f3f967ec614df49acd74ede7694124f7ffc28c20c7434ac3841c181429a SHA512 f66db6465667baf0c253868cc15aab3261675a8c15ca4b244c3cd587ae5e8b7a273959b97d5fc498ff1b19e1f06f51ea571573d243366a59ef56faf41c2ae347 WHIRLPOOL 1460082033e0cef7dc6ddb2a645943039c0619573701c25fd6e0f784b596b8010142eef295e7df84a30f4239c8da743c500571ed557081b72d5a0212ffb8e9d0 DIST net-ssh-git-3.2.0.tgz 178267 SHA256 656c44973dc640556d283392db123a89d63455a299e78cb67fed274fee4d0de2 SHA512 2c161e096515e2c9f6fe8ca11725b7b6a92ed1234b591714bfcce5b258a38bf3631fc552b1ef029dd27ba123cc82fee8f2431d61035f1ff99102ecdf26992d5c WHIRLPOOL 999c9b2db40f6c50a7a6cf44efceabce2b93c32ac9be274fd459f2350126f9a5b4b1ed1d1385c7693fcb8c71eef77895b27f60059df607e5a3223084ffb5f803 +DIST net-ssh-git-4.1.0.tgz 194968 SHA256 b9b6ed5dea2132acf30e76a0effb3843f827742fa2573268742508f27498eed7 SHA512 48ca2a9f26b1dd25ce6ce026eacac73d6032ee4ac8f33f03dc700321f4fa4e2ea397d657db190a85c309c6d80be575218cf36f23cf214d7b1efee4f7d8e6255e WHIRLPOOL 4b0ad559af445de9e3340f94fa20140cb99ea046eb0bd53061a0c6c55f651b109e21d4122d92f7c307150aa0824a3842cac09cd515a1481bff7bbf0b8941895c diff --git a/dev-ruby/net-ssh/metadata.xml b/dev-ruby/net-ssh/metadata.xml index 9a783e215796..63fa6ab3a042 100644 --- a/dev-ruby/net-ssh/metadata.xml +++ b/dev-ruby/net-ssh/metadata.xml @@ -8,4 +8,9 @@ net-ssh/net-ssh + + + Use dev-libs/libsodium via dev-ruby/rbnacl for Ed25519 support. + + diff --git a/dev-ruby/net-ssh/net-ssh-4.1.0.ebuild b/dev-ruby/net-ssh/net-ssh-4.1.0.ebuild new file mode 100644 index 000000000000..0218aec0df4d --- /dev/null +++ b/dev-ruby/net-ssh/net-ssh-4.1.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby22 ruby23" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGES.txt README.rdoc THANKS.txt" +RUBY_FAKEGEM_EXTRAINSTALL="support" + +inherit ruby-fakegem + +DESCRIPTION="Non-interactive SSH processing in pure Ruby" +HOMEPAGE="https://github.com/net-ssh/net-ssh" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> net-ssh-git-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="4" +KEYWORDS="~amd64" +IUSE="sodium test" + +ruby_add_rdepend "virtual/ruby-ssl sodium? ( dev-ruby/rbnacl dev-ruby/bcrypt_pbkdf )" +ruby_add_bdepend "test? ( dev-ruby/test-unit:2 >=dev-ruby/mocha-0.13 )" + +all_ruby_prepare() { + # Don't use a ruby-bundled version of libsodium + sed -i -e '/rbnacl\/libsodium/ s:^:#:' lib/net/ssh/authentication/ed25519.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test test/test_all.rb || die "Tests failed." +} -- 2.26.2