libv8 3.11.8.0 → 3.11.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,8 +18,6 @@ That depends on your platform. Right now, we support the following platforms.
18
18
  * x86_64-linux
19
19
  * x86-linux
20
20
 
21
- > **Note**: Gentoo amd64 users may need to tweak their environment. see [issue 8](/fractaloop/libv8/issues/8)
22
-
23
21
  If you don't see your platform on this list, first, make sure that it installs from source, and second
24
22
  talk to us about setting up a binary distro for you.
25
23
 
@@ -27,11 +25,11 @@ talk to us about setting up a binary distro for you.
27
25
  ### What if I can't install from source?
28
26
 
29
27
 
30
- If you can fix the [Makefile](https://github.com/fractaloop/libv8/blob/master/lib/libv8/Makefile) so that it correctly compiles for your platform, we'll pull it right in!
28
+ If you can fix the "Makefile" so that it correctly compiles for your platform, we'll pull it right in!
31
29
 
32
30
  To get the source, these commands will get you started:
33
31
 
34
- git clone git@github.com:fractaloop/libv8
32
+ git clone git@github.com:cowboyd/libv8
35
33
  cd libv8
36
34
  git submodule update --init
37
35
  bundle install
@@ -47,7 +45,7 @@ reliably to all the different platforms proved to be a challenge to say the leas
47
45
  We got tired of waiting 5 minutes for v8 to compile every time we installed that gem.
48
46
 
49
47
  ### Sponsored by
50
- <a href="http://thefrontside.net">![The Frontside](http://github.com/fractaloop/libv8/raw/master/thefrontside.png)</a>
48
+ <a href="http://thefrontside.net">![The Frontside](http://github.com/cowboyd/libv8/raw/master/thefrontside.png)</a>
51
49
 
52
50
  ### License
53
51
 
data/Rakefile CHANGED
@@ -22,6 +22,7 @@ task :checkout do
22
22
  # Fix gyp trying to build platform-linux on FreeBSD 9 and FreeBSD 10.
23
23
  # Based on: https://chromiumcodereview.appspot.com/10079030/patch/1/2
24
24
  sh "patch -N -p0 -d vendor/v8 < patches/add-freebsd9-and-freebsd10-to-gyp-GetFlavor.patch"
25
+ sh "patch -N -p1 -d vendor/v8 < patches/fPIC-on-linux-x64.patch"
25
26
  end
26
27
 
27
28
  desc "compile v8 via the ruby extension mechanism"
@@ -39,11 +40,21 @@ task :manual_compile do
39
40
  end
40
41
  end
41
42
 
42
- desc "build a binary gem"
43
- task :binary => :compile do
43
+ def get_binary_gemspec(platform = RUBY_PLATFORM)
44
44
  gemspec = eval(File.read('libv8.gemspec'))
45
- gemspec.extensions.clear
46
- gemspec.platform = Gem::Platform.new(RUBY_PLATFORM)
45
+ gemspec.platform = Gem::Platform.new(platform)
46
+ gemspec
47
+ end
48
+
49
+ begin
50
+ binary_gem_name = File.basename get_binary_gemspec.cache_file
51
+ rescue
52
+ binary_gem_name = ''
53
+ end
54
+
55
+ desc "build a binary gem #{binary_gem_name}"
56
+ task :binary => :compile do
57
+ gemspec = get_binary_gemspec
47
58
 
48
59
  # We don't need most things for the binary
49
60
  gemspec.files = ['lib/libv8.rb', 'ext/libv8/arch.rb', 'lib/libv8/version.rb']
@@ -11,3 +11,4 @@ include Libv8::Compiler
11
11
  Dir.chdir(File.expand_path '../../../vendor/v8', __FILE__) do
12
12
  puts `env CXX=#{compiler} LINK=#{compiler} #{make} #{libv8_arch}.release GYPFLAGS="-Dhost_arch=#{libv8_arch}"`
13
13
  end
14
+ exit $?.exitstatus
@@ -1,3 +1,3 @@
1
1
  module Libv8
2
- VERSION = "3.11.8.0"
2
+ VERSION = "3.11.8.1"
3
3
  end
@@ -0,0 +1,14 @@
1
+ diff --git a/build/standalone.gypi b/build/standalone.gypi
2
+ index ebdf557..c7a59bc 100644
3
+ --- a/build/standalone.gypi
4
+ +++ b/build/standalone.gypi
5
+ @@ -98,6 +98,9 @@
6
+ [ 'OS=="linux"', {
7
+ 'cflags': [ '-ansi' ],
8
+ }],
9
+ + [ 'OS=="linux" and v8_target_arch=="x64" and component=="static_library"', {
10
+ + 'cflags': [ '-fPIC', ],
11
+ + }],
12
+ [ 'visibility=="hidden"', {
13
+ 'cflags': [ '-fvisibility=hidden' ],
14
+ }],
@@ -98,6 +98,9 @@
98
98
  [ 'OS=="linux"', {
99
99
  'cflags': [ '-ansi' ],
100
100
  }],
101
+ [ 'OS=="linux" and v8_target_arch=="x64" and component=="static_library"', {
102
+ 'cflags': [ '-fPIC', ],
103
+ }],
101
104
  [ 'visibility=="hidden"', {
102
105
  'cflags': [ '-fvisibility=hidden' ],
103
106
  }],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libv8
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.8.0
4
+ version: 3.11.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-15 00:00:00.000000000 Z
12
+ date: 2012-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -83,6 +83,7 @@ files:
83
83
  - lib/libv8/version.rb
84
84
  - libv8.gemspec
85
85
  - patches/add-freebsd9-and-freebsd10-to-gyp-GetFlavor.patch
86
+ - patches/fPIC-on-linux-x64.patch
86
87
  - patches/src_platform-freebsd.cc.patch
87
88
  - spec/libv8_spec.rb
88
89
  - spec/spec_helper.rb
@@ -2513,7 +2514,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
2513
2514
  version: '0'
2514
2515
  segments:
2515
2516
  - 0
2516
- hash: -3958606741126822656
2517
+ hash: 26748097118197936
2517
2518
  required_rubygems_version: !ruby/object:Gem::Requirement
2518
2519
  none: false
2519
2520
  requirements:
@@ -2522,7 +2523,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2522
2523
  version: '0'
2523
2524
  segments:
2524
2525
  - 0
2525
- hash: -3958606741126822656
2526
+ hash: 26748097118197936
2526
2527
  requirements: []
2527
2528
  rubyforge_project: libv8
2528
2529
  rubygems_version: 1.8.24