public
Description: Super streamlined memory profiler with real time graphs for Ruby programs
Clone URL: git://github.com/mojombo/vanhelsing.git
patched ruby works on leopard!
mojombo (author)
Wed Feb 13 00:55:25 -0800 2008
commit  14c82216e87e689c9c49445dd5a32a502896827e
tree    e10330b682124f9155c97d3f90e1bb3059f2ddcd
parent  0077c963847a1ae88312d3632574f4f3fa42efc4
...
 
 
 
 
 
 
 
1
2
3
...
6
7
8
9
10
11
12
...
1
2
3
4
5
6
7
8
9
10
...
13
14
15
 
16
17
18
0
@@ -1,3 +1,10 @@
0
+assets/darwin-10.5/dot-darwin.diff
0
+assets/darwin-10.5/etc-irbrc.diff
0
+assets/darwin-10.5/ignore-gsetcontext.diff
0
+assets/darwin-10.5/md5_sha1_commoncrypto.diff
0
+assets/darwin-10.5/use-dyld.diff
0
+assets/darwin-10.5/use-setreugid.diff
0
+assets/darwin-10.5/words-bigendian-from-arch.diff
0
 assets/gc.c.patch
0
 assets/parse.y.patch
0
 assets/ruby-1.8.6-p110.tar.bz2
0
@@ -6,7 +13,6 @@ ext/build_logger.rb
0
 ext/build_ruby.rb
0
 ext/extconf.rb
0
 ext/logger.c
0
-ext/logger.h
0
 lib/vanhelsing.rb
0
 LICENSE
0
 LICENSE_bleak_house
...
7
8
9
10
11
 
 
12
13
14
...
7
8
9
 
 
10
11
12
13
14
0
@@ -7,8 +7,8 @@ Echoe.new('vanhelsing') do |p|
0
 end
0
 
0
 task :go do
0
- sh("sudo rm /usr/bin/ruby-vanhelsing")
0
- sh("sudo rm -fr /tmp/vanhelsing")
0
+ sh("sudo rm /usr/bin/ruby-vanhelsing") rescue nil
0
+ sh("sudo rm -fr /tmp/vanhelsing") rescue nil
0
   sh("rake manifest")
0
   sh("rake clean")
0
   sh("rake package")
...
49
50
51
52
 
 
 
 
 
 
 
 
53
54
55
...
49
50
51
 
52
53
54
55
56
57
58
59
60
61
62
0
@@ -49,7 +49,14 @@ else
0
           # Patch, configure, and build
0
           system("patch -p0 < \'#{source_dir}/gc.c.patch\' > ../gc.c.patch.log 2>&1")
0
           system("patch -p0 < \'#{source_dir}/parse.y.patch\' > ../parse.y.patch.log 2>&1")
0
- system("./configure --prefix=#{binary_dir[0..-5]} > ../configure.log 2>&1") # --with-static-linked-ext
0
+ system("patch -p0 < \'#{source_dir}/darwin-10.5/dot-darwin.diff\' > ../dot-darwin.diff.log 2>&1")
0
+ system("patch -p0 < \'#{source_dir}/darwin-10.5/etc-irbrc.diff\' > ../etc-irbrc.diff.log 2>&1")
0
+ system("patch -p0 < \'#{source_dir}/darwin-10.5/ignore-gsetcontext.diff\' > ../ignore-gsetcontext.diff.log 2>&1")
0
+ system("patch -p0 < \'#{source_dir}/darwin-10.5/md5_sha1_commoncrypto.diff\' ../md5_sha1_commoncrypto.diff.log 2>&1")
0
+ system("patch -p0 < \'#{source_dir}/darwin-10.5/use-dyld.diff\' > ../use-dyld.diff.log 2>&1")
0
+ system("patch -p0 < \'#{source_dir}/darwin-10.5/use-setreugid.diff\' > ../use-setreugid.diff.log 2>&1")
0
+ system("patch -p0 < \'#{source_dir}/darwin-10.5/words-bigendian-from-arch.diff\' > ../words-bigendian-from-arch.diff.log 2>&1")
0
+ system("./configure --enable-pthread --enable-shared --prefix=#{binary_dir[0..-5]} > ../configure.log 2>&1")
0
           
0
           # Patch the makefile for arch/sitedir
0
           makefile = File.read('Makefile')
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ case RUBY_PLATFORM
0
 when "universal-darwin9.0"
0
   puts "Detected Darwin 9.0"
0
 
0
- # system('ruby build_ruby.rb &> /dev/null')
0
+ system('ruby build_ruby.rb &> /dev/null')
0
   exec("ruby-vanhelsing build_logger.rb")
0
 else
0
   abort "VanHelsing is currently only supported on Mac OS 10.5 and above"

Comments

    No one has commented yet.