-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmrbgem.rake
21 lines (18 loc) · 845 Bytes
/
mrbgem.rake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
MRuby::Gem::Specification.new("mruby-lzma") do |s|
s.summary = "mruby bindings for lzma the compression library (unofficial)"
s.version = File.read(File.join(File.dirname(__FILE__), "README.md")).scan(/^\s*[\-\*] version:\s*(\d+(?:\.\d+)+)/i).flatten[-1]
s.license = "BSD-2-Clause"
s.author = "dearblue"
s.homepage = "https://github.com/dearblue/mruby-lzma"
add_dependency "mruby-error", core: "mruby-error"
add_dependency "mruby-string-ext", core: "mruby-string-ext"
add_dependency "mruby-aux", github: "dearblue/mruby-aux"
if s.cc.command =~ /\b(?:g?cc|clang)\d*\b/
s.cc.flags << "-Wall" <<
"-Wno-shift-negative-value" <<
"-Wno-shift-count-negative" <<
"-Wno-shift-count-overflow" <<
"-Wno-missing-braces"
end
linker.libraries << "lzma"
end