aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/glog.rb
diff options
context:
space:
mode:
authorDouglas Creager2010-04-29 10:32:01 -0400
committerAdam Vandenberg2010-04-29 08:40:58 -0700
commit56d6e5da0e4831922ca4b2560ce753f067d9ae51 (patch)
tree5ce6fe43da35db6a3601d5631fc64f87b0d8dce7 /Library/Formula/glog.rb
parent279d8610f7b54da0173cd1c667bcc7f72e890bdf (diff)
downloadhomebrew-56d6e5da0e4831922ca4b2560ce753f067d9ae51.tar.bz2
glog
A C++ logging framework from Google. The latest release doesn't compile on Mac OS, but the SVN HEAD seems to work. Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Comment why url is commented out autoreconf: upstream has a libtool script checked into SVN that doesn't work on Mac OS. Just running configure/make gave me compile errors; explicitly running autoreconf first made it work.
Diffstat (limited to 'Library/Formula/glog.rb')
-rw-r--r--Library/Formula/glog.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/glog.rb b/Library/Formula/glog.rb
new file mode 100644
index 000000000..53dc12781
--- /dev/null
+++ b/Library/Formula/glog.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class Glog <Formula
+ # Stable tarball doesn't build on OS X, but trunk does
+ #url 'http://google-glog.googlecode.com/files/glog-0.3.0.tar.gz'
+ head 'http://google-glog.googlecode.com/svn/trunk/'
+ homepage 'http://code.google.com/p/google-glog/'
+ md5 '968fe4bfbaddba315bf52de310dcadc5'
+
+ depends_on 'gflags'
+
+ def install
+ system "autoreconf -f -i"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ system "make install"
+ end
+end