New package: vagrant-1.7.4

This commit is contained in:
Andrea Brancaleoni 2015-07-26 20:38:19 +02:00
parent 6eb359ff14
commit 5422bba141
3 changed files with 83 additions and 0 deletions

2
srcpkgs/vagrant/files/vagrant Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
GEM_PATH=/usr/lib/vagrant GEM_HOME="$GEM_PATH" /usr/lib/vagrant/bin/vagrant "$@"

View file

@ -0,0 +1,24 @@
From: Antonio Terceiro <terceiro@debian.org>
Date: Sat, 11 Oct 2014 16:54:58 -0300
Subject: bin/vagrant: silence warning about installer
---
bin/vagrant | 5 -----
1 file changed, 5 deletions(-)
diff --git a/bin/vagrant b/bin/vagrant
index 4fc6b96..f62ba79 100755
--- a/bin/vagrant
+++ b/bin/vagrant
@@ -164,11 +164,6 @@ begin
logger.debug("Creating Vagrant environment")
env = Vagrant::Environment.new(opts)
- if !Vagrant.in_installer? && !Vagrant.very_quiet?
- # If we're not in the installer, warn.
- env.ui.warn(I18n.t("vagrant.general.not_in_installer") + "\n", prefix: false)
- end
-
begin
# Execute the CLI interface, and exit with the proper error code
exit_status = env.cli(argv)

57
srcpkgs/vagrant/template Normal file
View file

@ -0,0 +1,57 @@
# Template file for 'vagrant'
pkgname=vagrant
version=1.7.4
revision=1
hostmakedepends="ruby"
makedepends="ruby-devel zlib-devel"
depends="openssh curl"
short_desc="Tool for building and distributing development environments"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="MIT"
homepage="https://www.vagrantup.com/"
distfiles="https://github.com/mitchellh/$pkgname/archive/v$version.tar.gz"
checksum=76c52baab71bbaea2fbc9f6a6874b12f3abe362c20e61c954367f70f15f90df6
nocross=yes
patch_args="-p1"
only_for_archs="i686 x86_64"
do_build() {
gem build $pkgname.gemspec
}
do_install() {
GEM_PATH=$DESTDIR/usr/lib/$pkgname GEM_HOME="$GEM_PATH" gem install $pkgname-$version.gem --no-ri --no-rdoc
find ${DESTDIR} -type f -name \*.a -delete
find ${DESTDIR} -type f -name \*.log -delete
find ${DESTDIR} -type f -name \*.c -delete
find ${DESTDIR} -type f -name \*.o -delete
find ${DESTDIR} -type f -name \*.S -delete
find ${DESTDIR} -type f -name \*.css -delete
find ${DESTDIR} -type f -name \*.html -delete
find ${DESTDIR} -type f -name \*.rhtml -delete
find ${DESTDIR} -type f -name \*.erb -delete
find ${DESTDIR} -type f -name \*.md -delete
find ${DESTDIR} -type f -name \*.h -delete
find ${DESTDIR} -type f -name \*.mk -delete
find ${DESTDIR} -type f -name \*.am -delete
find ${DESTDIR} -type f -name \*.in -delete
find ${DESTDIR} -type f -name \*akefile -delete
find ${DESTDIR} -type f -name Gemfile -delete
find ${DESTDIR} -type f -name LICENSE -delete
find ${DESTDIR} -type f -name .\* -delete
find ${DESTDIR} -type f -name \*.rdoc -delete
find ${DESTDIR} -type d -name ext -print0|xargs -0 rm -r --
find ${DESTDIR} -type d -name test -print0|xargs -0 rm -r --
find ${DESTDIR} -type d -name examples -print0|xargs -0 rm -r --
find ${DESTDIR} -type d -name doc -print0|xargs -0 rm -r --
rm -r ${DESTDIR}/usr/lib/$pkgname/cache
vmkdir usr/bin
vmkdir usr/share/bash-completion/completions
vbin $FILESDIR/$pkgname
ln -sf /usr/lib/$pkgname/gems/$pkgname-$version/contrib/bash/completion.sh \
$DESTDIR/usr/share/bash-completion/completions/$pkgname
vlicense LICENSE
}