homebrew-core/Formula/glog.rb

32 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Glog < Formula
homepage 'http://code.google.com/p/google-glog/'
url 'https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz'
sha1 'ed40c26ecffc5ad47c618684415799ebaaa30d65'
depends_on 'gflags'
2014-03-17 00:35:07 +00:00
if MacOS.version >= :mavericks
# Since 0.3.4 has not yet been released, manually apply
# r134 that refactors the way headers are included.
patch do
2014-04-26 19:48:32 +00:00
url "https://gist.githubusercontent.com/danslo/7128754/raw/9b19991da4753f5efb87ae9a6939e6c3e9bc1fdf/glog_logging_r134.diff"
2014-03-17 00:35:07 +00:00
sha1 "a4a1a3d1467115f927935c441715b0f8c362abba"
end
2014-03-17 00:35:07 +00:00
# Don't use tr1 prefix when we're using libc++:
# https://code.google.com/p/google-glog/issues/detail?id=121 (patch mirrored on gist.github.com)
patch do
2014-04-26 19:48:32 +00:00
url "https://gist.githubusercontent.com/noahm/7364571/raw/436283200fe5a3ac5d00d769bb2203260bebfcf9/libc%2B%2B.diff"
2014-03-17 00:35:07 +00:00
sha1 "14fe8c422a92ebd6908861ee22cfe1a689191c18"
end
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end