gear 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gear.gemspec +1 -1
- data/lib/gear.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb64c208e25eab1187e52fe173e181517da7b213
|
4
|
+
data.tar.gz: 00912a791424ccaa562fb4d910b175fac9b170db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71337edcf01a01b1d9595893f3dbf4e675830f042983f3548fada5e19589d6cde00ef4d6cad024688d8aae369642414d1c2099de160952ad99bf98a233fb053f
|
7
|
+
data.tar.gz: ba84322d0f80de4788bc804752bddb8f4f6f6a531d3fe1493ce758d2350e25f7fddc4baceae25b563ebcec1e31ea1193c3bef635804949730cd58209eadb2164
|
data/gear.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'gear'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.6'
|
4
4
|
s.license = 'GPL-3'
|
5
5
|
s.summary = 'modular dependency build system for native extensions'
|
6
6
|
s.description = 'gear provides a modular framework to encapsulate build tasks for native ' +
|
data/lib/gear.rb
CHANGED
@@ -12,7 +12,7 @@ class Gear
|
|
12
12
|
attr_reader :obtained, :built, :installed, :checked,
|
13
13
|
:headers, :libs, :build_path
|
14
14
|
|
15
|
-
@@install_path = "#{Dir.
|
15
|
+
@@install_path = "#{Dir.getwd}/vendor"
|
16
16
|
@@initialized = false
|
17
17
|
|
18
18
|
@headers = []
|
@@ -45,6 +45,7 @@ class Gear
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def initialize()
|
48
|
+
puts "Gear install path set to: #{@@install_path}"
|
48
49
|
@obtained = @built = @installed = @checked = false
|
49
50
|
@build_path = _root_path() + "/build/#{name()}"
|
50
51
|
_setup_paths()
|
@@ -174,11 +175,19 @@ class Gear
|
|
174
175
|
|
175
176
|
ENV['PATH'] = (ENV['PATH'].nil? ?
|
176
177
|
"#{@@install_path}/bin" : ENV['PATH'] + ":#{@@install_path}/bin")
|
178
|
+
`export PATH=#{ENV['PATH']}`
|
177
179
|
#ENV['C_INCLUDE_PATH'] = ENV['C_INCLUDE_PATH'].to_s + ":#{@@install_path}/include"
|
178
180
|
#ENV['CPLUS_INCLUDE_PATH'] = ENV['CPLUS_INCLUDE_PATH'].to_s + ":#{@@install_path}/include"
|
179
181
|
ENV['CPATH'] = (ENV['CPATH'].nil? ?
|
180
182
|
"#{@@install_path}/include" : ENV['CPATH'] + ":#{@@install_path}/include")
|
183
|
+
`export CPATH=#{ENV['CPATH']}`
|
184
|
+
|
181
185
|
ENV['LD_LIBRARY_PATH'] = (ENV['LD_LIBRARY_PATH'].nil? ?
|
182
186
|
"#{@@install_path}/lib" : ENV['LD_LIBRARY_PATH'] + ":#{@@install_path}/lib")
|
187
|
+
`export LD_LIBRARY_PATH=#{ENV['LD_LIBRARY_PATH']}`
|
188
|
+
|
189
|
+
ENV['LIBRARY_PATH'] = (ENV['LIBRARY_PATH'].nil? ?
|
190
|
+
"#{@@install_path}/lib" : ENV['LIBRARY_PATH'] + ":#{@@install_path}/lib")
|
191
|
+
`export LIBRARY_PATH=#{ENV['LIBRARY_PATH']}`
|
183
192
|
end
|
184
193
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei Kagetsuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|