-
Notifications
You must be signed in to change notification settings - Fork 7
/
cumo.gemspec
32 lines (26 loc) · 1.33 KB
/
cumo.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
# coding: utf-8
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
cumo_version = File.read(File.join(__dir__, "ext/cumo/include/cumo.h")).match(/CUMO_VERSION "([^"]+)"/)[1]
numo_narray_version = File.read(File.join(__dir__, "numo-narray-version")).strip
Gem::Specification.new do |spec|
spec.name = "cumo"
spec.version = cumo_version
spec.authors = ["Naotoshi Seo"]
spec.email = ["[email protected]"]
spec.summary = %q{Cumo is CUDA aware numerical library whose interface is highly compatible with Ruby Numo}
spec.description = %q{Cumo is CUDA aware numerical library whose interface is highly compatible with Ruby Numo.}
spec.homepage = "https://github.com/sonots/cumo"
spec.license = "BSD-3-Clause"
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.extensions = ["ext/cumo/extconf.rb"]
spec.add_runtime_dependency "numo-narray", numo_narray_version
spec.add_development_dependency "bundler", "~> 1.15"
spec.add_development_dependency "rake", "~> 10.0"
end