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