Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/vagrant/
Date: Thu, 21 Sep 2017 14:51:49
Message-Id: 1506005407.1411589ad05f44a6ec3fd7748c4a58769e7db364.amynka@gentoo
1 commit: 1411589ad05f44a6ec3fd7748c4a58769e7db364
2 Author: Guillaume Seren <guillaumeseren <AT> gmail <DOT> com>
3 AuthorDate: Sat Sep 9 16:58:17 2017 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 21 14:50:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1411589a
7
8 app-emulation/vagrant: add version bump 2.0.0
9
10 Closes:#5673
11 Closes: https://bugs.gentoo.org/630498
12 Gentoo-Bug: 630498
13
14 app-emulation/vagrant/Manifest | 1 +
15 app-emulation/vagrant/vagrant-2.0.0.ebuild | 81 ++++++++++++++++++++++++++++++
16 2 files changed, 82 insertions(+)
17
18 diff --git a/app-emulation/vagrant/Manifest b/app-emulation/vagrant/Manifest
19 index 32e8cdd095b..34dfc7b9412 100644
20 --- a/app-emulation/vagrant/Manifest
21 +++ b/app-emulation/vagrant/Manifest
22 @@ -1,2 +1,3 @@
23 DIST vagrant-1.9.7.tar.gz 1119024 SHA256 194de72442a2d08f6e04fbed8698a99d190a0e7203d35b49e80d4ddfcb71fb1b SHA512 062921070ace7ce93145981b5b768dc9dc447559fc12c52c8da323d1e3523fbff2a8e7afca0e2f751e232aae822c969b5d166b3b0f01a0744ca20c4e4e33567f WHIRLPOOL ef0331781cf6a71dca9eb485943c459a5360f55b1db45b4f23b413b848eeac1700afe3ea51b6dd2e0da1a7c1ba6ad456bd9fcb7a7b3532145e95a38fc997dd99
24 DIST vagrant-1.9.8.tar.gz 1127560 SHA256 59c1d50437d2f50eeae219bc03c90d397fe8d8c974cce7c51b017b8ceeaefb54 SHA512 d22cc0a6800aa5ef84085c750f5ec8729f7b3adefd9a5df1a1fcaf60d1219e781869ede4f57ce4fdeb269224603dfc3a8024545a0250ebd9e144745ce9aa670b WHIRLPOOL d9c199322798e792a895aef03f729b4db8bb5eb3eaab960092d5aa2831032106a9f55ac3957b43378cceea2d27cf53f8ecf6ff38ff54ff2f8c4451c0238029ee
25 +DIST vagrant-2.0.0.tar.gz 1142850 SHA256 c25d3a5f18abdf349047f4d80bb74e6cb526959536e4bef5aa771de9d39cb260 SHA512 ee9059dfd205253d6f978fd225d85eef5a281532a1992bc9382eb713c95a0280d4b6518460106227237ae4e93cf5e2eaf670bd378627c3e9696b0fe9a2427ac1 WHIRLPOOL 8337800f6c5cc88081dc6f8630de60ecba8c851687d14143f34dc41b62cbd67b1e463f7351ecc0e1c764742004fdba389bc33c0bb2a5c043d1fbf6dde352171c
26
27 diff --git a/app-emulation/vagrant/vagrant-2.0.0.ebuild b/app-emulation/vagrant/vagrant-2.0.0.ebuild
28 new file mode 100644
29 index 00000000000..5b4b6f8b77d
30 --- /dev/null
31 +++ b/app-emulation/vagrant/vagrant-2.0.0.ebuild
32 @@ -0,0 +1,81 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="6"
37 +USE_RUBY="ruby22 ruby23"
38 +
39 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
40 +RUBY_FAKEGEM_GEMSPEC="vagrant.gemspec"
41 +RUBY_FAKEGEM_EXTRAINSTALL="keys plugins templates version.txt"
42 +RUBY_FAKEGEM_TASK_DOC=""
43 +
44 +inherit bash-completion-r1 ruby-fakegem
45 +
46 +DESCRIPTION="A tool for building and distributing development environments"
47 +HOMEPAGE="http://vagrantup.com/"
48 +SRC_URI="https://github.com/mitchellh/vagrant/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~amd64"
53 +IUSE="+virtualbox"
54 +
55 +RDEPEND="${RDEPEND}
56 + app-arch/libarchive
57 + net-misc/curl
58 + virtualbox? ( || ( app-emulation/virtualbox app-emulation/virtualbox-bin ) )"
59 +
60 +ruby_add_rdepend "
61 + >=dev-ruby/childprocess-0.6.0
62 + >=dev-ruby/erubis-2.7.0
63 + <dev-ruby/i18n-0.8.0:*
64 + >=dev-ruby/listen-3.1.5
65 + >=dev-ruby/hashicorp-checkpoint-0.1.1
66 + >=dev-ruby/log4r-1.1.9 <dev-ruby/log4r-1.1.11
67 + >=dev-ruby/net-ssh-4.1.0:*
68 + >=dev-ruby/net-sftp-2.1
69 + >=dev-ruby/net-scp-1.2.0
70 + || ( dev-ruby/rest-client:2 >=dev-ruby/rest-client-1.6.0:0 )
71 + >=dev-ruby/nokogiri-1.7.1
72 + <dev-ruby/mime-types-3:*
73 +"
74 +
75 +ruby_add_bdepend "
76 + >=dev-ruby/rake-12.0.0
77 +"
78 +
79 +all_ruby_prepare() {
80 + # remove bundler support
81 + sed -i '/[Bb]undler/d' Rakefile || die
82 + rm Gemfile || die
83 +
84 + # loosen dependencies
85 + sed -e '/hashicorp-checkpoint\|listen\|net-ssh\|net-scp\|rake\|childprocess/s/~>/>=/' \
86 + -e '/ruby_dep/s/<=/>=/' \
87 + -i ${PN}.gemspec || die
88 +
89 + # remove windows-specific gems
90 + sed -e '/wdm\|winrm/d' \
91 + -i ${PN}.gemspec || die
92 +
93 + # remove bsd-specific gems
94 + sed -e '/rb-kqueue/d' \
95 + -i ${PN}.gemspec || die
96 +
97 + # disable embedded CA certs and use system ones
98 + eapply "${FILESDIR}/${PN}-1.8.1-disable-embedded-cacert.patch"
99 +
100 + sed -e "s/@VAGRANT_VERSION@/${PV}/g" "${FILESDIR}/${PN}.in" > "${PN}" || die
101 +}
102 +
103 +all_ruby_install() {
104 + newbashcomp contrib/bash/completion.sh ${PN}
105 + all_fakegem_install
106 +
107 + # provide executable similar to upstream:
108 + # https://github.com/mitchellh/vagrant-installers/blob/master/substrate/modules/vagrant_installer/templates/vagrant.erb
109 + dobin "${PN}"
110 +
111 + # directory for plugins.json
112 + dodir /var/lib/vagrant
113 +}