2010-04-29 14:32:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Glog < Formula
|
2010-04-29 14:32:01 +00:00
|
|
|
homepage 'http://code.google.com/p/google-glog/'
|
2013-02-05 13:56:54 +00:00
|
|
|
url 'http://google-glog.googlecode.com/files/glog-0.3.3.tar.gz'
|
|
|
|
sha1 'ed40c26ecffc5ad47c618684415799ebaaa30d65'
|
2010-04-29 14:32:01 +00:00
|
|
|
|
|
|
|
depends_on 'gflags'
|
|
|
|
|
2013-10-24 08:34:33 +00:00
|
|
|
def patches
|
|
|
|
if MacOS.version >= :mavericks
|
2013-11-08 01:45:25 +00:00
|
|
|
[
|
2013-10-24 08:34:33 +00:00
|
|
|
# Since 0.3.4 has not yet been released, manually apply
|
|
|
|
# r134 that refactors the way headers are included.
|
2013-11-08 01:45:25 +00:00
|
|
|
"https://gist.github.com/danslo/7128754/raw/9b19991da4753f5efb87ae9a6939e6c3e9bc1fdf/glog_logging_r134.diff",
|
2013-10-24 08:34:33 +00:00
|
|
|
|
|
|
|
# Don't use tr1 prefix when we're using libc++:
|
2013-11-08 01:45:25 +00:00
|
|
|
# https://code.google.com/p/google-glog/issues/detail?id=121 (patch mirrored on gist.github.com)
|
|
|
|
"https://gist.github.com/noahm/7364571/raw/436283200fe5a3ac5d00d769bb2203260bebfcf9/libc%2B%2B.diff",
|
|
|
|
]
|
2013-10-24 08:34:33 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-04-29 14:32:01 +00:00
|
|
|
def install
|
2012-03-08 07:36:53 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-04-29 14:32:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|