diff options
| author | Adam Vandenberg | 2013-09-27 21:04:19 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-27 21:29:47 -0700 |
| commit | 0b4f47d99d91cd8c53926ae74d6380fb06a808e5 (patch) | |
| tree | 6287ca3f1054a0c65f3e2aeb0d68b400cc459417 /Library/Formula | |
| parent | ccde96b3c5695e91bc7d7a1b99e08dcbe7dfda1c (diff) | |
| download | homebrew-0b4f47d99d91cd8c53926ae74d6380fb06a808e5.tar.bz2 | |
genstats 1.2
Uses strndup, so marked as needing lion
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/genstats.rb | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/Library/Formula/genstats.rb b/Library/Formula/genstats.rb index 7b761caf6..5b86480d8 100644 --- a/Library/Formula/genstats.rb +++ b/Library/Formula/genstats.rb @@ -2,13 +2,10 @@ require 'formula' class Genstats < Formula homepage 'http://www.vanheusden.com/genstats/' - url 'http://www.vanheusden.com/genstats/genstats-1.0.0.tgz' - sha1 '8ca19e5fe72f1d881bf38298e155b15f07e6bd66' + url 'http://www.vanheusden.com/genstats/genstats-1.2.tgz' + sha1 '9b60278d3b0cc5dace63f081f4d5a7c3b6cbc473' - def patches - # fix compile errors on OS X for 1.0.0. I've emailed the author. - DATA - end + depends_on :macos => :lion # uses strndup def install # Tried to make this a patch. Applying the patch hunk would @@ -24,27 +21,6 @@ class Genstats < Formula end def test - # TODO(dan): be more thorough system "genstats -h | grep folkert@vanheusden.com" end end -__END__ -diff --git a/br.h b/br.h -index addf8bc..dfdb5d4 100644 ---- a/br.h -+++ b/br.h -@@ -8,6 +8,14 @@ - #define likely(x) __builtin_expect((x),1) - #define unlikely(x) __builtin_expect((x),0) - -+#ifdef __APPLE__ -+/* See http://fixunix.com/bsd/539901-definition-off64_t.html */ -+typedef off_t off64_t; -+/* See http://lists.apple.com/archives/unix-porting/2002/Jul/msg00099.html */ -+#define lseek64 lseek -+#define open64 open -+#endif -+ - class buffered_reader - { - private: |
