Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 2de7914

Browse files
committed
GCC 5.0 for all platforms
1 parent c1fb091 commit 2de7914

File tree

4 files changed

+8
-281
lines changed

4 files changed

+8
-281
lines changed

files/brews/apple-gcc42.rb

Lines changed: 0 additions & 46 deletions
This file was deleted.

files/brews/gcc48.rb

Lines changed: 0 additions & 219 deletions
This file was deleted.

manifests/init.pp

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,14 @@
99
'Darwin': {
1010
include homebrew
1111

12-
case $::macosx_productversion_major {
13-
'10.8': {
14-
include gcc::apple_gcc42
15-
}
12+
ensure_resource('homebrew::tap',
13+
'homebrew/versions', { 'ensure' => 'present' })
1614

17-
default: {
18-
ensure_resource('homebrew::tap',
19-
'homebrew/versions', { 'ensure' => 'present' })
15+
homebrew::formula { 'gcc5': }
2016

21-
homebrew::formula { 'gcc48': }
22-
23-
package { 'boxen/brews/gcc48':
24-
ensure => '4.8.4',
25-
require => Homebrew::Tap['homebrew/versions']
26-
}
27-
}
17+
package { 'boxen/brews/gcc5':
18+
ensure => '5.1.0',
19+
require => Homebrew::Tap['homebrew/versions']
2820
}
2921
}
3022

spec/classes/gcc_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
should contain_homebrew__tap('homebrew/versions').
88
with_ensure('present')
99

10-
should contain_package('boxen/brews/gcc48').with({
11-
:ensure => '4.8.4',
10+
should contain_package('boxen/brews/gcc5').with({
11+
:ensure => '5.1.0',
1212
:require => 'Homebrew::Tap[homebrew/versions]'
1313
})
1414
end

0 commit comments

Comments
 (0)