forked from rubyjs/libv8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibv8.gemspec
36 lines (28 loc) · 1.19 KB
/
libv8.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
# -*- encoding: utf-8 -*-
require 'pathname'
# Sanity check!
if !File.exist? File.join('lib', 'libv8', 'v8', 'SConstruct') then
`git submodule update --init`
end
$:.push File.expand_path("../lib", __FILE__)
require "libv8/version"
Gem::Specification.new do |s|
s.name = "libv8"
s.version = Libv8::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Logan Lowell", "Charles Lowell"]
s.email = ["[email protected]", "[email protected]"]
s.homepage = "http://github.com/fractaloop/libv8"
s.summary = %q{Distribution of the V8 JavaScript engine}
s.description = %q{Distributes the V8 JavaScript engine in binary and source forms in order to support fast builds of The Ruby Racer}
s.rubyforge_project = "libv8"
root = Pathname(__FILE__).dirname
s.files = `git ls-files`.split("\n")
s.files += Dir.chdir(root.join("lib/libv8/v8")) do
`git ls-files`.split("\n").reject {|f| f =~ /^test/ || f =~ /^samples/ || f =~ /^benchmarks/}.map {|f| "lib/libv8/v8/#{f}"}
end
s.extensions = ["ext/libv8/extconf.rb"]
s.require_paths = ["lib"]
s.add_development_dependency "rake", "~> 0.8.7"
s.add_development_dependency "bundler"
end