forked from SciRuby/nmatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nmatrix.gemspec
67 lines (54 loc) · 2.45 KB
/
nmatrix.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'nmatrix/version'
#get files that are used by plugins rather than the main nmatrix gem
plugin_files = []
Dir["nmatrix-*.gemspec"].each do |gemspec_file|
gemspec = eval(File.read(gemspec_file))
plugin_files += gemspec.files
end
plugin_lib_files = plugin_files.select { |file| file.match(/^lib\//) }
Gem::Specification.new do |gem|
gem.name = "nmatrix"
gem.version = NMatrix::VERSION::STRING
gem.summary = "NMatrix is a linear algebra library for Ruby"
gem.description = "NMatrix is a linear algebra library for Ruby, written mostly in C and C++."
gem.homepage = 'http://sciruby.com'
gem.authors = ['John Woods', 'Chris Wailes', 'Aleksey Timin']
gem.email = ['[email protected]']
gem.license = 'BSD-3-Clause'
gem.post_install_message = <<-EOF
***********************************************************
Welcome to SciRuby: Tools for Scientific Computing in Ruby!
NMatrix requires a C compiler, and has been tested only
with GCC 4.6+. We are happy to accept contributions
which improve the portability of this project.
If you are upgrading from NMatrix 0.1.0 and rely on
ATLAS features, please check the README.
Faster matrix calculations and more advanced linear
algebra features are available by installing either
the nmatrix-atlas or nmatrix-lapacke plugins.
More explicit instructions for NMatrix and SciRuby should
be available on the SciRuby website, sciruby.com, or
through our mailing list (which can be found on our web-
site).
Thanks for trying out NMatrix! Happy coding!
***********************************************************
EOF
gem.files = `git ls-files -- ext/nmatrix`.split("\n")
gem.files += `git ls-files -- lib`.split("\n")
gem.files -= plugin_lib_files
gem.test_files = `git ls-files -- spec`.split("\n")
gem.test_files -= `git ls-files -- spec/plugins`.split("\n")
gem.extensions = ['ext/nmatrix/extconf.rb']
gem.require_paths = ["lib"]
gem.required_ruby_version = '>= 1.9'
gem.add_dependency 'packable', '~> 1.3', '>= 1.3.5'
gem.add_development_dependency 'bundler', '~>1.6'
gem.add_development_dependency 'pry', '~>0.10'
gem.add_development_dependency 'rake', '~>10.3'
gem.add_development_dependency 'rake-compiler', '~>0.8'
gem.add_development_dependency 'rdoc', '~>4.0', '>=4.0.1'
gem.add_development_dependency 'rspec', '~>2.14'
gem.add_development_dependency 'rspec-longrun', '~>1.0'
end