diff options
| author | Adam Vandenberg | 2013-09-19 07:28:35 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-19 07:28:35 -0700 |
| commit | 577ad131a70b0a01d6cd097c2578b3b16d34205f (patch) | |
| tree | 197013f946fd8ec377933855c2be7eaea14026f4 /Library/Formula | |
| parent | 87789703630e6b65dccd18cc5a652f1eae75a1ce (diff) | |
| download | homebrew-577ad131a70b0a01d6cd097c2578b3b16d34205f.tar.bz2 | |
BitchX: patch for OS X
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/bitchx.rb | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Library/Formula/bitchx.rb b/Library/Formula/bitchx.rb index 4b83b766b..234699bed 100644 --- a/Library/Formula/bitchx.rb +++ b/Library/Formula/bitchx.rb @@ -6,7 +6,11 @@ class Bitchx < Formula url 'http://bitchx.ca/BitchX-1.2-final.tar.gz' sha1 'a2162a18d3a96ade7d2410f6a560e43f7d6b8763' - depends_on :macos => :mountain_lion + # Reported upstream: + # https://github.com/BitchX/BitchX/pull/8 + def patches + DATA + end def install args = %W{ @@ -37,3 +41,20 @@ class Bitchx < Formula end end + +__END__ +diff --git a/source/compat.c b/source/compat.c +index fa68988..9549bd6 100644 +--- a/source/compat.c ++++ b/source/compat.c +@@ -1011,6 +1011,10 @@ int scandir (const char *name, + #include <stddef.h> + #include <string.h> + ++#if defined(__APPLE__) ++ #define environ (*_NSGetEnviron()) ++#endif ++ + int bsd_setenv(const char *name, const char *value, int rewrite); + + /* |
