mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
show binary gem name in rake task description
This commit is contained in:
parent
46f13bd671
commit
617ddf4f8b
1 changed files with 14 additions and 4 deletions
18
Rakefile
18
Rakefile
|
@ -39,11 +39,21 @@ task :manual_compile do
|
|||
end
|
||||
end
|
||||
|
||||
desc "build a binary gem"
|
||||
task :binary => :compile do
|
||||
def get_binary_gemspec(platform = RUBY_PLATFORM)
|
||||
gemspec = eval(File.read('libv8.gemspec'))
|
||||
gemspec.extensions.clear
|
||||
gemspec.platform = Gem::Platform.new(RUBY_PLATFORM)
|
||||
gemspec.platform = Gem::Platform.new(platform)
|
||||
gemspec
|
||||
end
|
||||
|
||||
begin
|
||||
binary_gem_name = File.basename get_binary_gemspec.cache_file
|
||||
rescue
|
||||
binary_gem_name = ''
|
||||
end
|
||||
|
||||
desc "build a binary gem #{binary_gem_name}"
|
||||
task :binary => :compile do
|
||||
gemspec = get_binary_gemspec
|
||||
|
||||
# We don't need most things for the binary
|
||||
gemspec.files = ['lib/libv8.rb', 'ext/libv8/arch.rb', 'lib/libv8/version.rb']
|
||||
|
|
Loading…
Add table
Reference in a new issue