homebrew-core/Formula/rlog.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

35 lines
1 KiB
Ruby

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)