File: remove-git-in-gemspec.patch

package info (click to toggle)
ruby-ffi 1.12.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,652 kB
  • sloc: ruby: 8,078; ansic: 7,157; xml: 151; sh: 51; makefile: 14
file content (25 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Remove git in gemspec
 git is not used in debian build system
--- a/ffi.gemspec
+++ b/ffi.gemspec
@@ -16,16 +16,16 @@
     s.metadata['source_code_uri'] = 'https://github.com/ffi/ffi/'
     s.metadata['mailing_list_uri'] = 'http://groups.google.com/group/ruby-ffi'
   end
-  s.files = `git ls-files -z`.split("\x0").reject do |f|
-    f =~ /^(bench|gen|libtest|nbproject|spec)/
+  s.files = Dir.glob('**/**/*').reject do |f|
+    f =~ /^(bench|gen|libtest|nbproject|spec|debian)/
   end
 
   # Add libffi git files
-  lfs = `git --git-dir ext/ffi_c/libffi/.git ls-files -z`.split("\x0")
+  lfs = Dir.glob('ext/ffi_c/libffi/*')
   # 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")
+  lfs += Dir.glob('ext/ffi_c/libffi/*.am')
   s.files += lfs.map do |f|
     File.join("ext/ffi_c/libffi", f)
   end