Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/vagrant/
Date: Tue, 28 Jan 2020 19:59:12
Message-Id: 1580241541.24361253d3594b77b418096c2542c3ea1ebc3d69.gyakovlev@gentoo
1 commit: 24361253d3594b77b418096c2542c3ea1ebc3d69
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 28 19:58:46 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 28 19:59:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24361253
7
8 app-emulation/vagrant: bump to 2.2.7
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 app-emulation/vagrant/Manifest | 1 +
14 app-emulation/vagrant/vagrant-2.2.7.ebuild | 90 ++++++++++++++++++++++++++++++
15 2 files changed, 91 insertions(+)
16
17 diff --git a/app-emulation/vagrant/Manifest b/app-emulation/vagrant/Manifest
18 index b063bb21fc8..1f6359608f6 100644
19 --- a/app-emulation/vagrant/Manifest
20 +++ b/app-emulation/vagrant/Manifest
21 @@ -1 +1,2 @@
22 DIST vagrant-2.2.6.tar.gz 1285530 BLAKE2B 802537b56429366ab0dab08d5490f2a5c1ec3810e9c04573ccd11f27078fc375f092ed70b27a7846813cbde5fdce0aa90399eba07e19a9d6ae7e11cb47204efe SHA512 6d8b5b1d4e5cc482404cf4c59e1b7cf9502a9819569b5098e44874733cee706f26adb4ac7994abe7e3307ca69d3003e2604dc859ce460c53d766d78b8d9fe22a
23 +DIST vagrant-2.2.7.tar.gz 2173893 BLAKE2B bf905cb25a905e4fb79ce9c1fb59ad5520b5176d5681dfdc22855ca0a7520535346d2aebffe47162a1f8ca008083c94426e9de92b6d92de4373c654784605c7e SHA512 3455b74c8a867ab37ca9873187a98cdb80feb22a400c4e9f2266897da815815aaefbe0c166172b1c1dbd66aa49ccb1201dcbf904fd883ad34218d694e20d7f87
24
25 diff --git a/app-emulation/vagrant/vagrant-2.2.7.ebuild b/app-emulation/vagrant/vagrant-2.2.7.ebuild
26 new file mode 100644
27 index 00000000000..d81979d0d04
28 --- /dev/null
29 +++ b/app-emulation/vagrant/vagrant-2.2.7.ebuild
30 @@ -0,0 +1,90 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +USE_RUBY="ruby24 ruby25 ruby26"
36 +
37 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
38 +RUBY_FAKEGEM_GEMSPEC="vagrant.gemspec"
39 +RUBY_FAKEGEM_EXTRAINSTALL="keys plugins templates version.txt"
40 +RUBY_FAKEGEM_TASK_DOC=""
41 +
42 +inherit bash-completion-r1 ruby-fakegem
43 +
44 +DESCRIPTION="A tool for building and distributing development environments"
45 +HOMEPAGE="https://vagrantup.com/"
46 +SRC_URI="https://github.com/hashicorp/vagrant/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +IUSE="+virtualbox"
52 +RESTRICT="test"
53 +
54 +RDEPEND="${RDEPEND}
55 + app-arch/libarchive
56 + net-misc/curl
57 + virtualbox? ( || ( app-emulation/virtualbox app-emulation/virtualbox-bin ) )"
58 +
59 +ruby_add_rdepend "
60 + >=dev-ruby/bcrypt_pbkdf-1.0.0
61 + >=dev-ruby/childprocess-0.6.0
62 + >=dev-ruby/ed25519-1.2.4
63 + >=dev-ruby/erubis-2.7.0
64 + >=dev-ruby/hashicorp-checkpoint-0.1.5
65 + >=dev-ruby/i18n-1.1.1:1
66 + >=dev-ruby/listen-3.1.5
67 + <dev-ruby/log4r-1.1.11
68 + <dev-ruby/mime-types-3:*
69 + >=dev-ruby/net-ssh-5.1.0:*
70 + >=dev-ruby/net-sftp-2.1
71 + >=dev-ruby/net-scp-1.2.0
72 + dev-ruby/rest-client:2
73 + >=dev-ruby/rubyzip-1.3:1
74 + >=dev-ruby/vagrant_cloud-2.0.3
75 +"
76 +
77 +# upstream specifies rake>=12 but it apparently doesn't need something this
78 +# recent. Because vagrant builds fine with rake 10 and because stabilizing rake
79 +# is tricky, we specify a lower dependency requirement here. This way, we'll be
80 +# able to stabilize vagrant sooner.
81 +ruby_add_bdepend "
82 + >=dev-ruby/rake-10.5.0
83 +"
84 +
85 +all_ruby_prepare() {
86 + # remove bundler support
87 + sed -i '/[Bb]undler/d' Rakefile || die
88 + rm Gemfile || die
89 +
90 + # loosen dependencies
91 + sed -e '/hashicorp-checkpoint\|i18n\|listen\|net-ssh\|net-scp\|rake\|childprocess/s/~>/>=/' \
92 + -e '/ruby_dep/s/<=/>=/' \
93 + -i ${PN}.gemspec || die
94 +
95 + # remove windows-specific gems
96 + sed -e '/wdm\|winrm/d' \
97 + -i ${PN}.gemspec || die
98 +
99 + # remove bsd-specific gems
100 + sed -e '/rb-kqueue/d' \
101 + -i ${PN}.gemspec || die
102 +
103 + sed -e "s/@VAGRANT_VERSION@/${PV}/g" "${FILESDIR}/${PN}.in" > "${PN}" || die
104 +}
105 +
106 +all_ruby_install() {
107 + all_fakegem_install
108 +
109 + newbashcomp contrib/bash/completion.sh ${PN}
110 +
111 + # provide executable similar to upstream:
112 + # https://github.com/hashicorp/vagrant-installers/blob/master/substrate/modules/vagrant_installer/templates/vagrant.erb
113 + dobin "${PN}"
114 +
115 + # directory for plugins.json
116 + keepdir /var/lib/vagrant
117 +
118 + insinto /usr/share/vim/vimfiles/syntax/
119 + doins contrib/vim/vagrantfile.vim
120 +}