From c095148cdb07ac5a0291f1a42ce026649a61aff8 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 23 Feb 2018 14:59:31 +0100 Subject: community/ruby-ffi: upgrade to 1.9.22 --- community/ruby-ffi/APKBUILD | 10 ++++++---- community/ruby-ffi/gemspec.patch | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 community/ruby-ffi/gemspec.patch (limited to 'community/ruby-ffi') diff --git a/community/ruby-ffi/APKBUILD b/community/ruby-ffi/APKBUILD index 85843e954e..679eff63e4 100644 --- a/community/ruby-ffi/APKBUILD +++ b/community/ruby-ffi/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Jakub Jirutka pkgname=ruby-ffi _gemname=ffi -pkgver=1.9.21 +pkgver=1.9.22 pkgrel=0 pkgdesc="Ruby FFI library" url="https://github.com/ffi/ffi" @@ -10,7 +10,8 @@ arch="all" license="BSD" makedepends="libffi-dev ruby ruby-dev" install="$pkgname.post-install" -source="$pkgname-$pkgver.tar.gz::https://github.com/ffi/$_gemname/archive/$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/ffi/$_gemname/archive/$pkgver.tar.gz + gemspec.patch" builddir="$srcdir/$_gemname-$pkgver" options="!check" # does not work with PaX (it'd need paxmark -m /usr/bin/ruby) @@ -61,8 +62,9 @@ package() { find "$gemdir"/extensions/ -name mkmf.log -delete cd "$gemdir"/gems/$_gemname-$pkgver - rm -r ext/ gen/ libtest/ spec/ lib/*.so Rakefile *.md || true + rm -rf ext/ lib/*.so find lib/ffi/platform/* -prune ! -name "$carch-linux" -exec rm -rf {} + } -sha512sums="c3049baa2aada3deb1d5a029ce659f802cb0533e2fa6ab6ccc3a45abda4a97fde7964dde314f45e93e4ec3e73f66aa53ff8f7a397a12c70e191f4ddd0b3ed063 ruby-ffi-1.9.21.tar.gz" +sha512sums="0e2159133629f505de233fa44a004ec74196488540552c8036640c7dd770fadf2b90987096a48ca796ad98436dd63998bd4c7f8b01c871755be49b1ef6045642 ruby-ffi-1.9.22.tar.gz +17c0cd281d0b471ea5e065dcfe027ca15c698c1393b3def3b59729c059d68b5a8969ad3cc0c88545ffbdb202a8750b219aa6cce9308a43e42845989cd650551a gemspec.patch" diff --git a/community/ruby-ffi/gemspec.patch b/community/ruby-ffi/gemspec.patch new file mode 100644 index 0000000000..0f71d47af4 --- /dev/null +++ b/community/ruby-ffi/gemspec.patch @@ -0,0 +1,23 @@ +--- a/ffi.gemspec ++++ b/ffi.gemspec +@@ -8,19 +8,7 @@ + s.homepage = 'http://wiki.github.com/ffi/ffi' + s.summary = 'Ruby FFI' + s.description = 'Ruby FFI library' +- s.files = `git ls-files -z`.split("\x0").reject do |f| +- f =~ /^(bench|gen|libtest|nbproject|spec)/ +- end +- +- # Add libffi git files +- lfs = `git --git-dir ext/ffi_c/libffi/.git ls-files -z`.split("\x0") +- # Add autoconf generated files of libffi +- lfs += %w[ configure config.guess config.sub install-sh ltmain.sh missing fficonfig.h.in ] +- # Add automake generated files of libffi +- lfs += `git --git-dir ext/ffi_c/libffi/.git ls-files -z *.am */*.am`.gsub(".am\0", ".in\0").split("\x0") +- s.files += lfs.map do |f| +- File.join("ext/ffi_c/libffi", f) +- end ++ s.files = Dir['lib/**/*', 'ext/**/*'] + + s.extensions << 'ext/ffi_c/extconf.rb' + s.has_rdoc = false -- cgit v1.2.3