2010-06-18 03:46:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Rlog < Formula
|
2010-06-18 03:46:35 +00:00
|
|
|
homepage 'http://www.arg0.net/rlog'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://rlog.googlecode.com/files/rlog-1.4.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '9cd86b4ceec3988f0a17730a8987110233797dcd'
|
2010-06-18 03:46:35 +00:00
|
|
|
|
2014-03-20 19:05:18 +00:00
|
|
|
patch :DATA
|
2010-06-18 03:46:35 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
# This patch solves an OSX build issue, should not be necessary for the next release according to
|
2010-06-18 03:46:35 +00:00
|
|
|
# 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)
|