xcellus 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/Rakefile +13 -0
- data/ext/xcellus_bin/extconf.rb +1 -1
- data/lib/xcellus.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48686cff87b2df8d35211de21c1d60e4cc866f79
|
4
|
+
data.tar.gz: 237c9c216d6c0f8095fa22a73f26e8b2952e8353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40ffffdacad7d043d8d86aef085c82bf9c7565c50a12f2221933101897e1f22e1a754212827d3cbdee994cf49d63b7f92c3b974279aa564cd2f24fe88c08b8c
|
7
|
+
data.tar.gz: 5326309ead1a49c63ea899f240e4a5455e5b4cd2d63e16c5f67d8a91f2bad798ff6a260ba03f2913ace07bd610290ad608d3a5007aef99a5d974e84afd5d23e1
|
data/ext/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'mkmf'
|
2
|
+
|
3
|
+
PREFIX = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
4
|
+
task :default do
|
5
|
+
if RbConfig::CONFIG['target'] =~ /darwin/
|
6
|
+
f = File.join PREFIX, 'lib', 'xcellus_bin.bundle'
|
7
|
+
so = File.join PREFIX, 'bin', 'libxcbindings-darwin-amd64.so'
|
8
|
+
open('/tmp/xxx', 'w') do |fi|
|
9
|
+
fi.puts "install_name_tool -change 'libxcbindings-darwin-amd64.so' '#{so}' #{f}"
|
10
|
+
end
|
11
|
+
system "install_name_tool -change 'libxcbindings-darwin-amd64.so' '#{so}' #{f}"
|
12
|
+
end
|
13
|
+
end
|
data/ext/xcellus_bin/extconf.rb
CHANGED
@@ -10,5 +10,5 @@ bindings = "xcbindings-#{target_platform}-amd64"
|
|
10
10
|
|
11
11
|
dir_config(extension_name)
|
12
12
|
dir_config(bindings, '$(srcdir)/../../bin', '$(srcdir)/../../bin')
|
13
|
-
$LDFLAGS << " -l#{bindings} -Wl,-rpath,./../bin"
|
13
|
+
$LDFLAGS << " -l#{bindings} -Wl,-rpath,./../bin -Wl,-rpath,'$$ORIGIN/../bin' "
|
14
14
|
create_makefile(extension_name)
|
data/lib/xcellus.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcellus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Gama
|
@@ -60,11 +60,13 @@ email:
|
|
60
60
|
executables: []
|
61
61
|
extensions:
|
62
62
|
- ext/xcellus_bin/extconf.rb
|
63
|
+
- ext/Rakefile
|
63
64
|
extra_rdoc_files: []
|
64
65
|
files:
|
65
66
|
- bin/libxcbindings-darwin-amd64.so
|
66
67
|
- bin/libxcbindings-linux-amd64.so
|
67
68
|
- bin/libxcbindings.h
|
69
|
+
- ext/Rakefile
|
68
70
|
- ext/xcellus_bin/extconf.rb
|
69
71
|
- ext/xcellus_bin/xcellus_bin.c
|
70
72
|
- lib/xcellus.rb
|