-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffi.gemspec
36 lines (33 loc) · 1.4 KB
/
ffi.gemspec
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
26
27
28
29
30
31
32
33
34
35
36
require File.expand_path("../lib/#{File.basename(__FILE__, '.gemspec')}/version", __FILE__)
Gem::Specification.new do |s|
s.name = 'ffi'
s.version = FFI::VERSION
s.author = 'Wayne Meissner'
s.email = '[email protected]'
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.extensions << 'ext/ffi_c/extconf.rb'
s.has_rdoc = false
s.rdoc_options = %w[--exclude=ext/ffi_c/.*\.o$ --exclude=ffi_c\.(bundle|so)$]
s.license = 'BSD-3-Clause'
s.require_paths << 'ext/ffi_c'
s.required_ruby_version = '>= 1.9'
s.add_development_dependency 'rake', '~> 10.1'
s.add_development_dependency 'rake-compiler', '~> 1.0'
s.add_development_dependency 'rake-compiler-dock', '~> 0.6.2'
s.add_development_dependency 'rspec', '~> 2.14.1'
s.add_development_dependency 'rubygems-tasks', "~> 0.2.4"
end