2011-05-24 14:17:58 -04:00
|
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
require 'pathname'
|
|
|
|
|
2011-06-16 14:11:39 -04:00
|
|
|
# Sanity check!
|
|
|
|
if !File.exist? File.join('lib', 'libv8', 'v8', 'SConstruct') then
|
|
|
|
`git submodule update --init`
|
|
|
|
end
|
|
|
|
|
2011-05-24 14:17:58 -04:00
|
|
|
$:.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 = ["fractaloop@thefrontside.net", "cowboyd@thefrontside.net"]
|
|
|
|
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
|
2011-05-31 10:52:36 -04:00
|
|
|
|
|
|
|
s.files = `git ls-files`.split("\n")
|
2011-05-24 14:17:58 -04:00
|
|
|
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
|
2011-05-31 10:52:36 -04:00
|
|
|
|
2011-05-24 14:17:58 -04:00
|
|
|
s.extensions = ["ext/libv8/extconf.rb"]
|
|
|
|
s.require_paths = ["lib"]
|
2011-11-14 17:50:24 -05:00
|
|
|
|
|
|
|
s.add_development_dependency "rake", "~> 0.9.2"
|
2011-05-24 14:17:58 -04:00
|
|
|
s.add_development_dependency "bundler"
|
|
|
|
end
|