From c8c2cb2dd3dac7fbdafd2121eb4553b6ba12232d Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 15 Sep 2009 19:05:24 +0100 Subject: Use __END__ patch rather than github gist Also there was seemingly some bug where if you didn't read the pipe for the patch commmand the exit status was non-zero. --- Library/Formula/atomicparsley.rb | 27 ++++++++++++++++++++++++++- Library/Formula/icu4c.rb | 20 +++++++++++++++++++- Library/Formula/lua.rb | 2 +- Library/Formula/mawk.rb | 19 ++++++++++++++++--- Library/Formula/mysql.rb | 16 +++++++++++++++- Library/Formula/spidermonkey.rb | 15 ++++++++++++++- Library/Formula/xar.rb | 20 +++++++++++++++++--- 7 files changed, 108 insertions(+), 11 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/atomicparsley.rb b/Library/Formula/atomicparsley.rb index b712f2761..9cdd679cd 100644 --- a/Library/Formula/atomicparsley.rb +++ b/Library/Formula/atomicparsley.rb @@ -6,7 +6,7 @@ class Atomicparsley "http://pastie.org/609011.txt" } + { :p0 => DATA } end def install @@ -15,3 +15,28 @@ class Atomicparsley + #include + +-#include "AP_NSImage.h" + #include "AtomicParsley.h" ++#include "AP_NSImage.h" + + bool isJPEG=false; + bool isPNG=false; +@@ -201,7 +201,7 @@ + + NSBitmapImageRep* bitmap = [ [NSBitmapImageRep alloc] + initWithFocusedViewRect: destinationRect ]; +- _NSBitmapImageFileType filetype; ++ NSBitmapImageFileType filetype; + NSDictionary *props; + + if ( (isPNG && !myPicPrefs.allJPEG) || myPicPrefs.allPNG) { diff --git a/Library/Formula/icu4c.rb b/Library/Formula/icu4c.rb index 3122178a2..45e86b80e 100644 --- a/Library/Formula/icu4c.rb +++ b/Library/Formula/icu4c.rb @@ -7,7 +7,7 @@ class Icu4c &5 diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb index 2937ee5eb..5cbc50424 100644 --- a/Library/Formula/lua.rb +++ b/Library/Formula/lua.rb @@ -117,4 +117,4 @@ diff -Naur lua-5.1.4/src/Makefile lua-5.1.4-2/src/Makefile + $(CC) $(CFLAGS) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) clean: - $(RM) $(ALL_T) $(ALL_O) \ No newline at end of file + $(RM) $(ALL_T) $(ALL_O) diff --git a/Library/Formula/mawk.rb b/Library/Formula/mawk.rb index 776117d1e..a2079249d 100644 --- a/Library/Formula/mawk.rb +++ b/Library/Formula/mawk.rb @@ -7,9 +7,7 @@ class Mawk ["http://bitbucket.org/0xffea/patches/raw/6402e50a132f/homebrew/mawk-001-shell.diff"] - } + { :p1 => DATA } end def install @@ -17,3 +15,18 @@ class Mawk "http://gist.github.com/raw/179616/bcbc9f185bbd353934c9379a253d23269c65170e/Diff"} + {:p1 => DATA} end def install @@ -87,3 +87,17 @@ class Mysql ["http://gist.github.com/raw/178912/fe729be5b2572fd8f09eb6b60c9203a35ef1e8c3/gistfile1.diff"] - } + { :p1 => DATA } end def install @@ -17,3 +15,19 @@ class Xar