josh-vmparty 1.0.0 → 1.0.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/lib/tasks/jruby.rake CHANGED
@@ -11,7 +11,6 @@ namespace :jruby do
11
11
  Rake::Task["jruby:gems"].invoke
12
12
  end
13
13
 
14
- desc "Download JRuby #{jruby_version} binary"
15
14
  task :download do
16
15
  chdir "/tmp" do
17
16
  unless exists? "jruby-#{jruby_version}/"
@@ -23,7 +22,6 @@ namespace :jruby do
23
22
  end
24
23
  end
25
24
 
26
- desc "Install JRuby"
27
25
  task :install do
28
26
  unless exists? "#{prefix}/jruby-#{jruby_version}/"
29
27
  Rake::Task["jruby:download"].invoke
@@ -45,7 +43,6 @@ namespace :jruby do
45
43
  end
46
44
  end
47
45
 
48
- desc "Update JRuby gems"
49
46
  task :gems => :install do
50
47
  sudo "jruby -S gem update"
51
48
  end
@@ -15,7 +15,6 @@ namespace :macruby do
15
15
  end
16
16
  end
17
17
 
18
- desc "Download MacRuby source"
19
18
  task :download do
20
19
  chdir "/tmp" do
21
20
  unless exists? "MacRuby/"
@@ -27,7 +26,6 @@ namespace :macruby do
27
26
  end
28
27
  end
29
28
 
30
- desc "Build MacRuby"
31
29
  task :make => :download do
32
30
  open_macruby_folder do
33
31
  if exists? "macruby"
@@ -38,15 +36,13 @@ namespace :macruby do
38
36
  end
39
37
  end
40
38
 
41
- desc "Install MacRuby"
42
39
  task :install => :make do
43
40
  open_macruby_folder do
44
41
  system "sudo rake install"
45
42
  end
46
43
  end
47
44
 
48
- desc "Cleanup MacRuby source"
49
- task :cleanup do
45
+ task :clean do
50
46
  remove "/tmp/MacRuby/"
51
47
  end
52
48
 
data/lib/tasks/ree.rake CHANGED
@@ -1,10 +1,10 @@
1
+ desc "Install or update Ruby Enterprise Edition"
1
2
  task :ree => "ree:default"
2
3
 
3
4
  namespace :ree do
4
5
  REE_VERSION = "1.8.6-20080810"
5
6
  REE_PREFIX = "#{prefix}/ruby-enterprise-#{REE_VERSION}"
6
7
 
7
- desc "Install or update Ruby Enterprise Edition"
8
8
  task :default do
9
9
  if has_system_utility? "ree"
10
10
  puts "Ruby Enterprise Edition has already been installed"
@@ -14,7 +14,6 @@ namespace :ree do
14
14
  end
15
15
  end
16
16
 
17
- desc "Download Ruby Enterprise Edition source"
18
17
  task :download do
19
18
  chdir "/tmp" do
20
19
  unless exists? "ruby-enterprise-#{REE_VERSION}/"
@@ -26,7 +25,6 @@ namespace :ree do
26
25
  end
27
26
  end
28
27
 
29
- desc "Install Ruby Enterprise Edition"
30
28
  task :install => :download do
31
29
  chdir "/tmp" do
32
30
  system "sudo ./ruby-enterprise-#{REE_VERSION}/installer --auto #{REE_PREFIX}"
@@ -34,8 +32,7 @@ namespace :ree do
34
32
  end
35
33
  end
36
34
 
37
- desc "Cleanup Ruby Enterprise Edition source"
38
- task :cleanup do
35
+ task :clean do
39
36
  remove "/tmp/ruby-enterprise-#{REE_VERSION}/"
40
37
  end
41
38
  end
@@ -6,22 +6,21 @@ namespace :rubinius do
6
6
  Rake::Task["rubinius:update"].invoke
7
7
  end
8
8
 
9
- desc "Download Rubinius source"
10
9
  task :download do
11
- chdir(prefix) do
12
- unless exists? "rubinius/"
10
+ unless exists? "#{prefix}/rubinius"
11
+ chdir "/tmp" do
13
12
  puts "Checking out Rubinius"
14
- system "sudo git clone git://github.com/evanphx/rubinius.git"
13
+ system "git clone git://github.com/evanphx/rubinius.git"
14
+ sudo "mv /tmp/rubinius #{prefix}/"
15
15
  end
16
16
  end
17
17
  end
18
18
 
19
- desc "Update Rubinius source"
20
19
  task :update => :download do
21
20
  chdir "#{prefix}/rubinius" do
22
21
  puts "Updating Rubinius"
23
- system "sudo git pull"
24
- system "sudo rake build"
22
+ system "git pull"
23
+ system "rake build"
25
24
  end
26
25
 
27
26
  system "sudo ln -sf #{prefix}/rubinius/bin/rbx #{prefix}/bin/rbx"
@@ -1,7 +1,7 @@
1
+ desc "Install or update Ruby 1.9"
1
2
  task :ruby19 => "ruby19:default"
2
3
 
3
4
  namespace :ruby19 do
4
- desc "Install or update Ruby 1.9"
5
5
  task :default do
6
6
  if has_system_utility? "ruby1.9"
7
7
  puts "Ruby 1.9 has already been installed"
@@ -11,7 +11,6 @@ namespace :ruby19 do
11
11
  end
12
12
  end
13
13
 
14
- desc "Download Ruby 1.9 source"
15
14
  task :download do
16
15
  chdir "/tmp" do
17
16
  unless exists? "ruby-1.9.1-preview1/"
@@ -23,7 +22,6 @@ namespace :ruby19 do
23
22
  end
24
23
  end
25
24
 
26
- desc "Configure Ruby 1.9 source"
27
25
  task :configure => :download do
28
26
  open_ruby19_folder do
29
27
  if configure?
@@ -34,7 +32,6 @@ namespace :ruby19 do
34
32
  end
35
33
  end
36
34
 
37
- desc "Build Ruby 1.9"
38
35
  task :make => :configure do
39
36
  open_ruby19_folder do
40
37
  if exists? "ruby1.9"
@@ -45,15 +42,13 @@ namespace :ruby19 do
45
42
  end
46
43
  end
47
44
 
48
- desc "Install Ruby 1.9"
49
45
  task :install => :make do
50
46
  open_ruby19_folder do
51
47
  install
52
48
  end
53
49
  end
54
50
 
55
- desc "Cleanup Ruby 1.9 source"
56
- task :cleanup do
51
+ task :clean do
57
52
  remove "/tmp/ruby-1.9.1-preview1/"
58
53
  end
59
54
 
@@ -1,17 +1,17 @@
1
+ desc "Install or update Ruby GC"
1
2
  task :rubygc => "rubygc:default"
2
3
 
3
4
  namespace :rubygc do
4
- desc "Install or update Ruby GC"
5
5
  task :default do
6
6
  if has_system_utility? "ruby-gc"
7
7
  puts "Ruby GC has already been installed"
8
8
  else
9
9
  Rake::Task["rubygc:install"].invoke
10
10
  Rake::Task["rubygc:clean"].invoke
11
+ Rake::Task["rubygc:gems"].invoke
11
12
  end
12
13
  end
13
14
 
14
- desc "Download Ruby GC source"
15
15
  task :download do
16
16
  chdir "/tmp" do
17
17
  unless exists? "ruby-1.8.6-p111/"
@@ -23,25 +23,22 @@ namespace :rubygc do
23
23
  end
24
24
  end
25
25
 
26
- desc "Patch Ruby GC source"
27
26
  task :patch => :download do
28
27
  open_rubygc_folder do
29
28
  system "curl -s http://rubyforge.org/tracker/download.php/1814/7062/17676/3291/ruby186gc.patch | patch -p0"
30
29
  end
31
30
  end
32
31
 
33
- desc "Configure Ruby GC source"
34
32
  task :configure => :patch do
35
33
  open_rubygc_folder do
36
34
  if configure?
37
35
  puts "Ruby GC Makefile already created"
38
36
  else
39
- configure :prefix => prefix, :program_suffix => "-gc"
37
+ configure :prefix => "/usr/local/ruby-gc", :program_suffix => "-gc"
40
38
  end
41
39
  end
42
40
  end
43
41
 
44
- desc "Build Ruby GC"
45
42
  task :make => :configure do
46
43
  open_rubygc_folder do
47
44
  if exists? "ruby-gc"
@@ -52,26 +49,54 @@ namespace :rubygc do
52
49
  end
53
50
  end
54
51
 
55
- desc "Install Ruby GC"
56
52
  task :install => :make do
57
53
  open_rubygc_folder do
58
54
  install
59
55
  end
56
+
57
+ sudo "ln -sf /usr/local/ruby-gc/bin/ruby-gc /usr/local/bin/ruby-gc"
60
58
  end
61
59
 
62
- desc "Install Ruby Gems for Ruby GC"
63
- task :install_gems do
64
- chdir "/tmp" do
65
- download_and_unzip "http://rubyforge.iasi.roedu.net/files/rubygems/rubygems-1.3.1.tgz"
60
+ task :gems do
61
+ unless has_system_utility? "gem-gc"
62
+ chdir "/tmp" do
63
+ download_and_unzip "http://rubyforge.iasi.roedu.net/files/rubygems/rubygems-1.3.1.tgz"
66
64
 
67
- chdir "rubygems-1.3.1/" do
68
- system "sudo ruby-gc setup.rb"
65
+ chdir "rubygems-1.3.1/" do
66
+ sudo "ruby-gc setup.rb"
67
+ sudo "ln -sf /usr/local/ruby-gc/bin/gem-gc /usr/local/bin/gem-gc"
68
+ end
69
69
  end
70
70
  end
71
+
72
+ unless has_system_utility? "rake-gc"
73
+ sudo "gem-gc install rake"
74
+ sudo "ln -sf /usr/local/ruby-gc/bin/rake /usr/local/bin/rake-gc"
75
+ end
76
+
77
+ unless exists? "/usr/local/ruby-gc/lib/ruby/gems/1.8/gems/mysql-2.7"
78
+ sudo "env ARCHFLAGS=\"-arch i386\" gem-gc install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config"
79
+ end
80
+
81
+ unless has_system_utility? "ruby-prof-gc"
82
+ chdir "/tmp" do
83
+ sudo "svn export http://ruby-prof.rubyforge.org/svn/trunk/"
84
+ chdir "trunk" do
85
+ sudo "rake-gc gem"
86
+ sudo "gem-gc install pkg/ruby-prof-0.7.1.gem"
87
+ end
88
+ sudo "rm -rf trunk/"
89
+ sudo "ln -sf /usr/local/ruby-gc/bin/ruby-prof /usr/local/bin/ruby-prof-gc"
90
+ end
91
+ end
92
+
93
+ unless has_system_utility? "rails-gc"
94
+ sudo "gem-gc install rails"
95
+ sudo "ln -sf /usr/local/ruby-gc/bin/rails /usr/local/bin/rails-gc"
96
+ end
71
97
  end
72
98
 
73
- desc "Cleanup Ruby GC source"
74
- task :cleanup do
99
+ task :clean do
75
100
  remove "/tmp/ruby-1.8.6-p111/"
76
101
  end
77
102
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: josh-vmparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-09 00:00:00 -08:00
12
+ date: 2008-11-30 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15