software_smithy 1.6.4 → 1.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,11 @@ module Smithy
20
20
  # guess name and build_name
21
21
  @name = self.formula_name
22
22
  @build_name = operating_system
23
- initialize_modules
23
+ end
24
+
25
+ if ENV["MODULESHOME"]
26
+ @modulecmd = "modulecmd sh"
27
+ @modulecmd = "#{ENV["MODULESHOME"]}/bin/modulecmd sh" if File.exists?("#{ENV["MODULESHOME"]}/bin/modulecmd")
24
28
  end
25
29
  end
26
30
 
@@ -34,8 +38,6 @@ module Smithy
34
38
 
35
39
  if ENV["MODULESHOME"]
36
40
  @module_commands = @modules = nil # re-evaluates the blocks
37
- @modulecmd = "modulecmd sh"
38
- @modulecmd = "#{ENV["MODULESHOME"]}/bin/modulecmd sh" if File.exists?("#{ENV["MODULESHOME"]}/bin/modulecmd")
39
41
  if modules.present?
40
42
  @module_setup << `#{@module_setup} #{@modulecmd} purge 2>/dev/null` << " "
41
43
  raise "modules must return a list of strings" unless modules.is_a? Array
@@ -54,7 +56,6 @@ module Smithy
54
56
  @version = p.version
55
57
  @build_name = p.build_name
56
58
  @prefix = p.prefix
57
- initialize_modules
58
59
  end
59
60
 
60
61
  # DSL Methods
@@ -99,7 +100,7 @@ module Smithy
99
100
  end
100
101
 
101
102
  def run_install
102
- check_dependencies if depends_on
103
+ initialize_modules
103
104
  install
104
105
  notice_success "SUCCESS #{@prefix}"
105
106
  return true
@@ -175,6 +176,7 @@ module Smithy
175
176
  end
176
177
 
177
178
  def check_dependencies
179
+ return true unless depends_on
178
180
  @depends_on = [depends_on] if depends_on.is_a? String
179
181
  missing_packages = []
180
182
  notice "Searching for dependencies"
@@ -126,6 +126,7 @@ module Smithy
126
126
 
127
127
  packages.each do |package|
128
128
  f = build_formula(package, options[:"formula-name"])
129
+ f.check_dependencies
129
130
  f.package.create(:formula => true)
130
131
 
131
132
  formula_prefix_contents = Dir["#{f.prefix}/*"]
@@ -36,5 +36,5 @@
36
36
  # }}}
37
37
 
38
38
  module Smithy
39
- VERSION = '1.6.4'
39
+ VERSION = '1.6.5'
40
40
  end
@@ -1,6 +1,6 @@
1
1
  == smithy - Smithy will help you build, test, and install software with ease.
2
2
 
3
- v1.6.4
3
+ v1.6.5
4
4
 
5
5
  === Global Options
6
6
  === --arch NAME
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: software_smithy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
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: 2014-07-18 00:00:00.000000000 Z
12
+ date: 2014-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_print
@@ -321,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
321
321
  version: '0'
322
322
  segments:
323
323
  - 0
324
- hash: -3203549928499552605
324
+ hash: -348248461402119234
325
325
  required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  none: false
327
327
  requirements:
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
330
  version: '0'
331
331
  segments:
332
332
  - 0
333
- hash: -3203549928499552605
333
+ hash: -348248461402119234
334
334
  requirements: []
335
335
  rubyforge_project:
336
336
  rubygems_version: 1.8.23.2