aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDaniel Sloof2013-10-24 09:34:33 +0100
committerMike McQuaid2013-10-24 09:34:35 +0100
commitae62cbb1c1ac3e78972c04cc865dae2f2ae150c6 (patch)
tree3f33d4078c7d2c955a395549afcad170fb0fe1d3 /Library/Formula
parentc1bb28354e3c016fc7ec570889729547396e0df0 (diff)
downloadhomebrew-ae62cbb1c1ac3e78972c04cc865dae2f2ae150c6.tar.bz2
glog: add patches to fix Mavericks build.
Two patches are applied: - Since glog has not yet released a a version 0.3.4, we manually apply a a patch that mirrors the following changeset: https://code.google.com/p/google-glog/source/detail?r=134 This patch cleans up the way of determining which logging includes need to be included (prefixed, etc). - A patch making sure we are only including tr1 prefixed stuff and slist on when using libc++. The first patch can likely be removed when upstream releases a new version. Upstream is aware of the second issue: https://code.google.com/p/google-glog/issues/detail?id=121 Closes #23506. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/glog.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/glog.rb b/Library/Formula/glog.rb
index 9d23632ea..849732c7c 100644
--- a/Library/Formula/glog.rb
+++ b/Library/Formula/glog.rb
@@ -7,6 +7,20 @@ class Glog < Formula
depends_on 'gflags'
+ def patches
+ if MacOS.version >= :mavericks
+ {
+ # Since 0.3.4 has not yet been released, manually apply
+ # r134 that refactors the way headers are included.
+ :p1 => "https://gist.github.com/danslo/7128754/raw/9b19991da4753f5efb87ae9a6939e6c3e9bc1fdf/glog_logging_r134.diff",
+
+ # Don't use tr1 prefix when we're using libc++:
+ # https://code.google.com/p/google-glog/issues/detail?id=121
+ :p0 => "https://google-glog.googlecode.com/issues/attachment?aid=1210003000&name=libc%2B%2B.diff&token=cHcwWwlDueqKVwXcBHiOK81MGDk%3A1382574925714",
+ }
+ end
+ end
+
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"