diff options
| author | Adam Vandenberg | 2011-07-29 09:21:51 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-07-29 09:21:51 -0700 |
| commit | 0006013c3b9a2cf5ecd80de04af5366aa516d93b (patch) | |
| tree | 1c433923cb95d69b71f330fbcf1fdfc9428f8da6 | |
| parent | f58e786fce5f71697598aa3cc38e397f137eceb4 (diff) | |
| download | homebrew-0006013c3b9a2cf5ecd80de04af5366aa516d93b.tar.bz2 | |
goaccess: remove duplicate older version
| -rw-r--r-- | Library/Formula/go-access.rb | 28 | ||||
| -rw-r--r-- | Library/Formula/goaccess.rb | 15 |
2 files changed, 12 insertions, 31 deletions
diff --git a/Library/Formula/go-access.rb b/Library/Formula/go-access.rb deleted file mode 100644 index 31a35887a..000000000 --- a/Library/Formula/go-access.rb +++ /dev/null @@ -1,28 +0,0 @@ -require 'formula' - -class GoAccess < Formula - url 'http://sourceforge.net/projects/goaccess/files/0.4.1/goaccess-0.4.1.tar.gz' - homepage 'http://goaccess.prosoftcorp.com/' - sha1 'f68336fc49eb4907262f53956d4b88d5573a861e' - - depends_on 'glib' - depends_on 'geoip' if ARGV.include? "--enable-geoip" - - def options - [['--enable-geoip', "Enable IP location information using GeoIP"]] - end - - def install - # Don't attempt to link to librt since it doesn't exist on OSX. - inreplace "Makefile.in", "LIBS = @GLIB2_LIBS@ -lrt", "LIBS = @GLIB2_LIBS@" - - args = ["--prefix=#{prefix}", - "--disable-debug", - "--disable-dependency-tracking"] - - args << "--enable-geoip" if ARGV.include? '--enable-geoip' - - system "./configure", *args - system "make install" - end -end diff --git a/Library/Formula/goaccess.rb b/Library/Formula/goaccess.rb index 379ce4ed4..4002012c3 100644 --- a/Library/Formula/goaccess.rb +++ b/Library/Formula/goaccess.rb @@ -6,12 +6,21 @@ class Goaccess < Formula md5 '7d7707c294c949d612e451da2f003c37' head 'git://goaccess.git.sourceforge.net/gitroot/goaccess/goaccess' - depends_on 'geoip' depends_on 'glib' + depends_on 'geoip' if ARGV.include? "--enable-geoip" + + def options + [['--enable-geoip', "Enable IP location information using GeoIP"]] + end def install - system "./configure", "--enable-geoip", - "--prefix=#{prefix}" + args = ["--prefix=#{prefix}", + "--disable-debug", + "--disable-dependency-tracking"] + + args << "--enable-geoip" if ARGV.include? '--enable-geoip' + + system "./configure", *args system "make install" end end |
