summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2017-05-09 09:27:19 +0200
committerMassimiliano Torromeo2017-05-09 09:27:19 +0200
commit6b75122323b8925d08be2b7ecbe10ba01ef95b26 (patch)
treea88b9c13734cb9c0a551fb759a2034f19c7c166b
parentca875590f36b28a13aef7674d59bf4f75e4cfd02 (diff)
downloadaur-6b75122323b8925d08be2b7ecbe10ba01ef95b26.tar.gz
Patched for vagrant 1.9.4
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD18
-rw-r--r--nokogiri-version.patch13
3 files changed, 34 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f2e0e585d30..a7f5897a6a7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sat Apr 29 18:11:32 UTC 2017
+# Tue May 9 07:26:44 UTC 2017
pkgbase = vagrant-libvirt
pkgdesc = libvirt provider plugin for Vagrant
pkgver = 0.0.40
@@ -19,7 +19,8 @@ pkgbase = vagrant-libvirt
noextract = fog-core-1.43.0.gem
noextract = ruby-libvirt-0.7.0.gem
noextract = vagrant-libvirt-0.0.40.gem
- source = https://rubygems.org/downloads/vagrant-libvirt-0.0.40.gem
+ source = https://github.com/vagrant-libvirt/vagrant-libvirt/archive/0.0.40/vagrant-libvirt-0.0.40.tar.gz
+ source = nokogiri-version.patch
source = https://rubygems.org/downloads/ruby-libvirt-0.7.0.gem
source = https://rubygems.org/downloads/fog-core-1.43.0.gem
source = https://rubygems.org/downloads/fog-libvirt-0.3.0.gem
@@ -27,7 +28,8 @@ pkgbase = vagrant-libvirt
source = https://rubygems.org/downloads/fog-xml-0.1.2.gem
source = https://rubygems.org/downloads/excon-0.54.0.gem
source = https://rubygems.org/downloads/formatador-0.2.5.gem
- sha256sums = 00f1d77aa110b82484a92710674ff07f227d2eeb3e41747f596ff1c326fb7b0f
+ sha256sums = 9baba0c338c89acd9d0e594467ba9c8eef1d07039bb6da4a11e432e934b288a3
+ sha256sums = 6fde2ec924f84ad5d3b8846d54d9dfd66215d1a10a7383672ee34d5dd78ed8f5
sha256sums = 61f1261500dd18ea42452a7a69dce8606057e9c1143d1224201d8c29db0bc703
sha256sums = 866b816e7516d6787bc074fcec8bb530ebf196685fee03cf56a69ecd852e8229
sha256sums = 079bf3f4b03c6cde89d88256fed06c855680eba614ff8cf4674e033414031191
diff --git a/PKGBUILD b/PKGBUILD
index d21572b942e..7174c59eb06 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,9 @@ arch=(i686 x86_64)
url="https://github.com/vagrant-libvirt/vagrant-libvirt"
license=("MIT")
depends=("vagrant" "libvirt" "openssl-1.0")
-source=("https://rubygems.org/downloads/vagrant-libvirt-$pkgver.gem"
+# "https://rubygems.org/downloads/vagrant-libvirt-$pkgver.gem"
+source=("https://github.com/vagrant-libvirt/vagrant-libvirt/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+ "nokogiri-version.patch"
"https://rubygems.org/downloads/ruby-libvirt-$_libvirtver.gem"
"https://rubygems.org/downloads/fog-core-$_fogcorever.gem"
"https://rubygems.org/downloads/fog-libvirt-$_foglibvirtver.gem"
@@ -31,7 +33,8 @@ noextract=("formatador-$_formatadorver.gem"
"fog-core-$_fogcorever.gem"
"ruby-libvirt-$_libvirtver.gem"
"vagrant-libvirt-$pkgver.gem")
-sha256sums=('00f1d77aa110b82484a92710674ff07f227d2eeb3e41747f596ff1c326fb7b0f'
+sha256sums=('9baba0c338c89acd9d0e594467ba9c8eef1d07039bb6da4a11e432e934b288a3'
+ '6fde2ec924f84ad5d3b8846d54d9dfd66215d1a10a7383672ee34d5dd78ed8f5'
'61f1261500dd18ea42452a7a69dce8606057e9c1143d1224201d8c29db0bc703'
'866b816e7516d6787bc074fcec8bb530ebf196685fee03cf56a69ecd852e8229'
'079bf3f4b03c6cde89d88256fed06c855680eba614ff8cf4674e033414031191'
@@ -40,8 +43,19 @@ sha256sums=('00f1d77aa110b82484a92710674ff07f227d2eeb3e41747f596ff1c326fb7b0f'
'a32d6e509dd99b9b201c4d3a50b08e4ea7279dfc99bc05332799a00d92368b48'
'80821869ddacb79e72870ff4bb1531efacd278c04f2df26bc6b4529ee13582bd')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i "$srcdir/nokogiri-version.patch"
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ /opt/vagrant/embedded/bin/gem build vagrant-libvirt.gemspec
+}
+
package() {
cd "$srcdir"
+ mv $pkgname-$pkgver/$pkgname-$pkgver.gem .
export CONFIGURE_ARGS="with-ldflags='-L/opt/vagrant/embedded/lib -l:libruby.so.2.2' with-libvirt-include=/usr/include with-libvirt-lib=/usr/lib"
export GEM_HOME=/opt/vagrant/embedded/gems
diff --git a/nokogiri-version.patch b/nokogiri-version.patch
new file mode 100644
index 00000000000..9830687b2af
--- /dev/null
+++ b/nokogiri-version.patch
@@ -0,0 +1,13 @@
+diff --git a/vagrant-libvirt.gemspec b/vagrant-libvirt.gemspec
+index c975df6..ca61bda 100644
+--- a/vagrant-libvirt.gemspec
++++ b/vagrant-libvirt.gemspec
+@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
+ gem.add_development_dependency "rspec-mocks", "~> 2.14.0"
+
+ gem.add_runtime_dependency 'fog-libvirt', '>= 0.3.0'
+- gem.add_runtime_dependency 'nokogiri', '~> 1.6.0'
++ gem.add_runtime_dependency 'nokogiri', '~> 1.7.1'
+ gem.add_runtime_dependency 'fog-core', '~> 1.43.0'
+
+ gem.add_development_dependency 'rake'