aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authormarkusn2012-05-07 21:44:56 +0200
committerAdam Vandenberg2012-10-24 08:56:33 -0700
commit7958a1addf60ccccd25179eae9dc574d9fb52791 (patch)
tree58a35a11fe788bdc811edcf92c812d35256cacbe /Library
parent641070518a0660f3c87e8deab1e70f580d5120b7 (diff)
downloadhomebrew-7958a1addf60ccccd25179eae9dc574d9fb52791.tar.bz2
muscle: patch to fix build under Lion
Closes #12133. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/muscle.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/muscle.rb b/Library/Formula/muscle.rb
index fcd1754fd..cf304d589 100644
--- a/Library/Formula/muscle.rb
+++ b/Library/Formula/muscle.rb
@@ -6,6 +6,12 @@ class Muscle < Formula
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"
@@ -13,3 +19,20 @@ class Muscle < Formula
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;