libv8 3.11.8.0 → 3.11.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +3 -5
- data/Rakefile +15 -4
- data/ext/libv8/extconf.rb +1 -0
- data/lib/libv8/version.rb +1 -1
- data/patches/fPIC-on-linux-x64.patch +14 -0
- data/vendor/v8/build/standalone.gypi +3 -0
- metadata +5 -4
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
|
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:
|
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"></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
|
-
|
43
|
-
task :binary => :compile do
|
43
|
+
def get_binary_gemspec(platform = RUBY_PLATFORM)
|
44
44
|
gemspec = eval(File.read('libv8.gemspec'))
|
45
|
-
gemspec.
|
46
|
-
gemspec
|
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']
|
data/ext/libv8/extconf.rb
CHANGED
data/lib/libv8/version.rb
CHANGED
@@ -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
|
+
}],
|
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.
|
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-
|
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:
|
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:
|
2526
|
+
hash: 26748097118197936
|
2526
2527
|
requirements: []
|
2527
2528
|
rubyforge_project: libv8
|
2528
2529
|
rubygems_version: 1.8.24
|