aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-ffi/gemspec.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-ffi/gemspec.patch')
-rw-r--r--community/ruby-ffi/gemspec.patch23
1 files changed, 23 insertions, 0 deletions
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