From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-ruby/capistrano/Manifest | 8 ++++ dev-ruby/capistrano/capistrano-2.15.5-r2.ebuild | 48 ++++++++++++++++++++++ dev-ruby/capistrano/capistrano-3.4.1.ebuild | 38 +++++++++++++++++ .../files/capistrano-2.15.5-sudo-cleanup.patch | 12 ++++++ dev-ruby/capistrano/metadata.xml | 12 ++++++ 5 files changed, 118 insertions(+) create mode 100644 dev-ruby/capistrano/Manifest create mode 100644 dev-ruby/capistrano/capistrano-2.15.5-r2.ebuild create mode 100644 dev-ruby/capistrano/capistrano-3.4.1.ebuild create mode 100644 dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch create mode 100644 dev-ruby/capistrano/metadata.xml (limited to 'dev-ruby/capistrano') diff --git a/dev-ruby/capistrano/Manifest b/dev-ruby/capistrano/Manifest new file mode 100644 index 000000000000..3ac1545043e5 --- /dev/null +++ b/dev-ruby/capistrano/Manifest @@ -0,0 +1,8 @@ +AUX capistrano-2.15.5-sudo-cleanup.patch 656 SHA256 1511705245ce1bafc7a37c077e00964320241fe4cdf2e696a5c4547f507489ec SHA512 846f9c25b1c7806d082ec73faa2b5b9d4b6be285a33acf1d98dc36b9eddab54d664d915c3bab1da28fa2d86225fb1619fd746354cd605b8e3e8a5d0a05cfb96f WHIRLPOOL 51b8f0f1e1479558b6211b2e6815160ed1faf3532dedc4925c8e09d9ea65753fc9786ae37e3664185c7beb266d4626a92a149f7a68f3a2ae064c39c2ab23ea84 +DIST capistrano-2.15.5.gem 132096 SHA256 3eb22ec58176918f44a71126b9bb8a1a34ae4efb99835eb72e187d03916604aa SHA512 10168080c7481ec6fc6f918ac90a3b1ce8f2b36f77411375e33cc915b02d5196ab061ac47e767edd724c82cffd1c2ad0a23ba1f0519cf1f2aae5b429167b19ff WHIRLPOOL 452b5977e08762e0f01822734517010228fd3398e6d5e19041483dae9a7f6bfb3d4940b15a20c3a3cd30205f62563c919b3057294cd82ccb99cb96abefcb8136 +DIST capistrano-3.4.1.gem 46080 SHA256 4b820c7ddfbeeee186180a04ffcb0158a4819ab12cf8c9eb6411d07a9fe1e338 SHA512 ef3b8735aa91137234937b5704a74b965be729581e71df9794324303dba60eacb91c66c1b38f8154f315cd4d17f98e8ab6f491cd1634b59b51b320f2244f6ae1 WHIRLPOOL a745c9a6b77996ce12da7d9107ce932620478ee4d3884347f92d622c396c80f9553f6995bb209ec4f517e35a498c5b6f4458f8e4b29e0b556973ff194da418a7 +EBUILD capistrano-2.15.5-r2.ebuild 1242 SHA256 715ac5f56e9a04a605a07ad944cbd937d34bc71766a85eccfa8e2d5a67ab3d80 SHA512 cc943bd80e4d1ac7408fb26c3e63590d891469452f7057c2b52ea2d7eaa68f827aabbc90ec76fac1d66aeaac69ffb398a07f1ed66a829dc2d43cbe6ddd6df7c2 WHIRLPOOL 08ccbf3b618262e80657d3e55968470fa2a2be44cc27c307f8f7dacdd5e7f76877ada03a11e53b3674af82db23298c82330eebde44cca13867c8f2460779f72b +EBUILD capistrano-3.4.1.ebuild 1092 SHA256 81d56311eddc7037dbbd9b97984f1ae9144f77e65cb1322f0dcd351ab76c843a SHA512 7a330bc2593f06a90810871acdaefb3b3f43af1d7085980f00f61f60ae6f8976d5346645fae621cdef7a752069ceb5a06f9ce485351b525826d037bed6712fc4 WHIRLPOOL d3482e75f54d77b1aef4a1f403bcc8f68cc509d8f1f19a4fbf54369e88574dc2a5c86d2099d4fd58085b2493ea5443706abc35e6315a913e769c74d4749fcac0 +MISC ChangeLog 3677 SHA256 e112ca0c01271a8c99b497f52946f19325360e7ace8914d21d15e176dc6d41a6 SHA512 ea5fcbe629751ce6847e424baa2b606e4f9a7827ccef3743cd37304c912603c67fe58dd0dc3eebda48aa86c82a384e13ea0d44dc4e720cb95919e2c5071866d3 WHIRLPOOL 74ee99772da356ec19296683e426f4f634b1d604c4af4ea3b9e16e5d91df738feb11ea774fc0779b6481f71e0cd71f90b6c15eeff80938eac505375002f40028 +MISC ChangeLog-2015 15734 SHA256 9d04a652aca3dd7f5b340c028b94e67b302f212bb67f67860dd1b022cffdf11d SHA512 4b8709eb640cc78e1ed29885ef4ef7f620e38118ff60730a4c2790c4e2572f44bdbf13b3b34e71c05cc7a375fe67f51d2fb4b0ca0d5f2129240ee4baeb168f1a WHIRLPOOL ba29502653a4f4c77a690e1e9d4d03c6dc0d0ec4bc81fefcc712c330ecc2cd0c78c3f3bdedbab0d17ad641766f0a24be1d717fc7f53ad0ea7939b48257c40759 +MISC metadata.xml 395 SHA256 f4e6801aed288aeecd2e57af451a330d31a523074a95770c854c1e153e286985 SHA512 c969db304610c45088a5efac1e694bc7ccfcf0360631fa43fe10f48ea045f6c400ec6cf3faa97e153b95133a1d1e1ebc9fca48c1d3ea1b63f73bb33d5546bc28 WHIRLPOOL 12c257f141ad43013c3c50b88355348b6798f4b84da9fe5f9c8093ce53378c6095c940d9921851cf4e6d0dfb0f64b36453ef58a44aa32432520cffd522dd86fa diff --git a/dev-ruby/capistrano/capistrano-2.15.5-r2.ebuild b/dev-ruby/capistrano/capistrano-2.15.5-r2.ebuild new file mode 100644 index 000000000000..e21143a5f4de --- /dev/null +++ b/dev-ruby/capistrano/capistrano-2.15.5-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="A distributed application deployment system" +HOMEPAGE="http://capistranorb.com/" + +LICENSE="MIT" +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.14 + >=dev-ruby/net-sftp-2.0.2 + >=dev-ruby/net-scp-1.0.2 + >=dev-ruby/net-ssh-gateway-1.1.0 + >=dev-ruby/highline-1.2.7" +ruby_add_bdepend " + test? ( dev-ruby/mocha:0.14 )" + +RUBY_PATCHES=( ${P}-sudo-cleanup.patch ) + +all_ruby_prepare() { + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile test/utils.rb || die + sed -i -e '/pry/ s:^:#:' -e '4igem "mocha", "~>0.14.0"' test/utils.rb || die + + # Avoid copy strategy tests since these fail in some cases due to + # complicated (aka unknown) interactions with other parts of the + # test suite. + rm test/deploy/strategy/copy_test.rb || die +} + +all_ruby_install() { + all_fakegem_install + + ruby_fakegem_binwrapper cap /usr/bin/cap-2 'gem "capistrano", "~>2.0"' +} diff --git a/dev-ruby/capistrano/capistrano-3.4.1.ebuild b/dev-ruby/capistrano/capistrano-3.4.1.ebuild new file mode 100644 index 000000000000..e272053f97be --- /dev/null +++ b/dev-ruby/capistrano/capistrano-3.4.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +inherit ruby-fakegem + +DESCRIPTION="A distributed application deployment system" +HOMEPAGE="http://capistranorb.com/" + +LICENSE="MIT" +SLOT="3" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + >=dev-ruby/sshkit-1.3:0 + >=dev-ruby/rake-10.0.0 + dev-ruby/i18n:* + !!0.14.0"' spec/spec_helper.rb || die +} + +pkg_postinst() { + einfo "Capistrano 3.1 has some breaking changes. Please check the CHANGELOG: http://goo.gl/SxB0lr" + einfo "If you're upgrading Capistrano from 2.x, we recommend to read the upgrade guide: http://goo.gl/4536kB" + einfo "The 'deploy:restart' hook for passenger applications is now in a separate gem called capistrano-passenger. Just add it to your Gemfile and require it in your Capfile." +} diff --git a/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch b/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch new file mode 100644 index 000000000000..cbe68a476fd4 --- /dev/null +++ b/dev-ruby/capistrano/files/capistrano-2.15.5-sudo-cleanup.patch @@ -0,0 +1,12 @@ +diff -ur /usr/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb ./lib/capistrano/recipes/deploy.rb +--- ./lib/capistrano/recipes/deploy.rb 2014-08-13 15:11:31.423773610 +0200 ++++ /usr/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb 2014-05-04 11:40:39.000000000 +0200 +@@ -462,7 +462,7 @@ + DESC + task :cleanup, :except => { :no_release => true } do + count = fetch(:keep_releases, 5).to_i +- try_sudo "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf" ++ run "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf" + end + + desc <<-DESC diff --git a/dev-ruby/capistrano/metadata.xml b/dev-ruby/capistrano/metadata.xml new file mode 100644 index 000000000000..7ce59145bbd9 --- /dev/null +++ b/dev-ruby/capistrano/metadata.xml @@ -0,0 +1,12 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + +Capistrano is a utility and framework for executing commands in parallel on +multiple remote machines, via SSH. + + -- cgit v1.2.3