aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorkmowery2010-06-17 20:46:35 -0700
committerAdam Vandenberg2010-06-17 21:12:48 -0700
commit97e109bb0561aee02e4cd5bf33690a0fa25b4c9a (patch)
treebb4a6fe5805118eeb3a5e344f8ce7d81b04b88d3 /Library/Formula
parent0c1f68a8af94c3a51a5d7d5a5f0002444c748ac2 (diff)
downloadhomebrew-97e109bb0561aee02e4cd5bf33690a0fa25b4c9a.tar.bz2
rlog 1.4
A C++ logging library. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rlog.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/rlog.rb b/Library/Formula/rlog.rb
new file mode 100644
index 000000000..a07afe0a3
--- /dev/null
+++ b/Library/Formula/rlog.rb
@@ -0,0 +1,35 @@
+require 'formula'
+
+class Rlog <Formula
+ url 'http://rlog.googlecode.com/files/rlog-1.4.tar.gz'
+ homepage 'http://www.arg0.net/rlog'
+ md5 'c29f74e0f50d66b20312d049b683ff82'
+
+ def patches
+ return { :p1 => DATA }
+ end
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ system "make install"
+ end
+end
+
+# This patch solves an OSX build issue, should not be necessary for the next release according to
+# http://code.google.com/p/rlog/issues/detail?id=7
+__END__
+--- orig/rlog/common.h.in 2008-06-14 20:10:13.000000000 -0700
++++ new/rlog/common.h.in 2009-05-18 16:05:04.000000000 -0700
+@@ -52,7 +52,12 @@
+
+ # define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X)))
+ # define HAVE_PRINTF_ATTR 1
++
++#ifdef __APPLE__
++# define RLOG_SECTION __attribute__ (( section("__DATA, RLOG_DATA") ))
++#else
+ # define RLOG_SECTION __attribute__ (( section("RLOG_DATA") ))
++#endif
+
+ #if __GNUC__ >= 3
+ # define expect(foo, bar) __builtin_expect((foo),bar)