aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/muscle.rb
blob: cf304d589d03ab016d3c65922c2fddea723eda2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require 'formula'

class Muscle < Formula
  homepage 'http://www.drive5.com/muscle/'
  url 'http://www.drive5.com/muscle/downloads3.8.31/muscle3.8.31_src.tar.gz'
  version '3.8.31'
  sha1 '2fe55db73ff4e7ac6d4ca692f8f213d1c5071dac'

  # This patch makes 3.8.31 build on Lion.
  # It has been reported upstream but not fixed yet.
  def patches
    DATA
  end

  def install
    cd "src" do
      system "make"
      bin.install "muscle"
    end
  end
end

__END__
diff -Naur muscle3.8.31/src/globalsosx.cpp muscle3.8.31-patch/src/globalsosx.cpp
--- muscle3.8.31/src/globalsosx.cpp	2010-04-29 01:43:42.000000000 +0200
+++ muscle3.8.31-patch/src/globalsosx.cpp	2012-05-07 21:17:57.000000000 +0200
@@ -13,10 +13,10 @@
 #include <netinet/icmp6.h>
 #include <sys/vmmeter.h>
 #include <sys/proc.h>
+#include <mach/vm_statistics.h>
 #include <mach/task_info.h>
 #include <mach/task.h>
 #include <mach/mach_init.h>
-#include <mach/vm_statistics.h>
 
 const double DEFAULT_RAM = 1e9;
 const double DEFAULT_MEM_USE = 1e6;